修改时间类型

hyx_2024-10-12_xgfPerson
shanao 2024-09-14 20:41:30 +08:00
parent cbd2c424dc
commit 39f19b3526
2 changed files with 6 additions and 6 deletions

View File

@ -67,7 +67,7 @@ public class AccidentRecords implements Serializable {
/**
*
*/
private Date incidentDate;
private String incidentDate;
/**
*
@ -130,7 +130,7 @@ public class AccidentRecords implements Serializable {
/**
*
*/
private Date reportDate;
private String reportDate;
/**
*

View File

@ -78,7 +78,7 @@ public class AccidentRecordsServiceImpl implements AccidentRecordsService {
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(pageData.getString("incidentDate"));
accidentRecords.setDirectLoss(Convert.toInt(pageData.get("directLoss")));
accidentRecords.setInjured(Convert.toInt(pageData.get("injured")));
accidentRecords.setSeriouslyInjured(Convert.toInt(pageData.get("seriouslyInjured")));
@ -88,7 +88,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(pageData.getString("reportDate"));
Assert.isTrue(accidentRecordsMapper.save(accidentRecords) == 1, "新增事故记录失败");
}
@ -102,7 +102,7 @@ public class AccidentRecordsServiceImpl implements AccidentRecordsService {
accidentRecords.setIncidentType(pageData.getString("incidentType"));
accidentRecords.setIncidentLevel(pageData.getString("incidentLevel"));
accidentRecords.setLocation(pageData.getString("location"));
accidentRecords.setIncidentDate(DateUtil.parse(pageData.getString("incidentDate"), "YYYY-MM-DD HH:mm:ss"));
accidentRecords.setIncidentDate(pageData.getString("incidentDate"));
accidentRecords.setDirectLoss(Convert.toInt(pageData.get("directLoss")));
accidentRecords.setInjured(Convert.toInt(pageData.get("injured")));
accidentRecords.setSeriouslyInjured(Convert.toInt(pageData.get("seriouslyInjured")));
@ -112,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"), "YYYY-MM-DD HH:mm:ss"));
accidentRecords.setReportDate(pageData.getString("reportDate"));
accidentRecords.setUpdatedBy(Jurisdiction.getUsername());
accidentRecords.setUpdatedTime(new Date());
String corpinfoId = StrUtil.isEmpty(accidentRecords.getCorpinfoId()) ? Jurisdiction.getCORPINFO_ID() : accidentRecords.getCorpinfoId();