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
8d813deb
Commit
8d813deb
authored
Oct 08, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
存量合同新增
parent
ffca4df9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
PeasantHouseholdServiceImpl.java
...le/hygf/biz/service/impl/PeasantHouseholdServiceImpl.java
+13
-11
No files found.
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 @
8d813deb
...
...
@@ -1315,21 +1315,17 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
//更新施工信息
PowerStationConstructionData
powerStationConstructionData
=
surveyInfoAllDto
.
getPowerStationConstructionData
();
powerStationConstructionData
.
setWorkOrderPowerStationId
(
peasantHousehold
.
getSequenceNbr
());
// 避免生成多份数据
powerStationConstructionDataService
.
saveOrUpdate
(
powerStationConstructionData
,
new
LambdaQueryWrapper
<
PowerStationConstructionData
>()
.
eq
(
PowerStationConstructionData:
:
getWorkOrderPowerStationId
,
peasantHousehold
.
getSequenceNbr
()));
LambdaUpdateWrapper
<
PowerStationConstructionData
>
powerStationConstructionDataWrapper1
=
new
LambdaUpdateWrapper
<>();
powerStationConstructionDataWrapper1
.
eq
(
PowerStationConstructionData:
:
getWorkOrderPowerStationId
,
peasantHousehold
.
getSequenceNbr
());
PowerStationConstructionData
data
=
powerStationConstructionDataService
.
getBaseMapper
().
selectOne
(
powerStationConstructionDataWrapper1
);
if
(
Objects
.
isNull
(
data
)){
powerStationConstructionData
.
setWorkOrderPowerStationId
(
peasantHousehold
.
getSequenceNbr
());
powerStationConstructionDataService
.
saveOrUpdate
(
powerStationConstructionData
);
}
//更新工程
PowerStationEngineeringInfo
powerStationEngineeringInfo
=
surveyInfoAllDto
.
getPowerStationEngineeringInfo
();
if
(
Objects
.
nonNull
(
powerStationEngineeringInfo
)){
powerStationEngineeringInfo
.
setWorkOrderPowerStationId
(
peasantHousehold
.
getSequenceNbr
());
powerStationEngineeringInfoService
.
saveOrUpdate
(
powerStationEngineeringInfo
);
powerStationEngineeringInfoService
.
saveOrUpdate
(
powerStationEngineeringInfo
,
new
LambdaQueryWrapper
<
PowerStationEngineeringInfo
>()
.
eq
(
PowerStationEngineeringInfo:
:
getWorkOrderPowerStationId
,
peasantHousehold
.
getSequenceNbr
()));
//更新施工组件信息
LambdaUpdateWrapper
<
PowerStationConstructionData
>
powerStationConstructionDataWrapper
=
new
LambdaUpdateWrapper
<>();
powerStationConstructionDataWrapper
.
set
(
PowerStationConstructionData:
:
getConstructionComponentInfo
,
JSONArray
.
toJSONString
(
powerStationEngineeringInfo
.
getConstructionComponentInfo
()));
...
...
@@ -1345,6 +1341,9 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
HygfOnGrid
hygfOnGrid
=
surveyInfoAllDto
.
getHygfOnGrid
();
if
(
Objects
.
nonNull
(
hygfOnGrid
)){
hygfOnGrid
.
setPeasantHouseholdId
(
peasantHousehold
.
getSequenceNbr
());
// 避免生成多份数据
hygfOnGridService
.
saveOrUpdate
(
hygfOnGrid
,
new
LambdaQueryWrapper
<
HygfOnGrid
>()
.
eq
(
HygfOnGrid:
:
getPeasantHouseholdId
,
peasantHousehold
.
getSequenceNbr
()));
hygfOnGridService
.
saveOrUpdate
(
hygfOnGrid
);
}
//更新设计信息
...
...
@@ -1354,7 +1353,10 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
DesignInformation
designInformation
=
BeanDtoUtils
.
convert
(
designInformationDto
,
DesignInformation
.
class
);
designInformation
.
setPeasantHouseholdId
(
String
.
valueOf
(
peasantHousehold
.
getSequenceNbr
()));
designInformationService
.
saveOrUpdate
(
designInformation
);
designInformationService
.
saveOrUpdate
(
designInformation
,
new
LambdaQueryWrapper
<
DesignInformation
>()
.
eq
(
DesignInformation:
:
getPeasantHouseholdId
,
peasantHousehold
.
getSequenceNbr
()));
}
}
...
...
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