Commit a7355ff8 authored by hezhuozhi's avatar hezhuozhi

处理编辑详情

parent 9bfadd63
......@@ -1402,6 +1402,11 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
@Transactional(rollbackFor = Exception.class)
public void updateDetail(PowerStationEngineeringInfoAllDto powerStationEngineeringInfoAllDto,String userId) {
//更新施工信息
PowerStationConstructionData powerStationConstructionData = powerStationEngineeringInfoAllDto.getPowerStationConstructionData();
if(Objects.nonNull(powerStationConstructionData)){
powerStationConstructionDataMapper.updateById(powerStationConstructionData);
}
//更新工程
PowerStationEngineeringInfo powerStationEngineeringInfo = powerStationEngineeringInfoAllDto.getPowerStationEngineeringInfo();
if(Objects.nonNull(powerStationEngineeringInfo)){
......@@ -1424,11 +1429,6 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
upl.eq(WorkOrder::getSequenceNbr, powerStationEngineeringInfo.getWorkOrderId());
workOrderMapper.update(null,upl);
}
//更新施工信息
PowerStationConstructionData powerStationConstructionData = powerStationEngineeringInfoAllDto.getPowerStationConstructionData();
if(Objects.nonNull(powerStationConstructionData)){
powerStationConstructionDataMapper.updateById(powerStationConstructionData);
}
//更新并网信息
HygfOnGrid hygfOnGrid = powerStationEngineeringInfoAllDto.getHygfOnGrid();
if(Objects.nonNull(hygfOnGrid)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment