Commit ad8e4a7b authored by hezhuozhi's avatar hezhuozhi

更改勘察创建时间

parent 409990f9
......@@ -199,7 +199,12 @@ public class SurveyInformationServiceImpl
surveyInformation.setReview(0);
if (OPERATION_TYPE_APPLY.equals(operationType) && null == surveyInformation.getCreatorTime()) {
surveyInformation.setCreatorTime(new Date());
Date date = 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);
......@@ -448,7 +453,7 @@ public class SurveyInformationServiceImpl
powerStation.setTechnologyStatus("");
powerStation.setDesignStatus("");
powerStation.setBusinessStatus("");
powerStation.setKcCreateTime(new Date());
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