Commit 27ee39b9 by jianan

ydLife审批报错

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