Procházet zdrojové kódy

ods时间格式问题

master
chenchaod před 2 týdny
rodič
revize
3859944775

+ 1
- 1
zhywpt-service-ods/src/main/java/cn/com/taiji/ods/manager/oqs/issue/IssueCommManagerImpl.java Zobrazit soubor

@@ -131,7 +131,7 @@ public abstract class IssueCommManagerImpl {
vehicleInfo.setTestRecord(dsiVehicleInfo.getTestRecord());
vehicleInfo.setFileNum(dsiVehicleInfo.getFileNum());
if (dsiVehicleInfo.getRegisteredTime().contains("T")){
vehicleInfo.setRegisteredTime(LocalDateTime.parse(dsiVehicleInfo.getRegisteredTime(), DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
vehicleInfo.setRegisteredTime(LocalDateTime.parse(dsiVehicleInfo.getRegisteredTime(), TimeTools.ISO_LOCAL_DATE_TIME));
}else {
vehicleInfo.setRegisteredTime(LocalDateTime.parse(dsiVehicleInfo.getRegisteredTime(), DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
}

Načítá se…
Zrušit
Uložit