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
f38f4cac
Commit
f38f4cac
authored
Nov 08, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统计bug修改
parent
379aa2b0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
62 deletions
+64
-62
StatisicsHomePageEnum.java
...amos/boot/module/hygf/api/Enum/StatisicsHomePageEnum.java
+36
-35
StatisticsHomepageMapper.xml
.../main/resources/mapper/mysql/StatisticsHomepageMapper.xml
+1
-0
PeasantHouseholdController.java
...odule/hygf/biz/controller/PeasantHouseholdController.java
+8
-8
PeasantHouseholdServiceImpl.java
...le/hygf/biz/service/impl/PeasantHouseholdServiceImpl.java
+0
-0
StatisticsHomepageServiceImpl.java
.../hygf/biz/service/impl/StatisticsHomepageServiceImpl.java
+19
-19
homePageExport.xlsx
...hygf-biz/src/main/resources/templates/homePageExport.xlsx
+0
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/Enum/StatisicsHomePageEnum.java
View file @
f38f4cac
...
...
@@ -14,41 +14,42 @@ public enum StatisicsHomePageEnum {
项目公司
(
"regionalCompaniesName"
,
2
),
代理商
(
"developerName"
,
3
),
实际建设容量
(
"realScale"
,
4
),
勘察未通过
(
"kcwtg"
,
5
),
勘察未通过容量
(
"kcwtgrl"
,
6
),
勘察进行中
(
"kcjxz"
,
7
),
勘察进行中容量
(
"kcjxzrl"
,
8
),
勘察已完成
(
"kcywc"
,
9
),
勘察已完成容量
(
"kcywcrl"
,
10
),
备货未通过
(
"bhwtg"
,
11
),
备货未通过容量
(
"bhwtgrl"
,
12
),
备货进行中
(
"bhjxz"
,
13
),
备货进行中容量
(
"bhjxzrl"
,
14
),
备货已完成
(
"bhywc"
,
15
),
备货已完成容量
(
"bhywcrl"
,
16
),
施工未通过
(
"sgwtg"
,
17
),
施工未通过容量
(
"sgwtgrl"
,
18
),
施工进行中
(
"sgjxz"
,
19
),
施工进行中容量
(
"sgjxzrl"
,
20
),
施工已完成
(
"sgywc"
,
21
),
施工已完成容量
(
"sgywcrl"
,
22
),
并网未通过
(
"bwwtg"
,
23
),
并网未通过容量
(
"bwwtgrl"
,
24
),
并网进行中
(
"bwjxz"
,
25
),
并网进行中容量
(
"bwjxzrl"
,
26
),
并网已完成
(
"bwywc"
,
27
),
并网已完成容量
(
"bwywcrl"
,
28
),
验收未通过
(
"yswtg"
,
29
),
验收未通过容量
(
"yswtgrl"
,
30
),
验收进行中
(
"ysjxz"
,
31
),
验收进行中容量
(
"ysjxzrl"
,
32
),
验收已完成
(
"ysywc"
,
33
),
验收已完成容量
(
"ysywcrl"
,
34
),
融资公司
(
"rzgs"
,
35
),
融资户数
(
"rzhs"
,
36
),
融资容量
(
"rzrl"
,
37
),
融资单价
(
"rzdj"
,
38
),
放款金额
(
"fkje"
,
39
);
未勘察
(
"wkc"
,
5
),
勘察未通过
(
"kcwtg"
,
6
),
勘察未通过容量
(
"kcwtgrl"
,
7
),
勘察进行中
(
"kcjxz"
,
8
),
勘察进行中容量
(
"kcjxzrl"
,
9
),
勘察已完成
(
"kcywc"
,
10
),
勘察已完成容量
(
"kcywcrl"
,
11
),
备货未通过
(
"bhwtg"
,
12
),
备货未通过容量
(
"bhwtgrl"
,
13
),
备货进行中
(
"bhjxz"
,
14
),
备货进行中容量
(
"bhjxzrl"
,
15
),
备货已完成
(
"bhywc"
,
16
),
备货已完成容量
(
"bhywcrl"
,
17
),
施工未通过
(
"sgwtg"
,
18
),
施工未通过容量
(
"sgwtgrl"
,
19
),
施工进行中
(
"sgjxz"
,
20
),
施工进行中容量
(
"sgjxzrl"
,
21
),
施工已完成
(
"sgywc"
,
22
),
施工已完成容量
(
"sgywcrl"
,
23
),
并网未通过
(
"bwwtg"
,
24
),
并网未通过容量
(
"bwwtgrl"
,
25
),
并网进行中
(
"bwjxz"
,
26
),
并网进行中容量
(
"bwjxzrl"
,
27
),
并网已完成
(
"bwywc"
,
28
),
并网已完成容量
(
"bwywcrl"
,
29
),
验收未通过
(
"yswtg"
,
30
),
验收未通过容量
(
"yswtgrl"
,
31
),
验收进行中
(
"ysjxz"
,
32
),
验收进行中容量
(
"ysjxzrl"
,
33
),
验收已完成
(
"ysywc"
,
34
),
验收已完成容量
(
"ysywcrl"
,
35
),
融资公司
(
"rzgs"
,
36
),
融资户数
(
"rzhs"
,
37
),
融资容量
(
"rzrl"
,
38
),
融资单价
(
"rzdj"
,
39
),
放款金额
(
"fkje"
,
40
);
/**
* 名称,描述
*/
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/StatisticsHomepageMapper.xml
View file @
f38f4cac
...
...
@@ -384,6 +384,7 @@
ph.regional_companies_name AS regionalCompaniesName,
ph.developer_name AS developerName,
ROUND(COALESCE(SUM(IFNULL(ei.real_scale, 0))/1000, 0), 2) AS realScale,
SUM(CASE WHEN ph.construction_state = '待勘察' THEN 1 ELSE 0 END) AS wkc,
SUM(CASE WHEN ps.process_status = '不通过' THEN 1 ELSE 0 END) AS kcwtg,
'' AS kcwtgrl,
SUM(CASE WHEN ps.process_status = '进行中' THEN 1 ELSE 0 END) AS kcjxz,
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/PeasantHouseholdController.java
View file @
f38f4cac
...
...
@@ -305,14 +305,14 @@ public class PeasantHouseholdController extends BaseController {
return
ResponseHelper
.
buildResponse
(
peasantHouseholdServiceImpl
.
deleteUser
(
sequenceNbr
,
peasantHouseholdNo
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"更新详情信息"
,
notes
=
"更新详情信息"
)
@PostMapping
(
value
=
"/saveHistory"
)
public
ResponseModel
updateDetail
(
@RequestBody
PowerStationEngineeringInfoAllDto
powerStationEngineeringInfoAllDto
,
@RequestParam
(
value
=
"operationType"
)
String
operationType
)
{
peasantHouseholdServiceImpl
.
saveHistoryPeasantHousehold
(
powerStationEngineeringInfoAllDto
,
operationType
);
return
ResponseHelper
.
buildResponse
(
null
);
}
//
@TycloudOperation(ApiLevel = UserType.AGENCY)
//
@ApiOperation(httpMethod = "POST",value = "更新详情信息", notes = "更新详情信息")
//
@PostMapping(value = "/saveHistory")
//
public ResponseModel updateDetail(@RequestBody PowerStationEngineeringInfoAllDto powerStationEngineeringInfoAllDto,@RequestParam(value = "operationType") String operationType) {
//
//
peasantHouseholdServiceImpl.saveHistoryPeasantHousehold(powerStationEngineeringInfoAllDto,operationType);
//
return ResponseHelper.buildResponse(null);
//
}
/**
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/PeasantHouseholdServiceImpl.java
View file @
f38f4cac
This diff is collapsed.
Click to expand it.
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 @
f38f4cac
...
...
@@ -105,7 +105,7 @@ public class StatisticsHomepageServiceImpl {
List
<
String
>
surveKeys
=
new
ArrayList
<>(
Arrays
.
asList
(
"未通过"
,
"未勘察"
,
"已完成(法务审核)"
,
"进行中(审核)"
));
List
<
String
>
contractKeys
=
new
ArrayList
<>(
Arrays
.
asList
(
"双方已签署"
,
"农户已签署"
,
"未
发起
"
,
"已作废"
));
List
<
String
>
contractKeys
=
new
ArrayList
<>(
Arrays
.
asList
(
"双方已签署"
,
"农户已签署"
,
"未
签署
"
,
"已作废"
));
List
<
String
>
workOrder
=
new
ArrayList
<>(
Arrays
.
asList
(
"派工发料"
,
"未通过"
,
"施工资料已上传"
,
"完工登记"
,
"完工自审"
,
"审核中"
,
"已完成"
,
"整改待审核"
,
"待整改"
));
List
<
String
>
preparationMoneyKeys
=
new
ArrayList
<>(
Arrays
.
asList
(
"待发货"
,
"已收货"
,
"已发货"
));
List
<
String
>
desionKeys
=
new
ArrayList
<>(
Arrays
.
asList
(
"施工图已上传"
,
"典设图已上传"
));
...
...
@@ -358,13 +358,13 @@ public class StatisticsHomepageServiceImpl {
//判断是不是区域公司存在还款计划 若不存在则给0
for
(
Map
<
String
,
Object
>
stringObjectMap
:
rent
)
{
if
(
stringObjectMap
.
get
(
"regionalCompaniesCode"
).
equals
(
map
.
get
(
"regionalCompaniesCode"
))){
Cell
cell3
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
0
);
Cell
cell3
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
1
);
cell3
.
setCellValue
(
stringObjectMap
.
get
(
"yhk"
).
toString
());
applyBorder
(
cell3
);
Cell
cell1
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
1
);
Cell
cell1
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
2
);
cell1
.
setCellValue
(
stringObjectMap
.
get
(
"jnwhk"
).
toString
());
applyBorder
(
cell1
);
Cell
cell2
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
2
);
Cell
cell2
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
3
);
cell2
.
setCellValue
(
stringObjectMap
.
get
(
"sywhk"
).
toString
());
applyBorder
(
cell2
);
...
...
@@ -373,13 +373,13 @@ public class StatisticsHomepageServiceImpl {
}
if
(
flag
){
Cell
cell3
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
0
);
Cell
cell3
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
1
);
cell3
.
setCellValue
(
0
);
applyBorder
(
cell3
);
Cell
cell1
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
1
);
Cell
cell1
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
2
);
cell1
.
setCellValue
(
0
);
applyBorder
(
cell1
);
Cell
cell2
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
2
);
Cell
cell2
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
3
);
cell2
.
setCellValue
(
0
);
applyBorder
(
cell2
);
}
...
...
@@ -387,9 +387,9 @@ public class StatisticsHomepageServiceImpl {
CellRangeAddress
cellRangeAddress2
=
new
CellRangeAddress
(
startNum
,
endNum
,
1
,
1
);
CellRangeAddress
cellRangeAddress
=
new
CellRangeAddress
(
startNum
,
endNum
,
2
,
2
);
CellRangeAddress
cellRangeAddress1
=
new
CellRangeAddress
(
startNum
,
endNum
,
35
,
35
);
CellRangeAddress
cellRangeAddress3
=
new
CellRangeAddress
(
startNum
,
endNum
,
4
0
,
40
);
CellRangeAddress
cellRangeAddress4
=
new
CellRangeAddress
(
startNum
,
endNum
,
4
1
,
41
);
CellRangeAddress
cellRangeAddress5
=
new
CellRangeAddress
(
startNum
,
endNum
,
4
2
,
42
);
CellRangeAddress
cellRangeAddress3
=
new
CellRangeAddress
(
startNum
,
endNum
,
4
1
,
41
);
CellRangeAddress
cellRangeAddress4
=
new
CellRangeAddress
(
startNum
,
endNum
,
4
2
,
42
);
CellRangeAddress
cellRangeAddress5
=
new
CellRangeAddress
(
startNum
,
endNum
,
4
3
,
43
);
firstSheet
.
addMergedRegion
(
cellRangeAddress
);
firstSheet
.
addMergedRegion
(
cellRangeAddress1
);
firstSheet
.
addMergedRegion
(
cellRangeAddress2
);
...
...
@@ -419,13 +419,13 @@ public class StatisticsHomepageServiceImpl {
//判断是不是区域公司存在还款计划 若不存在则给0
for
(
Map
<
String
,
Object
>
stringObjectMap
:
rent
)
{
if
(
stringObjectMap
.
get
(
"regionalCompaniesCode"
).
equals
(
map
.
get
(
"regionalCompaniesCode"
))){
Cell
cell3
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
0
);
Cell
cell3
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
1
);
cell3
.
setCellValue
(
stringObjectMap
.
get
(
"yhk"
).
toString
());
applyBorder
(
cell3
);
Cell
cell1
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
1
);
Cell
cell1
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
2
);
cell1
.
setCellValue
(
stringObjectMap
.
get
(
"jnwhk"
).
toString
());
applyBorder
(
cell1
);
Cell
cell2
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
2
);
Cell
cell2
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
3
);
cell2
.
setCellValue
(
stringObjectMap
.
get
(
"sywhk"
).
toString
());
applyBorder
(
cell2
);
flag
=
false
;
...
...
@@ -433,13 +433,13 @@ public class StatisticsHomepageServiceImpl {
}
if
(
flag
){
Cell
cell3
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
0
);
Cell
cell3
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
1
);
cell3
.
setCellValue
(
0
);
applyBorder
(
cell3
);
Cell
cell1
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
1
);
Cell
cell1
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
2
);
cell1
.
setCellValue
(
0
);
applyBorder
(
cell1
);
Cell
cell2
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
2
);
Cell
cell2
=
firstSheet
.
getRow
(
startNum
).
createCell
(
4
3
);
cell2
.
setCellValue
(
0
);
applyBorder
(
cell2
);
}
...
...
@@ -469,13 +469,13 @@ public class StatisticsHomepageServiceImpl {
Cell
cell2
=
row
.
createCell
(
2
);
cell2
.
setCellValue
(
map
.
get
(
"regionalCompaniesName"
).
toString
());
applyBorder
(
cell2
);
Cell
cell40
=
row
.
createCell
(
4
0
);
Cell
cell40
=
row
.
createCell
(
4
1
);
cell40
.
setCellValue
(
map
.
get
(
"yhk"
).
toString
());
applyBorder
(
cell40
);
Cell
cell41
=
row
.
createCell
(
4
1
);
Cell
cell41
=
row
.
createCell
(
4
2
);
cell41
.
setCellValue
(
map
.
get
(
"jnwhk"
).
toString
());
applyBorder
(
cell41
);
Cell
cell42
=
row
.
createCell
(
4
2
);
Cell
cell42
=
row
.
createCell
(
4
3
);
cell42
.
setCellValue
(
map
.
get
(
"sywhk"
).
toString
());
applyBorder
(
cell42
);
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/resources/templates/homePageExport.xlsx
View file @
f38f4cac
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