导入时被申请人出生年月日校验

This commit is contained in:
18792927508
2023-10-25 17:07:48 +08:00
parent c0c35306ef
commit d3c1778bc3
3 changed files with 23 additions and 9 deletions
@@ -1306,6 +1306,16 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
}else if(caseApplication.getDebtorWorkAddress().length()>50){
failureMsg.append("【被申请人主体信息-单位地址】字段超出指定长度,最大长度为50;");
}
if( StrUtil.isEmpty(caseApplication.getResponSex())){
failureMsg.append("【被申请人主体信息-性别】字段不能为空;");
}else if(caseApplication.getResponSex().length()>1){
failureMsg.append("【被申请人主体信息-性别】字段超出指定长度,最大长度为1;");
}
if( caseApplication.getResponBirth()== null){
failureMsg.append("【被申请人主体信息-出生年月日】字段不合法;");
}else if(caseApplication.getResponBirth().after(new Date())){
failureMsg.append("【被申请人主体信息-出生年月日】字段不合法,不能超过当前日期;");
}
}
/**