fix(企标稽查计划): 79646

This commit is contained in:
yjz
2023-12-28 16:03:19 +08:00
parent 200904a4d8
commit aac903e766
@@ -238,7 +238,7 @@ public class ProcessEsInspectPlanServiceImpl extends ServiceImpl<ProcessEsInspec
firstVerify.addAll(sixthVerify);
if (!firstVerify.isEmpty()){
errorMSG.append(head).append(String.join(",", firstVerify));
errorMSG.append(head).append(String.join("", firstVerify));
}
}
//update-begin-author:taoyan date:20190528 for:批量插入数据
@@ -302,6 +302,12 @@ public class ProcessEsInspectPlanServiceImpl extends ServiceImpl<ProcessEsInspec
if (StringUtils.isNotBlank(processEsInspectPlan.getPlanInspectDates())){
try{
Date parse = dateFormat.parse(processEsInspectPlan.getPlanInspectDates());
Calendar instance = Calendar.getInstance();
instance.setTime(parse);
int weekYear = instance.getWeekYear();
if (String.valueOf(weekYear).length() > 4){
throw new JeroBootException("");
}
processEsInspectPlan.setPlanInspectDate(parse);
}catch (Exception e){
errorList.add("计划稽查日期格式不正确!(正确格式:yyyy-MM-dd");