Commit bdda7f33 authored by wujiang's avatar wujiang

提交代码

parent 67dc2c95
...@@ -12,6 +12,8 @@ public class WebConstuctionDataAttachment { ...@@ -12,6 +12,8 @@ public class WebConstuctionDataAttachment {
private boolean commitFlow=false; private boolean commitFlow=false;
private String constructionStatus="未完成";
/** /**
* 施工交底文件 * 施工交底文件
*/ */
......
...@@ -22,7 +22,6 @@ public class WebConstuctionDataBaseInfo { ...@@ -22,7 +22,6 @@ public class WebConstuctionDataBaseInfo {
private Long workOrderPowerStationId; private Long workOrderPowerStationId;
private String constructionStatus;
/** /**
* 安装人员信息 * 安装人员信息
*/ */
......
...@@ -1952,7 +1952,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W ...@@ -1952,7 +1952,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
public WebConstuctionData addOrUpdateWeb(WebConstuctionData webConstuctionData) public WebConstuctionData addOrUpdateWeb(WebConstuctionData webConstuctionData)
{ {
PowerStationConstructionData powerStationConstructionData = new PowerStationConstructionData(); PowerStationConstructionData powerStationConstructionData = new PowerStationConstructionData();
powerStationConstructionData.setCommitFlow(webConstuctionData.getWebConstuctionDataAttachment().isCommitFlow()); powerStationConstructionData.setCommitFlow(true);
powerStationConstructionData.setConstructionInstructionsFile(webConstuctionData.getWebConstuctionDataAttachment().getConstructionInstructionsFile()); powerStationConstructionData.setConstructionInstructionsFile(webConstuctionData.getWebConstuctionDataAttachment().getConstructionInstructionsFile());
powerStationConstructionData.setLaborProtectionEquipmentConfig(webConstuctionData.getWebConstuctionDataAttachment().getLaborProtectionEquipmentConfig()); powerStationConstructionData.setLaborProtectionEquipmentConfig(webConstuctionData.getWebConstuctionDataAttachment().getLaborProtectionEquipmentConfig());
powerStationConstructionData.setSafetyPrecautionVideo(webConstuctionData.getWebConstuctionDataAttachment().getSafetyPrecautionVideo()); powerStationConstructionData.setSafetyPrecautionVideo(webConstuctionData.getWebConstuctionDataAttachment().getSafetyPrecautionVideo());
...@@ -1971,6 +1971,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W ...@@ -1971,6 +1971,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
powerStationConstructionData.setAcCableRouting(webConstuctionData.getWebConstuctionDataAttachment().getAcCableRouting()); powerStationConstructionData.setAcCableRouting(webConstuctionData.getWebConstuctionDataAttachment().getAcCableRouting());
powerStationConstructionData.setOtherPhotos(webConstuctionData.getWebConstuctionDataAttachment().getOtherPhotos()); powerStationConstructionData.setOtherPhotos(webConstuctionData.getWebConstuctionDataAttachment().getOtherPhotos());
powerStationConstructionData.setArchiveAttachments(webConstuctionData.getWebConstuctionDataAttachment().getArchiveAttachments()); powerStationConstructionData.setArchiveAttachments(webConstuctionData.getWebConstuctionDataAttachment().getArchiveAttachments());
powerStationConstructionData.setConstructionStatus(webConstuctionData.getWebConstuctionDataAttachment().getConstructionStatus());
powerStationConstructionData.setWorkOrderId(webConstuctionData.getWebConstuctionDataBaseInfo().getWorkOrderId()); powerStationConstructionData.setWorkOrderId(webConstuctionData.getWebConstuctionDataBaseInfo().getWorkOrderId());
powerStationConstructionData.setWorkOrderPowerStationId(webConstuctionData.getWebConstuctionDataBaseInfo().getWorkOrderPowerStationId()); powerStationConstructionData.setWorkOrderPowerStationId(webConstuctionData.getWebConstuctionDataBaseInfo().getWorkOrderPowerStationId());
...@@ -1979,8 +1980,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W ...@@ -1979,8 +1980,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
powerStationConstructionData.setConstructionInverterInfo(webConstuctionData.getWebConstuctionDataBaseInfo().getConstructionInverterInfo()); powerStationConstructionData.setConstructionInverterInfo(webConstuctionData.getWebConstuctionDataBaseInfo().getConstructionInverterInfo());
powerStationConstructionData.setConstructionCollectorBoxInfo(webConstuctionData.getWebConstuctionDataBaseInfo().getConstructionCollectorBoxInfo()); powerStationConstructionData.setConstructionCollectorBoxInfo(webConstuctionData.getWebConstuctionDataBaseInfo().getConstructionCollectorBoxInfo());
powerStationConstructionData.setConstructionGridBoxInfo(webConstuctionData.getWebConstuctionDataBaseInfo().getConstructionGridBoxInfo()); powerStationConstructionData.setConstructionGridBoxInfo(webConstuctionData.getWebConstuctionDataBaseInfo().getConstructionGridBoxInfo());
powerStationConstructionData.setConstructionStatus(webConstuctionData.getWebConstuctionDataBaseInfo().getConstructionStatus()); if("已完成".equals(powerStationConstructionData.getConstructionStatus()))
if(webConstuctionData.getWebConstuctionDataAttachment().isCommitFlow())
{ {
if(Objects.isNull(powerStationConstructionData.getInstallerInfo())){ if(Objects.isNull(powerStationConstructionData.getInstallerInfo())){
throw new BadRequest("安装人员不能为空"); throw new BadRequest("安装人员不能为空");
...@@ -2086,13 +2086,13 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W ...@@ -2086,13 +2086,13 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
webConstuctionData.getWebConstuctionDataAttachment().setAcCableRouting(powerStationConstructionData.getAcCableRouting()); webConstuctionData.getWebConstuctionDataAttachment().setAcCableRouting(powerStationConstructionData.getAcCableRouting());
webConstuctionData.getWebConstuctionDataAttachment().setOtherPhotos(powerStationConstructionData.getOtherPhotos()); webConstuctionData.getWebConstuctionDataAttachment().setOtherPhotos(powerStationConstructionData.getOtherPhotos());
webConstuctionData.getWebConstuctionDataAttachment().setArchiveAttachments(powerStationConstructionData.getArchiveAttachments()); webConstuctionData.getWebConstuctionDataAttachment().setArchiveAttachments(powerStationConstructionData.getArchiveAttachments());
webConstuctionData.getWebConstuctionDataAttachment().setConstructionStatus(powerStationConstructionData.getConstructionStatus());
webConstuctionData.getWebConstuctionDataBaseInfo().setInstallerInfo(powerStationConstructionData.getInstallerInfo()); webConstuctionData.getWebConstuctionDataBaseInfo().setInstallerInfo(powerStationConstructionData.getInstallerInfo());
webConstuctionData.getWebConstuctionDataBaseInfo().setConstructionComponentInfo(powerStationConstructionData.getConstructionComponentInfo()); webConstuctionData.getWebConstuctionDataBaseInfo().setConstructionComponentInfo(powerStationConstructionData.getConstructionComponentInfo());
webConstuctionData.getWebConstuctionDataBaseInfo().setConstructionInverterInfo(powerStationConstructionData.getConstructionInverterInfo()); webConstuctionData.getWebConstuctionDataBaseInfo().setConstructionInverterInfo(powerStationConstructionData.getConstructionInverterInfo());
webConstuctionData.getWebConstuctionDataBaseInfo().setConstructionCollectorBoxInfo(powerStationConstructionData.getConstructionCollectorBoxInfo()); webConstuctionData.getWebConstuctionDataBaseInfo().setConstructionCollectorBoxInfo(powerStationConstructionData.getConstructionCollectorBoxInfo());
webConstuctionData.getWebConstuctionDataBaseInfo().setConstructionGridBoxInfo(powerStationConstructionData.getConstructionGridBoxInfo()); webConstuctionData.getWebConstuctionDataBaseInfo().setConstructionGridBoxInfo(powerStationConstructionData.getConstructionGridBoxInfo());
webConstuctionData.getWebConstuctionDataBaseInfo().setConstructionStatus(powerStationConstructionData.getConstructionStatus());
} }
} }
//webConstuctionData.getWebConstuctionDataAttachment().setCommitFlow(false); //webConstuctionData.getWebConstuctionDataAttachment().setCommitFlow(false);
......
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