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
7a4d88b9
Commit
7a4d88b9
authored
Aug 27, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑详情
parent
69ea0b27
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
0 deletions
+43
-0
PowerStationEngineeringInfoAllDto.java
...odule/hygf/api/dto/PowerStationEngineeringInfoAllDto.java
+2
-0
WorkOrderController.java
.../boot/module/hygf/biz/controller/WorkOrderController.java
+7
-0
WorkOrderServiceImpl.java
...ot/module/hygf/biz/service/impl/WorkOrderServiceImpl.java
+34
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/PowerStationEngineeringInfoAllDto.java
View file @
7a4d88b9
...
@@ -58,4 +58,6 @@ public class PowerStationEngineeringInfoAllDto {
...
@@ -58,4 +58,6 @@ public class PowerStationEngineeringInfoAllDto {
//派工单信息
//派工单信息
WorkOrder
workOrder
;
WorkOrder
workOrder
;
//保存标识 0 保存 1保存并提交
Integer
commitFlag
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/WorkOrderController.java
View file @
7a4d88b9
...
@@ -317,6 +317,13 @@ public class WorkOrderController extends BaseController {
...
@@ -317,6 +317,13 @@ public class WorkOrderController extends BaseController {
return
ResponseHelper
.
buildResponse
(
returnDto
);
return
ResponseHelper
.
buildResponse
(
returnDto
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"更新详情信息"
,
notes
=
"更新详情信息"
)
@PostMapping
(
value
=
"/updateDetail"
)
public
ResponseModel
updateDetail
(
@RequestBody
PowerStationEngineeringInfoAllDto
powerStationEngineeringInfoAllDto
)
{
workOrderServiceImpl
.
updateDetail
(
powerStationEngineeringInfoAllDto
,
getUserId
());
return
ResponseHelper
.
buildResponse
(
null
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/WorkOrderServiceImpl.java
View file @
7a4d88b9
...
@@ -1331,4 +1331,37 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
...
@@ -1331,4 +1331,37 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
updateDetail
(
PowerStationEngineeringInfoAllDto
powerStationEngineeringInfoAllDto
,
String
userId
)
{
//更新工程
PowerStationEngineeringInfo
powerStationEngineeringInfo
=
powerStationEngineeringInfoAllDto
.
getPowerStationEngineeringInfo
();
if
(
Objects
.
nonNull
(
powerStationEngineeringInfo
)){
powerStationEngineeringInfoMapper
.
updateById
(
powerStationEngineeringInfo
);
}
//更新施工信息
PowerStationConstructionData
powerStationConstructionData
=
powerStationEngineeringInfoAllDto
.
getPowerStationConstructionData
();
if
(
Objects
.
nonNull
(
powerStationConstructionData
)){
powerStationConstructionDataMapper
.
updateById
(
powerStationConstructionData
);
}
//更新并网信息
HygfOnGrid
hygfOnGrid
=
powerStationEngineeringInfoAllDto
.
getHygfOnGrid
();
if
(
Objects
.
nonNull
(
hygfOnGrid
)){
hygfOnGridMapper
.
updateById
(
hygfOnGrid
);
}
//更新设计信息
DesignInformationDto
designInformation
=
powerStationEngineeringInfoAllDto
.
getDesignInformation
();
if
(
Objects
.
nonNull
(
designInformation
)){
designInformationService
.
updateWithModel
(
designInformation
);
}
//更新商务信息
CommercialDto
commercial
=
powerStationEngineeringInfoAllDto
.
getCommercial
();
if
(
Objects
.
nonNull
(
commercial
)){
commercialService
.
updateWithModel
(
commercial
);
}
//提交
if
(
powerStationEngineeringInfoAllDto
.
getCommitFlag
()
==
1
&&
Objects
.
nonNull
(
hygfOnGrid
)){
basicGridAcceptanceService
.
saveAndCommit
(
hygfOnGrid
,
userId
);
}
}
}
}
\ No newline at end of file
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