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
5c321717
Commit
5c321717
authored
Jun 11, 2021
by
liuxinben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异地公安网反馈 添加联系方式
parent
e7a77ff0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
15 deletions
+21
-15
DetailReceiptListMapper.java
...a/com/yxproject/start/mapper/DetailReceiptListMapper.java
+2
-1
ExportExcel.java
src/main/java/com/yxproject/start/utils/ExportExcel.java
+19
-14
No files found.
src/main/java/com/yxproject/start/mapper/DetailReceiptListMapper.java
View file @
5c321717
...
...
@@ -22,11 +22,12 @@ public interface DetailReceiptListMapper {
*/
@Select
(
"select DETAIL_RECEIPT_LIST.id,DETAIL_RECEIPT_LIST.ACCEPT_NO,DETAIL_RECEIPT_LIST.SIGN_GOVT,DETAIL_RECEIPT_LIST.NAME,DETAIL_RECEIPT_LIST.UPLOAD_NO,\n"
+
"DETAIL_RECEIPT_LIST.sex,DETAIL_RECEIPT_LIST.CARD_ID,DETAIL_RECEIPT_LIST.POLICE_CODE,DIC_UPLOAD_UNIT_T.UNIT_NAME POLICE_NAME,to_char(RECEIPT_LIST.CHECK_DATE,'yyyyMMdd') CHECK_DATE,\n"
+
"RECEIPT_LIST.CHECK_NAME,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.OLD_CARD_TYPE_ID,PERSON_POST.WAYBILL_NUMBER,DETAIL_RECEIPT_LIST.note,RECEIPT_LIST.QR_CODE \n"
+
"RECEIPT_LIST.CHECK_NAME,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.OLD_CARD_TYPE_ID,PERSON_POST.WAYBILL_NUMBER,DETAIL_RECEIPT_LIST.note,RECEIPT_LIST.QR_CODE
,PROD_APPLY_INFO_T.APPLY_PHONE
\n"
+
"from DETAIL_RECEIPT_LIST \n"
+
"left join RECEIPT_LIST on DETAIL_RECEIPT_LIST.RECEIPT_ID = RECEIPT_LIST.ID\n"
+
"left join PERSON_POST on PERSON_POST.FIRST_WHITE = DETAIL_RECEIPT_LIST.UPLOAD_NO\n"
+
"left join PRODYD_DBA.DIC_UPLOAD_UNIT_T@PRODYD_LINK on DIC_UPLOAD_UNIT_T.UPLOAD_UNIT_NO = DETAIL_RECEIPT_LIST.POLICE_CODE\n"
+
"LEFT JOIN PROD_DBA.PROD_APPLY_INFO_T@PROD_LINK ON PROD_APPLY_INFO_T.UPLOAD_NO = DETAIL_RECEIPT_LIST.UPLOAD_NO\n"
+
"where RECEIPT_LIST.id in (${str}) order by DETAIL_RECEIPT_LIST.ACCEPT_NO "
)
public
List
<
Map
<
String
,
Object
>>
selectPostDetails
(
@Param
(
"str"
)
String
str
);
...
...
src/main/java/com/yxproject/start/utils/ExportExcel.java
View file @
5c321717
...
...
@@ -45,6 +45,7 @@ public class ExportExcel {
sheet
.
setColumnWidth
(
10
,
30
*
110
);
sheet
.
setColumnWidth
(
11
,
30
*
110
);
sheet
.
setColumnWidth
(
12
,
30
*
110
);
sheet
.
setColumnWidth
(
13
,
30
*
110
);
//第三步创建行row:添加表头0行
HSSFRow
row
=
sheet
.
createRow
(
0
);
HSSFCellStyle
style
=
wb
.
createCellStyle
();
//样式
...
...
@@ -69,20 +70,22 @@ public class ExportExcel {
cell
=
row
.
createCell
(
6
);
//设定值
cell
.
setCellValue
(
"身份证号"
);
cell
=
row
.
createCell
(
7
);
//设定值
cell
.
setCellValue
(
"
条形码号
"
);
cell
.
setCellValue
(
"
联系方式
"
);
cell
=
row
.
createCell
(
8
);
//设定值
cell
.
setCellValue
(
"
签发机关
"
);
cell
.
setCellValue
(
"
条形码号
"
);
cell
=
row
.
createCell
(
9
);
//设定值
cell
.
setCellValue
(
"
运单号
"
);
cell
.
setCellValue
(
"
签发机关
"
);
cell
=
row
.
createCell
(
10
);
//设定值
cell
.
setCellValue
(
"
制证类型
"
);
cell
.
setCellValue
(
"
运单号
"
);
cell
=
row
.
createCell
(
11
);
//设定值
cell
.
setCellValue
(
"
原
制证类型"
);
cell
.
setCellValue
(
"制证类型"
);
cell
=
row
.
createCell
(
12
);
//设定值
cell
.
setCellValue
(
"
复核日期
"
);
cell
.
setCellValue
(
"
原制证类型
"
);
cell
=
row
.
createCell
(
13
);
//设定值
cell
.
setCellValue
(
"复核
人
"
);
cell
.
setCellValue
(
"复核
日期
"
);
cell
=
row
.
createCell
(
14
);
//设定值
cell
.
setCellValue
(
"复核人"
);
cell
=
row
.
createCell
(
15
);
//设定值
cell
.
setCellValue
(
"备注"
);
for
(
int
i
=
0
;
i
<
mapList
.
size
();
i
++){
...
...
@@ -102,20 +105,22 @@ public class ExportExcel {
cell
=
row
.
createCell
(
6
);
//设定值
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"CARD_ID"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"CARD_ID"
)+
""
);
cell
=
row
.
createCell
(
7
);
//设定值
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"
QR_CODE"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"QR_COD
E"
)+
""
);
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"
APPLY_PHONE"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"APPLY_PHON
E"
)+
""
);
cell
=
row
.
createCell
(
8
);
//设定值
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"
SIGN_GOVT"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"SIGN_GOVT
"
)+
""
);
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"
QR_CODE"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"QR_CODE
"
)+
""
);
cell
=
row
.
createCell
(
9
);
//设定值
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"
WAYBILL_NUMBER"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"WAYBILL_NUMBER
"
)+
""
);
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"
SIGN_GOVT"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"SIGN_GOVT
"
)+
""
);
cell
=
row
.
createCell
(
10
);
//设定值
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"
CARD_TYPE_ID"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"CARD_TYPE_ID
"
)+
""
);
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"
WAYBILL_NUMBER"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"WAYBILL_NUMBER
"
)+
""
);
cell
=
row
.
createCell
(
11
);
//设定值
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"
OLD_CARD_TYPE_ID"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"OLD_
CARD_TYPE_ID"
)+
""
);
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"
CARD_TYPE_ID"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"
CARD_TYPE_ID"
)+
""
);
cell
=
row
.
createCell
(
12
);
//设定值
cell
.
setCellValue
(
mapList
.
get
(
i
).
get
(
"CHECK_DATE
"
)+
""
);
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"OLD_CARD_TYPE_ID"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"OLD_CARD_TYPE_ID
"
)+
""
);
cell
=
row
.
createCell
(
13
);
//设定值
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"CHECK_NAME"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"CHECK_NAM
E"
)+
""
);
cell
.
setCellValue
(
mapList
.
get
(
i
).
get
(
"CHECK_DAT
E"
)+
""
);
cell
=
row
.
createCell
(
14
);
//设定值
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"CHECK_NAME"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"CHECK_NAME"
)+
""
);
cell
=
row
.
createCell
(
15
);
//设定值
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"NOTE"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"NOTE"
)+
""
);
}
...
...
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