Commit 27ee39b9 by jianan

ydLife审批报错

parent 31617862
...@@ -502,14 +502,14 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService ...@@ -502,14 +502,14 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
//当approvalIdentity=0时需要保存两条记录 //当approvalIdentity=0时需要保存两条记录
if (approvalIdentity == 0L || approvalIdentity == 1L){ if (approvalIdentity == 0L || approvalIdentity == 1L){
boolean hasStepSeq = addStepToList(requestVO,1,hiringApproveStepsList,hiringApproveRecordsList); boolean hasStepSeq = addStepToList(requestVO,1,hiringApproveStepsList,hiringApproveRecordsList);
if (hasStepSeq) { if (!hasStepSeq) {
responseVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830025"))); responseVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830025")));
return responseVO; return responseVO;
} }
} }
if (approvalIdentity == 0L || approvalIdentity == 2L){ if (approvalIdentity == 0L || approvalIdentity == 2L){
boolean hasStepSeq = addStepToList(requestVO,2,hiringApproveStepsList,hiringApproveRecordsList); boolean hasStepSeq = addStepToList(requestVO,2,hiringApproveStepsList,hiringApproveRecordsList);
if (hasStepSeq) { if (!hasStepSeq) {
responseVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830025"))); responseVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830025")));
return responseVO; return responseVO;
} }
...@@ -632,9 +632,9 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService ...@@ -632,9 +632,9 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
int stepSeq, int stepSeq,
List<MdPractitionerHiringApproveSteps> hiringApproveStepsList, List<MdPractitionerHiringApproveSteps> hiringApproveStepsList,
List<AclPractitionerHiringApproveRecords> hiringApproveRecordsList) { List<AclPractitionerHiringApproveRecords> hiringApproveRecordsList) {
BeanPropertyValueEqualsPredicate predicate = new BeanPropertyValueEqualsPredicate("stepSeq",stepSeq); BeanPropertyValueEqualsPredicate predicate = new BeanPropertyValueEqualsPredicate("stepSeq", stepSeq);
List<MdPractitionerHiringApproveSteps> steps = (List<MdPractitionerHiringApproveSteps>) CollectionUtils.select(hiringApproveStepsList,predicate); List<MdPractitionerHiringApproveSteps> steps = (List<MdPractitionerHiringApproveSteps>) CollectionUtils.select(hiringApproveStepsList, predicate);
if (steps.size() != 1){ if (steps.size() != 1) {
return false; return false;
} }
AclPractitionerHiringApproveRecords records = new AclPractitionerHiringApproveRecords(); AclPractitionerHiringApproveRecords records = new AclPractitionerHiringApproveRecords();
......
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