| | |
| | | import me.zhengjie.modules.project.domain.*; |
| | | import me.zhengjie.modules.project.repository.*; |
| | | import me.zhengjie.modules.project.service.ProjectCostService; |
| | | import me.zhengjie.modules.project.service.dto.ProjectTypeQueryCriteria; |
| | | import me.zhengjie.modules.system.domain.DictDetail; |
| | | import me.zhengjie.modules.system.domain.SysGoalSetting; |
| | | import me.zhengjie.modules.system.repository.SysGoalSettingRepository; |
| | |
| | | returnMap.put("incompleteHours", incompleteHours); |
| | | return returnMap; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> queryTypeContractPrice(ProjectQueryCriteria criteria){ |
| | | // 根据项目区分、目标年份查询类型营业额 |
| | | List<ProjectSummary> projectSummaryList = projectRepository.findTypeContractPriceByProjectDistinguishAndTargetYear(criteria.getProjectDistinguish(), criteria.getTargetYear()); |
| | | // 返回列表 |
| | | List<Map<String, Object>> returnList = new ArrayList<>(); |
| | | // 循环类型营业额 |
| | | for (int i = 0; i < projectSummaryList.size(); i ++) { |
| | | // 返回集合 |
| | | Map<String, Object> returnMap = new HashMap<>(); |
| | | returnMap.put("name", projectSummaryList.get(i).getProjectTypeName()); |
| | | returnMap.put("value", projectSummaryList.get(i).getContractPrice()); |
| | | // 返回列表 |
| | | returnList.add(returnMap); |
| | | } |
| | | return returnList; |
| | | } |
| | | } |