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
a438487a
Commit
a438487a
authored
Jul 05, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
27555…
27555 【小程序端-施工管理】同一个农户,多个房子,第一个房子施工资料完成后,在施工第二个房子,输入安装人电话后,系统自动带出来第一个房子的施工信息,第一个房子信息全没了,发现表hygf_power_station_construction_data.work_order_power_station字段存值错误
parent
f0fe82cf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
WorkOrderServiceImpl.java
...ot/module/hygf/biz/service/impl/WorkOrderServiceImpl.java
+3
-3
No files found.
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 @
a438487a
...
@@ -270,7 +270,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
...
@@ -270,7 +270,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
}
}
@Transactional
@Transactional
public
PowerStationConstructionData
addOrUpdate
(
PowerStationConstructionData
powerStationConstructionData
)
{
public
synchronized
PowerStationConstructionData
addOrUpdate
(
PowerStationConstructionData
powerStationConstructionData
)
{
// 如果不是提交进行单独保存
// 如果不是提交进行单独保存
if
(
powerStationConstructionData
.
isCommitFlow
())
{
if
(
powerStationConstructionData
.
isCommitFlow
())
{
// if(powerStationConstructionData.getSequenceNbr()!=null){
// if(powerStationConstructionData.getSequenceNbr()!=null){
...
@@ -334,8 +334,8 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
...
@@ -334,8 +334,8 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
// 新增施工信息
// 新增施工信息
// 防止重复添加
// 防止重复添加
LambdaUpdateWrapper
<
PowerStationConstructionData
>
psc
=
new
LambdaUpdateWrapper
<>();
LambdaUpdateWrapper
<
PowerStationConstructionData
>
psc
=
new
LambdaUpdateWrapper
<>();
//
psc.eq(PowerStationConstructionData::getWorkOrderPowerStationId,
psc
.
eq
(
PowerStationConstructionData:
:
getWorkOrderPowerStationId
,
//
powerStationConstructionData.getWorkOrderPowerStationId());
powerStationConstructionData
.
getWorkOrderPowerStationId
());
psc
.
eq
(
PowerStationConstructionData:
:
getWorkOrderId
,
powerStationConstructionData
.
getWorkOrderId
());
psc
.
eq
(
PowerStationConstructionData:
:
getWorkOrderId
,
powerStationConstructionData
.
getWorkOrderId
());
powerStationConstructionDataService
.
saveOrUpdate
(
powerStationConstructionData
,
psc
);
powerStationConstructionDataService
.
saveOrUpdate
(
powerStationConstructionData
,
psc
);
// powerStationConstructionDataService.saveOrUpdate(powerStationConstructionData);
// powerStationConstructionDataService.saveOrUpdate(powerStationConstructionData);
...
...
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