Commit 804964ea authored by hezhuozhi's avatar hezhuozhi

更改勘察创建时间

parent ad8e4a7b
...@@ -199,12 +199,7 @@ public class SurveyInformationServiceImpl ...@@ -199,12 +199,7 @@ public class SurveyInformationServiceImpl
surveyInformation.setReview(0); surveyInformation.setReview(0);
if (OPERATION_TYPE_APPLY.equals(operationType) && null == surveyInformation.getCreatorTime()) { if (OPERATION_TYPE_APPLY.equals(operationType) && null == surveyInformation.getCreatorTime()) {
Date date = new Date(); surveyInformation.setCreatorTime(new Date());
surveyInformation.setCreatorTime(date);
//更新勘察创建时间
LambdaUpdateWrapper<PowerStation> wrapper = new LambdaUpdateWrapper<>();
wrapper.set(PowerStation::getKcCreateTime,date).eq(PowerStation::getSequenceNbr,powerStation.getSequenceNbr());
powerStationMapper.update(null,wrapper);
} }
this.saveOrUpdate(surveyInformation); this.saveOrUpdate(surveyInformation);
...@@ -453,7 +448,10 @@ public class SurveyInformationServiceImpl ...@@ -453,7 +448,10 @@ public class SurveyInformationServiceImpl
powerStation.setTechnologyStatus(""); powerStation.setTechnologyStatus("");
powerStation.setDesignStatus(""); powerStation.setDesignStatus("");
powerStation.setBusinessStatus(""); powerStation.setBusinessStatus("");
SurveyInformation surveyInformation = this.baseMapper.selectById(peasantHousehold.getSurveyInformationId());
if(Objects.nonNull(surveyInformation)){
powerStation.setKcCreateTime(surveyInformation.getCreatorTime());
}
powerStationService.savePowerStation(powerStation, true, powerStation.getOwnersName(), ""); powerStationService.savePowerStation(powerStation, true, powerStation.getOwnersName(), "");
// //
......
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