Commit 3c4e2354 by jianan

电子报聘个人声明至少要选一项

parent 84351996
......@@ -328,6 +328,18 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
List<AclPractitionerHiringPersonalStatements> personalStatementList = requestVO.getPersonalStatementList();
Long basicInfoId = requestVO.getHiringBasicInfoId();
// 判断声明至少要勾选一个
Boolean flag = false;
for (AclPractitionerHiringPersonalStatements item :personalStatementList) {
if (Long.valueOf("1").equals(item.getStatus())) {
flag = true;
}
}
if (!flag) {
resp.setCommonResult(new CommonResult(false, "声明至少要选一项"));
return resp;
}
Date curDate = new Date();
personalStatementList.forEach(item -> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment