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
a2f7694b
Commit
a2f7694b
authored
Mar 25, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
dafd4e3e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
14 deletions
+42
-14
ReceiptApi.java
src/main/java/com/yxproject/start/api/ReceiptApi.java
+0
-12
ExportExcel.java
src/main/java/com/yxproject/start/utils/ExportExcel.java
+42
-2
No files found.
src/main/java/com/yxproject/start/api/ReceiptApi.java
View file @
a2f7694b
...
...
@@ -50,7 +50,6 @@ public class ReceiptApi {
receiptListEntity
.
setPoliceCode
(
resultDate
.
get
(
"GAJG_DM"
).
toString
());
receiptListEntity
.
setCardTypeId
(
Long
.
valueOf
((
BigDecimal
)
resultDate
.
get
(
"CARD_TYPE"
)
+
""
));
if
(
"null"
.
equals
(
resultDate
.
get
(
"OLD_CARD_TYPE"
)
+
""
))
{
}
else
{
receiptListEntity
.
setOldCardTypeId
(
Long
.
valueOf
(
resultDate
.
get
(
"OLD_CARD_TYPE"
)
+
""
));
}
...
...
@@ -121,22 +120,11 @@ public class ReceiptApi {
}
else
{
//不做操作
}
}
}
else
{
//已生成交接单
}
// //查询有几个特证
// int specialCardCount = receiptService.selectSpecialCard(receiptListDate.get(i).get("GROUP_NO").toString());
// //减去特证个数
// int finishCount = receiptService.selectCount(receiptListDate.get(i).get("GROUP_NO").toString()) - specialCardCount;
// receiptService.updateFinishCount(receiptListDate.get(i).get("GROUP_NO").toString(), finishCount);
}
}
...
...
src/main/java/com/yxproject/start/utils/ExportExcel.java
View file @
a2f7694b
package
com
.
yxproject
.
start
.
utils
;
import
org.apache.poi.hssf.usermodel.*
;
import
org.apache.poi.ss.util.CellRangeAddress
;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
...
...
@@ -143,8 +144,47 @@ public class ExportExcel {
font
.
setFontHeightInPoints
((
short
)
12
);
style
.
setFont
(
font
);
row
=
sheet
.
createRow
(
0
);
//创建下标为0的单元格
row
.
setHeightInPoints
(
Short
.
parseShort
(
"
2
0"
));
//设置行高
row
.
setHeightInPoints
(
Short
.
parseShort
(
"
4
0"
));
//设置行高
HSSFCell
cell
=
row
.
createCell
(
0
);
//设定值
cell
.
setCellValue
(
"北京市公安局证件制作管理中心交接岗位"
);
cell
=
row
.
createCell
(
1
);
//设定值
cell
.
setCellValue
(
""
);
cell
=
row
.
createCell
(
2
);
//设定值
cell
.
setCellValue
(
""
);
cell
=
row
.
createCell
(
3
);
//设定值
cell
.
setCellValue
(
""
);
cell
=
row
.
createCell
(
4
);
//设定值
cell
.
setCellValue
(
""
);
CellRangeAddress
callRangeAddress
=
new
CellRangeAddress
(
0
,
0
,
0
,
5
);
//起始行,结束行,起始列,结束列
row
=
sheet
.
createRow
(
1
);
//创建下标为0的单元格
row
.
setHeightInPoints
(
Short
.
parseShort
(
"40"
));
//设置行高
cell
=
row
.
createCell
(
0
);
//设定值
cell
.
setCellValue
(
"身份证交接单"
);
cell
=
row
.
createCell
(
1
);
//设定值
cell
.
setCellValue
(
""
);
cell
=
row
.
createCell
(
2
);
//设定值
cell
.
setCellValue
(
""
);
cell
=
row
.
createCell
(
3
);
//设定值
cell
.
setCellValue
(
""
);
cell
=
row
.
createCell
(
4
);
//设定值
cell
.
setCellValue
(
""
);
callRangeAddress
=
new
CellRangeAddress
(
1
,
1
,
0
,
5
);
//起始行,结束行,起始列,结束列
row
=
sheet
.
createRow
(
2
);
//创建下标为0的单元格
row
.
setHeightInPoints
(
Short
.
parseShort
(
"40"
));
//设置行高
cell
=
row
.
createCell
(
0
);
//设定值
cell
.
setCellValue
(
"交接日期:"
+
simpleDateFormat
.
format
(
new
Date
()));
cell
=
row
.
createCell
(
1
);
//设定值
cell
.
setCellValue
(
""
);
cell
=
row
.
createCell
(
2
);
//设定值
cell
.
setCellValue
(
""
);
cell
=
row
.
createCell
(
3
);
//设定值
cell
.
setCellValue
(
""
);
cell
=
row
.
createCell
(
4
);
//设定值
cell
.
setCellValue
(
""
);
callRangeAddress
=
new
CellRangeAddress
(
2
,
2
,
0
,
5
);
//起始行,结束行,起始列,结束列
row
=
sheet
.
createRow
(
3
);
//创建下标为0的单元格
row
.
setHeightInPoints
(
Short
.
parseShort
(
"20"
));
//设置行高
cell
=
row
.
createCell
(
0
);
//设定值
cell
.
setCellValue
(
"序号"
);
cell
=
row
.
createCell
(
1
);
//设定值
cell
.
setCellValue
(
"身份证受理组号"
);
...
...
@@ -156,7 +196,7 @@ public class ExportExcel {
cell
.
setCellValue
(
"备注"
);
for
(
int
i
=
0
;
i
<
mapList
.
size
();
i
++){
row
=
sheet
.
createRow
(
i
+
1
);
row
=
sheet
.
createRow
(
i
+
4
);
cell
=
row
.
createCell
(
0
);
//设定值
cell
.
setCellValue
((
i
+
1
)+
""
);
cell
=
row
.
createCell
(
1
);
//设定值
...
...
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