fix: 各部门主动上报流程日期上传失败BUG

This commit is contained in:
2023-12-14 16:06:10 +08:00
parent 0cbf57eef6
commit add7459d3f
4 changed files with 44 additions and 8 deletions
@@ -504,7 +504,7 @@ public class ImportUtil {
return errMsgList;
}
private Date convertDate(String cellValue) {
public Date convertDate(String cellValue) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
// 设置lenient为false,使得日期解析更为严格
sdf.setLenient(false);
@@ -552,7 +552,7 @@ public class ImportUtil {
}
// 单选日期校验
private boolean singleDateValid(String cellValue) {
public boolean singleDateValid(String cellValue) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
// 设置lenient为false,使得日期解析更为严格