| | |
| | | @RestController |
| | | public class DashboardController extends BaseController { |
| | | |
| | | Integer PBN = 6; |
| | | |
| | | @Autowired |
| | | private CompanyTargetService companyTargetService; |
| | | @Autowired |
| | |
| | | private ReimburseOnlineService reimburseOnlineService; |
| | | @Autowired |
| | | private CompanyMoneyService companyMoneyService; |
| | | @Autowired |
| | | private ProcessPermissionsService processPermissionsService; |
| | | @Autowired |
| | | private PlanTypeService planTypeService; |
| | | |
| | | //获取团队数据 |
| | | @RequestMapping(value = "/dashboard/companyData/auth") |
| | |
| | | map.put("progressCount", progressCount); |
| | | map.put("successCount", successCount); |
| | | |
| | | // planPendingTaskCount |
| | | // priOnlinePendingTaskCount |
| | | // priQuotePendingTaskCount |
| | | // businessTripPendingTaskCount |
| | | // reimburseOnlinePendingTaskCount |
| | | // planPriOnlinePendingTaskCount |
| | | |
| | | //获取待处理任务数量 |
| | | int planPendingTaskCount = planService.selectCount(new EntityWrapper<Plan>().eq("director", getUserId()).lt("settle",4)); |
| | | map.put("planPendingTaskCount", planPendingTaskCount); |
| | |
| | | map.put("businessTripPendingTaskCount", businessTripPendingTaskCount); |
| | | int reimburseOnlinePendingTaskCount = reimburseOnlineService.selectCount(new EntityWrapper<ReimburseOnline>().eq("member_id", getUserId()).lt("settle",6)); |
| | | map.put("reimburseOnlinePendingTaskCount", reimburseOnlinePendingTaskCount); |
| | | int planPriOnlinePendingTaskCount = planService.selectCount(new EntityWrapper<Plan>().eq("status", 1).eq("settle",4)); |
| | | int planPriOnlinePendingTaskCount = 0; |
| | | List<ProcessPermissions> processPermissionsList = processPermissionsService.selectList(new EntityWrapper<ProcessPermissions>().eq("process_memo", 4).or().eq("process_memo", 5));//2:核价流程 |
| | | int type =0; |
| | | for (ProcessPermissions processPermissions:processPermissionsList){ |
| | | if (getUserId().equals(processPermissions.getUserId())){ |
| | | type=PBN-processPermissions.getProcessMemo(); |
| | | break; |
| | | } |
| | | } |
| | | if (type!=0){ |
| | | EntityWrapper<Plan> wrapper = new EntityWrapper<>(); |
| | | wrapper.eq("status",1); |
| | | wrapper.eq("assistant_host_sign",0); |
| | | List<Long> typeList = new ArrayList<>(); |
| | | List<PlanType> planTypes = planTypeService.selectList(new EntityWrapper<PlanType>().eq("type", type)); |
| | | for (PlanType planType : planTypes){ |
| | | typeList.add(planType.getId()); |
| | | } |
| | | wrapper.in("plan_type",typeList); |
| | | List<Plan> plans = planService.selectList(wrapper); |
| | | planPriOnlinePendingTaskCount=plans.size(); |
| | | } |
| | | map.put("planPriOnlinePendingTaskCount", planPriOnlinePendingTaskCount); |
| | | |
| | | Double successMoney1 = companyMoneyService.selectMoneyReceivablesAll(getUserId(), year); |