Commit db0fb8fc authored by hezhuozhi's avatar hezhuozhi

处理编辑详情

parent 136f437f
...@@ -1405,6 +1405,23 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W ...@@ -1405,6 +1405,23 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
PowerStationEngineeringInfo powerStationEngineeringInfo = powerStationEngineeringInfoAllDto.getPowerStationEngineeringInfo(); PowerStationEngineeringInfo powerStationEngineeringInfo = powerStationEngineeringInfoAllDto.getPowerStationEngineeringInfo();
if(Objects.nonNull(powerStationEngineeringInfo)){ if(Objects.nonNull(powerStationEngineeringInfo)){
powerStationEngineeringInfoMapper.updateById(powerStationEngineeringInfo); powerStationEngineeringInfoMapper.updateById(powerStationEngineeringInfo);
//更新施工组件信息
LambdaUpdateWrapper<PowerStationConstructionData> powerStationConstructionDataWrapper = new LambdaUpdateWrapper<>();
powerStationConstructionDataWrapper.set(PowerStationConstructionData::getConstructionComponentInfo,powerStationEngineeringInfo.getConstructionComponentInfo());
powerStationConstructionDataWrapper.set(PowerStationConstructionData::getConstructionInverterInfo,powerStationEngineeringInfo.getConstructionInverterInfo());
powerStationConstructionDataWrapper.set(PowerStationConstructionData::getConstructionCollectorBoxInfo,powerStationEngineeringInfo.getConstructionCollectorBoxInfo());
powerStationConstructionDataWrapper.set(PowerStationConstructionData::getConstructionGridBoxInfo,powerStationEngineeringInfo.getConstructionGridBoxInfo());
powerStationConstructionDataWrapper.eq(PowerStationConstructionData::getWorkOrderId, powerStationEngineeringInfo.getWorkOrderId());
powerStationConstructionDataWrapper.eq(PowerStationConstructionData::getWorkOrderPowerStationId, powerStationEngineeringInfo.getWorkOrderPowerStationId());
powerStationConstructionDataMapper.update(null,powerStationConstructionDataWrapper);
//更新工程负责人
LambdaUpdateWrapper<WorkOrder> upl = new LambdaUpdateWrapper();
upl.set(WorkOrder::getProjectRegionManager, powerStationEngineeringInfo.getProjectRegionManager());
upl.set(WorkOrder::getProjectRegionManagerPhone, powerStationEngineeringInfo.getProjectRegionManagerPhone());
upl.set(WorkOrder::getConstructionRegionManager, powerStationEngineeringInfo.getConstructionRegionManager());
upl.set(WorkOrder::getConstructionRegionManagerPhone, powerStationEngineeringInfo.getConstructionRegionManagerPhone());
upl.eq(WorkOrder::getSequenceNbr, powerStationEngineeringInfo.getWorkOrderId());
workOrderMapper.update(null,upl);
} }
//更新施工信息 //更新施工信息
PowerStationConstructionData powerStationConstructionData = powerStationEngineeringInfoAllDto.getPowerStationConstructionData(); PowerStationConstructionData powerStationConstructionData = powerStationEngineeringInfoAllDto.getPowerStationConstructionData();
......
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