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
787561b4
Commit
787561b4
authored
Nov 13, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer_bw' into developer_bw
parents
f990494b
3e7c1af5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
2 deletions
+34
-2
CommonServiceImpl.java
.../boot/module/hygf/biz/service/impl/CommonServiceImpl.java
+33
-1
StatisticsHomepageServiceImpl.java
.../hygf/biz/service/impl/StatisticsHomepageServiceImpl.java
+1
-1
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 @
787561b4
...
...
@@ -108,6 +108,10 @@ public class CommonServiceImpl {
@Autowired
HygfWorkOrderStationAuditingMapper
workOrderStationAuditingMapper
;
@Autowired
HouseholdContractMapper
householdContractMapper
;
@Autowired
PowerStationEngineeringInfoMapper
powerStationEngineeringInfoMapper
;
@Autowired
BasicGridAuditingMapper
basicGridAuditingMapper
;
@Autowired
ConstructionRecordsMapper
constructionRecordsMapper
;
...
...
@@ -994,11 +998,23 @@ public class CommonServiceImpl {
private
void
fillSheetFH
(
Sheet
sheet
,
PreparationMoney
preparationMoney
){
if
(
Objects
.
isNull
(
preparationMoney
)){
return
;
}
LambdaQueryWrapper
<
DocumentStation
>
q
=
new
LambdaQueryWrapper
<>();
q
.
eq
(
DocumentStation:
:
getPreparationMoneyId
,
preparationMoney
.
getSequenceNbr
());
List
<
DocumentStation
>
lih
=
documentStationMapper
.
selectList
(
q
);
if
(
lih
!=
null
&&
lih
.
size
()
>
0
)
{
lih
.
forEach
(
e
->
{
if
(
e
.
getPeasantHouseholdNo
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNo
()));
e
.
setRealScale
(
powerStationEngineeringInfoMapper
.
getRealScaleByPeasantHouseholdNo
(
e
.
getPeasantHouseholdNo
()));
}
});
}
List
<
Long
>
ids
=
new
ArrayList
<>();
for
(
DocumentStation
documentStation
:
lih
)
{
...
...
@@ -1098,7 +1114,7 @@ public class CommonServiceImpl {
documentSpecialProcessing
(
sheet
,
headerRow
,
headerOneRow
,
dataStartRow
,
headersNames
,
headers
,
headerOne
,
maps
);
}
if
(
null
!=
designInformation
.
getCable
()){
if
(
null
!=
preparationMoney
.
getHygfReplenishments
()){
List
<
Map
<
String
,
Object
>>
maps
=
convertList
(
preparationMoney
.
getHygfReplenishments
());
int
headerRow
=
startRowNum
+
1
;
// 表头所在的行
int
headerOneRow
=
startRowNum
;
// 表头所在的行
...
...
@@ -1114,6 +1130,22 @@ public class CommonServiceImpl {
documentSpecialProcessing
(
sheet
,
headerRow
,
headerOneRow
,
dataStartRow
,
headersNames
,
headers
,
headerOne
,
maps
);
}
if
(
null
!=
lih
){
List
<
Map
<
String
,
Object
>>
maps
=
convertList
(
lih
);
int
headerRow
=
startRowNum
+
1
;
// 表头所在的行
int
headerOneRow
=
startRowNum
;
// 表头所在的行
int
dataStartRow
=
startRowNum
+
2
;
// 数据开始的行
startRowNum
=
dataStartRow
+
2
+
maps
.
size
();
// 假设表头内容如下:
String
headerOne
=
"电站列表"
;
String
[]
headersNames
=
{
"农户编号"
,
"业主姓名"
,
"经销商"
,
"项目地址"
,
"电站安装规模(kW)"
,
"电站实际规模(kW)"
};
String
[]
headers
=
{
"peasantHouseholdNo"
,
"ownersName"
,
"developerName"
,
"projectAddressName"
,
"scale"
,
"realScale"
};
documentSpecialProcessing
(
sheet
,
headerRow
,
headerOneRow
,
dataStartRow
,
headersNames
,
headers
,
headerOne
,
maps
);
}
}
}
...
...
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 @
787561b4
...
...
@@ -123,7 +123,7 @@ public class StatisticsHomepageServiceImpl {
Map
<
String
,
Object
>
surey
=
maps
.
get
(
0
);
surveKeys
.
removeAll
(
surey
.
keySet
());
for
(
String
e
:
surey
.
keySet
())
{
if
(!
e
.
equals
(
"completeTotal"
)){
if
(!
e
.
equals
(
"completeTotal"
)
&&
!
e
.
equals
(
"completeTotalrl"
)
){
list
.
add
(
MapBuilder
.<
String
,
Object
>
create
().
put
(
"statusText"
,
e
).
put
(
"total"
,
surey
.
get
(
e
)).
build
());
}
if
(!
e
.
equals
(
"未勘察"
)
&&
!
e
.
equals
(
"completeTotalrl"
)
){
...
...
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