Commit 3aaf41ed by yao.xiao

修改-目标保存

parent cbf748b0
......@@ -1394,13 +1394,22 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
Integer goalsType = requestVO.getGoalsType();
//初始化之前数据 全部修改为不启用
initializationAction(practitionerId,year,goalsType);
//查询经纪人所在团队
List<AclPractitionerSubordinateSystem> subordinates = aclPractitionerSubordinateSystemDALService.findByOwnerPractitionerId(practitionerId);
if (subordinates.isEmpty()){
responseVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830016")));
return responseVO;
AclPractitionerSubordinateSystem subordinate;
if (goalsType == 2){
//查询经纪人所在团队
List<AclPractitionerSubordinateSystem> subordinates = aclPractitionerSubordinateSystemDALService.findByOwnerPractitionerId(practitionerId);
if (subordinates.isEmpty()){
responseVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830016")));
return responseVO;
}
subordinate = subordinates.get(0);
}else {
subordinate = aclPractitionerSubordinateSystemDALService.findByPractitionerId(practitionerId);
if (subordinate == null){
responseVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830018")));
return responseVO;
}
}
AclPractitionerSubordinateSystem subordinate = subordinates.get(0);
//保存年目标
Date date = new Date();
saveYearGoal(requestVO,practitionerId,date,year,goalsType,subordinate);
......
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