|
|
@@ -43,8 +43,12 @@ public class BpmTaskPostExpression {
|
|
|
Assert.isTrue(level>0, "leve必须大于0");
|
|
|
ProcessInstance processInstance = processInstanceService.getProcessInstance(execution.getProcessInstanceId());
|
|
|
Long startId = NumberUtils.parseLong(processInstance.getStartUserId());
|
|
|
+ AdminUserRespDTO user = adminUserApi.getUser(startId);
|
|
|
+ if (user == null) {
|
|
|
+ throw new ServiceException(new ErrorCode(22,"用户不存在"));
|
|
|
+ }
|
|
|
DeptRespDTO dept = null;
|
|
|
- String companyCode = getCompanyCode(startId);
|
|
|
+ String companyCode = getCompanyCode(user.getDeptId());
|
|
|
if ("qhse-bz".equals(type)&&"rh".equals(companyCode)) {
|
|
|
level = level+1;
|
|
|
}
|