Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
37af3535
Commit
37af3535
authored
Mar 18, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
1b5e0aab
dcfcc47d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
ExportExcelApi.java
src/main/java/com/yxproject/start/api/ExportExcelApi.java
+1
-0
ReceiptMapper.java
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
+1
-1
ReceiptService.java
...main/java/com/yxproject/start/service/ReceiptService.java
+1
-1
ReceiptServiceImpl.java
.../com/yxproject/start/service/impl/ReceiptServiceImpl.java
+3
-3
No files found.
src/main/java/com/yxproject/start/api/ExportExcelApi.java
View file @
37af3535
...
...
@@ -79,6 +79,7 @@ public class ExportExcelApi {
byte
[]
b
=
new
byte
[
fis
.
available
()];
fis
.
read
(
b
);
fis
.
close
();
response
.
setContentType
(
"APPLICATION/OCTET-STREAM"
);
response
.
addHeader
(
"Content-Disposition"
,
"attachment;filename="
+
outFile
+
".xls"
);
return
b
;
}
catch
(
FileNotFoundException
e
)
{
...
...
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
View file @
37af3535
...
...
@@ -199,7 +199,7 @@ public interface ReceiptMapper {
"left join CARD_TYPE_DIC on CARD_TYPE_DIC.CARD_TYPE_ID = decode(RECEIPT_LIST.Old_CARD_TYPE_ID,null,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.Old_CARD_TYPE_ID)\n"
+
"left join GAJG_DM on GAJG_DM.GAJG_DM = RECEIPT_LIST.POLICE_CODE\n"
+
"left join COUNTY_DIC on substr(RECEIPT_LIST.POLICE_CODE,0,6) = COUNTY_DIC.COUNTY_CODE"
+
" where to_char(CHECK_DATE,'yyyyMMdd') =
#{date} and RECEIPT_LIST.POLICE_CODE in (#{string}) and CARD_TYPE_DIC.CARD_TYPE_ID=#
{type} "
)
" where to_char(CHECK_DATE,'yyyyMMdd') =
${date} and RECEIPT_LIST.POLICE_CODE in (${string}) and CARD_TYPE_DIC.CARD_TYPE_ID=$
{type} "
)
public
List
<
Map
<
String
,
Object
>>
selectReceiptDate
(
@Param
(
"date"
)
String
date
,
@Param
(
"string"
)
String
string
,
@Param
(
"type"
)
long
type
);
...
...
src/main/java/com/yxproject/start/service/ReceiptService.java
View file @
37af3535
...
...
@@ -62,7 +62,7 @@ public interface ReceiptService {
public
boolean
updateDetail
(
@Param
(
"acceptNo"
)
String
accept
,
@Param
(
"note"
)
String
note
);
public
List
<
Map
<
String
,
Object
>>
selectReceiptList
(
List
<
Integer
>
stringList
,
String
date
,
long
typeCode
);
public
List
<
Map
<
String
,
Object
>>
selectReceiptList
(
List
<
String
>
stringList
,
String
date
,
long
typeCode
);
public
Map
<
String
,
Object
>
selectDetailedData2
(
String
id
);
...
...
src/main/java/com/yxproject/start/service/impl/ReceiptServiceImpl.java
View file @
37af3535
...
...
@@ -155,13 +155,13 @@ public class ReceiptServiceImpl implements ReceiptService {
}
@Override
public
List
<
Map
<
String
,
Object
>>
selectReceiptList
(
List
<
Integer
>
stringList
,
String
date
,
long
typeCode
)
{
public
List
<
Map
<
String
,
Object
>>
selectReceiptList
(
List
<
String
>
stringList
,
String
date
,
long
typeCode
)
{
String
str
=
""
;
for
(
int
i
=
0
;
i
<
stringList
.
size
();
i
++){
if
(
i
==
stringList
.
size
()-
1
){
str
+=
stringList
.
get
(
i
)+
"
"
;
str
+=
"'"
+
stringList
.
get
(
i
)+
"'
"
;
}
else
{
str
+=
stringList
.
get
(
i
)+
"
,"
;
str
+=
"'"
+
stringList
.
get
(
i
)+
"'
,"
;
}
}
return
receiptMapper
.
selectReceiptDate
(
date
,
str
,
typeCode
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment