| | |
| | | |
| | | |
| | | @Override |
| | | public Map<String, Object> costStatistics(IPage<CostStatisticsDto> page, CostStatisticsDto costStatisticsDto) { |
| | | public IPage<CostStatisticsDto> costStatistics(IPage<CostStatisticsDto> page, CostStatisticsDto costStatisticsDto) { |
| | | String dates = costStatisticsDto.getDates(); |
| | | String[] split = dates.replaceAll("\\[", "").replaceAll("]", "").replaceAll("\"", "").split(","); |
| | | costStatisticsDto.setDates(null); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | // map.put("head", PrintChina.printChina(CostStatisticsDto.class)); |
| | | Map<String, Integer> map1 = new HashMap<>(); |
| | | if (map1.get("look") == 1) costStatisticsDto.setCreateUser(map1.get("userId")); |
| | | // 获取当前人所在实验室 |
| | | Integer userId = 1; |
| | | Integer userId = Integer.parseInt(SecurityUtils.getLoginUser().getUser().getUserId().toString()); |
| | | String departLimsId = userMapper.selectById(userId).getDepartLimsId(); |
| | | String laboratory = ""; |
| | | if (StringUtils.isNotBlank(departLimsId)) { |
| | |
| | | return dto; |
| | | }).collect(Collectors.toList()); |
| | | dtoIPage.setRecords(collect); |
| | | map.put("body", dtoIPage); |
| | | return map; |
| | | return dtoIPage; |
| | | } |
| | | |
| | | @Override |