fix: 各部门主动上报流程日期上传失败BUG
This commit is contained in:
@@ -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,使得日期解析更为严格
|
||||
|
||||
Reference in New Issue
Block a user