|
@@ -657,14 +657,13 @@ public class TCntrnoServiceImpl implements ITCntrnoService {
|
|
if (StringUtils.isEmpty(dataFormatString)) {
|
|
if (StringUtils.isEmpty(dataFormatString)) {
|
|
return AjaxResult.error("Excel箱信息数据第" + line + "行数据缺少动态日期");
|
|
return AjaxResult.error("Excel箱信息数据第" + line + "行数据缺少动态日期");
|
|
}
|
|
}
|
|
- Date parse = HSSFDateUtil.getJavaDate(Double.valueOf(dataFormatString));
|
|
|
|
- /* Date parse = new Date();
|
|
|
|
|
|
+ Date parse = null;
|
|
try {
|
|
try {
|
|
- SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
|
|
|
- parse = simpleDateFormat.parse(dataFormatString);
|
|
|
|
|
|
+ parse = HSSFDateUtil.getJavaDate(Double.valueOf(dataFormatString));
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- return AjaxResult.error("日期格式有误,正确格式如: 2021/9/2 15:11:22");
|
|
|
|
- }*/
|
|
|
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
+ parse = simpleDateFormat.parse(dataFormatString);
|
|
|
|
+ }
|
|
companyMsg.setfUpdatetime(parse);
|
|
companyMsg.setfUpdatetime(parse);
|
|
break;
|
|
break;
|
|
case "船名":
|
|
case "船名":
|