Commit 7f43a5f2 by jianan

合同生成问题1

parent b42f8ad7
......@@ -700,8 +700,8 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
AclPractitioner practitioner = aclPractitionerMapper.selectByPrimaryKey(practitionerId);
String practitionerCode = practitioner == null ? null : practitioner.getPractitionerCode();
String contractNo = practitioner == null ? null : practitioner.getContractNo();
if (StringUtils.isEmpty(practitionerCode) || StringUtils.isEmpty(contractNo)) {
if (StringUtils.isEmpty(practitionerCode)) {
resp.setCommonResult(new CommonResult(true, "内部编号不能为空,请注意保存"));
return resp;
}
......@@ -710,7 +710,7 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
// resp.setCommonResult(new CommonResult(true, "合同已存在"));
// return resp;
// }
contractNo = hiringContractService.getNextContractNo();
String contractNo = hiringContractService.getNextContractNo();
String contractOssPath = hiringContractService.generatePractitionerContract(practitionerCode, contractNo, hiringBasicInfoId);
//4、经纪人表生成经纪人记录ag_acl_practitioner,ag_acl_practitioner.contract_oss_path
......
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