Commit e7d4cdf4 by jianan

报聘职级不能为空

parent d319f69a
......@@ -80,6 +80,19 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
public SaveMembershipResponseVO saveMembership(SaveMembershipRequestVO requestVO) {
SaveMembershipResponseVO resp = new SaveMembershipResponseVO();
try {
Long mdDropOptionId = requestVO.getMdDropOptionId();
if (mdDropOptionId == null) {
resp.setCommonResult(new CommonResult(false, "报聘职级不能为空"));
return resp;
}
if (!Long.valueOf("30").equals(mdDropOptionId)) {
Long mentorPractitionerId = requestVO.getMentorPractitionerId();
if (mentorPractitionerId == null) {
resp.setCommonResult(new CommonResult(false, "S2级别以下,辅导人不能为空"));
return resp;
}
}
Long basicInfoId = requestVO.getHiringBasicInfoId();
if (basicInfoId == null) {
// 先保存ag_acl_practitioner_hiring_basic_info,获取hiringBasicInfoId
......
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