修改更改
parent
e61cb0b9ea
commit
cbd2c424dc
|
@ -97,11 +97,12 @@ public class AccidentRecordsServiceImpl implements AccidentRecordsService {
|
|||
public void update(PageData pageData) {
|
||||
AccidentRecords accidentRecords = new AccidentRecords();
|
||||
accidentRecords.setIncidentNumber(pageData.getString("incidentNumber"));
|
||||
accidentRecords.setId(pageData.getString("id"));
|
||||
accidentRecords.setIncidentName(pageData.getString("incidentName"));
|
||||
accidentRecords.setIncidentType(pageData.getString("incidentType"));
|
||||
accidentRecords.setIncidentLevel(pageData.getString("incidentLevel"));
|
||||
accidentRecords.setLocation(pageData.getString("location"));
|
||||
accidentRecords.setIncidentDate(DateUtil.parse(pageData.getString("incidentDate"), DatePattern.UTC_MS_PATTERN));
|
||||
accidentRecords.setIncidentDate(DateUtil.parse(pageData.getString("incidentDate"), "YYYY-MM-DD HH:mm:ss"));
|
||||
accidentRecords.setDirectLoss(Convert.toInt(pageData.get("directLoss")));
|
||||
accidentRecords.setInjured(Convert.toInt(pageData.get("injured")));
|
||||
accidentRecords.setSeriouslyInjured(Convert.toInt(pageData.get("seriouslyInjured")));
|
||||
|
@ -111,7 +112,7 @@ public class AccidentRecordsServiceImpl implements AccidentRecordsService {
|
|||
accidentRecords.setSuggestions(pageData.getString("suggestions"));
|
||||
accidentRecords.setMeasures(pageData.getString("measures"));
|
||||
accidentRecords.setCreator(pageData.getString("creator"));
|
||||
accidentRecords.setReportDate(DateUtil.parse(pageData.getString("reportDate"), DatePattern.UTC_MS_PATTERN));
|
||||
accidentRecords.setReportDate(DateUtil.parse(pageData.getString("reportDate"), "YYYY-MM-DD HH:mm:ss"));
|
||||
accidentRecords.setUpdatedBy(Jurisdiction.getUsername());
|
||||
accidentRecords.setUpdatedTime(new Date());
|
||||
String corpinfoId = StrUtil.isEmpty(accidentRecords.getCorpinfoId()) ? Jurisdiction.getCORPINFO_ID() : accidentRecords.getCorpinfoId();
|
||||
|
|
Loading…
Reference in New Issue