Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
cc88742f
Commit
cc88742f
authored
Nov 12, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer_bw' into developer_bw
parents
59a1f1c2
23fee198
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
CommonServiceImpl.java
.../boot/module/hygf/biz/service/impl/CommonServiceImpl.java
+8
-1
StatisticsHomepageServiceImpl.java
.../hygf/biz/service/impl/StatisticsHomepageServiceImpl.java
+2
-2
informationTemp.xlsx
...ygf-biz/src/main/resources/templates/informationTemp.xlsx
+0
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/CommonServiceImpl.java
View file @
cc88742f
...
...
@@ -979,11 +979,18 @@ public class CommonServiceImpl {
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
+
".zip"
,
"UTF-8"
));
createZipFile
(
ziLiaoDir
,
"批量资料"
,
response
);
}
private
void
autoSizeColumns
(
Sheet
sheet
)
{
if
(
null
!=
sheet
.
getRow
(
0
)
){
for
(
int
i
=
0
;
i
<
sheet
.
getRow
(
0
).
getLastCellNum
();
i
++)
{
sheet
.
autoSizeColumn
(
i
);
}
}
}
private
void
fillSheet
(
Sheet
sheet
,
Object
data
)
{
if
(
Objects
.
isNull
(
data
)){
return
;
}
autoSizeColumns
(
sheet
);
int
startRow
=
1
;
for
(
int
i
=
0
;
i
<
sheet
.
getLastRowNum
()
+
1
;
i
++)
{
Row
row
=
sheet
.
getRow
(
i
);
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/StatisticsHomepageServiceImpl.java
View file @
cc88742f
...
...
@@ -204,14 +204,14 @@ public class StatisticsHomepageServiceImpl {
realScale
+=
(
double
)
map
.
get
(
"realScale"
);
iterator
.
remove
();
}
if
(
"施工资料
已
上传"
.
equals
(
map
.
get
(
"statusText"
)))
{
if
(
"施工资料上传"
.
equals
(
map
.
get
(
"statusText"
)))
{
sgtotal
+=
(
long
)
map
.
get
(
"total"
);
sgrealScale
+=
(
double
)
map
.
get
(
"realScale"
);
iterator
.
remove
();
}
}
maps
.
add
(
MapBuilder
.<
String
,
Object
>
create
().
put
(
"statusText"
,
"审核中"
).
put
(
"total"
,
total
).
put
(
"realScale"
,
new
BigDecimal
(
realScale
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
()).
build
());
maps
.
add
(
MapBuilder
.<
String
,
Object
>
create
().
put
(
"statusText"
,
"施工资料
已
上传"
).
put
(
"total"
,
sgtotal
).
put
(
"realScale"
,
new
BigDecimal
(
sgrealScale
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
()).
build
());
maps
.
add
(
MapBuilder
.<
String
,
Object
>
create
().
put
(
"statusText"
,
"施工资料上传"
).
put
(
"total"
,
sgtotal
).
put
(
"realScale"
,
new
BigDecimal
(
sgrealScale
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
()).
build
());
differenceValue
(
maps
,
workOrder
);
resultMap
.
put
(
"workOrder"
,
maps
);
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/resources/templates/informationTemp.xlsx
View file @
cc88742f
No preview for this file type
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