Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
work_service
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
licc
work_service
Commits
8808f096
Commit
8808f096
authored
May 12, 2021
by
liaoanyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改人员工时统计导出
parent
01bfe89e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
StatisticsServiceImpl.java
...java/cn/wisenergy/service/impl/StatisticsServiceImpl.java
+14
-7
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/impl/StatisticsServiceImpl.java
View file @
8808f096
...
...
@@ -925,7 +925,8 @@ public class StatisticsServiceImpl implements StatisticsService {
row_1Cell3
.
setCellValue
(
"参与项目数"
);
// 参数商机数
HSSFCell
row_1Cell4
=
row_1
.
createCell
(
3
);
row_1Cell4
.
setCellValue
(
"参数商机数"
);
row_1Cell4
.
setCellValue
(
"参与商机数"
);
...
...
@@ -1058,16 +1059,22 @@ public class StatisticsServiceImpl implements StatisticsService {
setBorderStyle
(
cellRangeAddress6
,
sheet1
);
// 合计行
CellRangeAddress
cellRangeAddress3
=
new
CellRangeAddress
(
userWorkTimeStatisticsReport
.
size
()
+
1
,
userWorkTimeStatisticsReport
.
size
()
+
1
,
0
,
1
);
CellRangeAddress
cellRangeAddress3
=
new
CellRangeAddress
(
userWorkTimeStatisticsReport
.
size
()
+
1
,
userWorkTimeStatisticsReport
.
size
()
+
1
,
0
,
3
);
sheet1
.
addMergedRegion
(
cellRangeAddress3
);
setBorderStyle
(
cellRangeAddress3
,
sheet1
);
// 总计行
CellRangeAddress
cellRangeAddress7
=
new
CellRangeAddress
(
userWorkTimeStatisticsReport
.
size
()
+
2
,
userWorkTimeStatisticsReport
.
size
()
+
2
,
0
,
3
);
sheet1
.
addMergedRegion
(
cellRangeAddress7
);
setBorderStyle
(
cellRangeAddress7
,
sheet1
);
// 项目行和总计行,正常工时和加班工时表头列数
short
lastCellNum
=
row_2
.
getLastCellNum
();
for
(
int
i
=
0
;
i
<
lastCellNum
/
2
;
i
++)
{
// 总计行
CellRangeAddress
cellRangeAddress4
=
new
CellRangeAddress
(
userWorkTimeStatisticsReport
.
size
()
+
2
,
userWorkTimeStatisticsReport
.
size
()
+
2
,
i
*
2
,
i
*
2
+
1
);
for
(
int
i
=
2
;
i
<
lastCellNum
/
2
;
i
++)
{
CellRangeAddress
cellRangeAddress4
=
new
CellRangeAddress
(
userWorkTimeStatisticsReport
.
size
()
+
2
,
userWorkTimeStatisticsReport
.
size
()
+
2
,
i
*
2
,
i
*
2
+
1
);
sheet1
.
addMergedRegion
(
cellRangeAddress4
);
setBorderStyle
(
cellRangeAddress4
,
sheet1
);
/**
* 这里i>0 改为了i>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