|
|
@@ -2,6 +2,7 @@ package com.goafanti.expenseAccount.service.impl;
|
|
|
|
|
|
import com.goafanti.admin.bo.AdminListBo;
|
|
|
import com.goafanti.admin.bo.NoticeBo;
|
|
|
+import com.goafanti.admin.service.DepartmentService;
|
|
|
import com.goafanti.common.bo.AdminNoticeBo;
|
|
|
import com.goafanti.common.bo.EmailBo;
|
|
|
import com.goafanti.common.constant.AFTConstants;
|
|
|
@@ -30,6 +31,8 @@ public class ExpenseAccountServiceImpl extends BaseMybatisDao<ExpenseAccountMapp
|
|
|
@Autowired
|
|
|
private AdminMapper adminMapper;
|
|
|
@Autowired
|
|
|
+ private DepartmentService departmentService;
|
|
|
+ @Autowired
|
|
|
private ExpenseAccountMapper expenseAccountMapper;
|
|
|
@Autowired
|
|
|
private PublicReleaseMapper publicReleaseMapper;
|
|
|
@@ -249,9 +252,13 @@ public class ExpenseAccountServiceImpl extends BaseMybatisDao<ExpenseAccountMapp
|
|
|
Integer processStatus=in.getProcessStatus();
|
|
|
//默认自己 设置上级,判断管理员与总裁等顶级审核
|
|
|
if (TokenManager.hasRole(AFTConstants.SALESMAN_ADMIN)){
|
|
|
+ processStatus=1;
|
|
|
+ List<String> list = departmentService.selectMyDeps();
|
|
|
+ param.put("deps",list);
|
|
|
+ }else if (TokenManager.hasRole(AFTConstants.FINANCE)){
|
|
|
processStatus=2;
|
|
|
}else if (checkShiroCED()){
|
|
|
- processStatus=4;
|
|
|
+ processStatus=3;
|
|
|
}
|
|
|
param.put("processStatus",processStatus);
|
|
|
}else {
|