|
|
@@ -132,7 +132,6 @@ public class OrderInvoiceServiceImpl extends BaseMybatisDao<TOrderInvoiceMapper>
|
|
|
List<String> aDep=new ArrayList<>();
|
|
|
//财务专员查看自己的
|
|
|
if (TokenManager.hasRole(AFTConstants.FINANCE)) {
|
|
|
- params.put("financeId", TokenManager.getAdminId());
|
|
|
aDep.addAll(departmentService.getFinanceDep(TokenManager.getAdminId()));
|
|
|
}
|
|
|
//财务经理
|
|
|
@@ -144,6 +143,11 @@ public class OrderInvoiceServiceImpl extends BaseMybatisDao<TOrderInvoiceMapper>
|
|
|
aDep.addAll(departmentService.selectMyDeps());
|
|
|
|
|
|
}
|
|
|
+ if (TokenManager.hasRole(AFTConstants.FINANCE_ADMIN)) {
|
|
|
+ if (o.getDeps()!=null){
|
|
|
+ aDep.addAll(departmentService.parseArray(o.getDeps()));
|
|
|
+ }
|
|
|
+ }
|
|
|
if(o.getDeps()==null){
|
|
|
if (!aDep.isEmpty()){
|
|
|
params.put("deps", aDep);
|