导入时被申请人出生年月日校验
This commit is contained in:
+10
@@ -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("【被申请人主体信息-出生年月日】字段不合法,不能超过当前日期;");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user