| | |
| | | |
| | | |
| | | @Override |
| | | public List<Integer> selectMothCount() { |
| | | public List<Integer> selectMothCount(List<Integer> deptIds) { |
| | | Date startTime = DateTimeUtil.getMonthStartDay(); |
| | | Date endTime = DateTimeUtil.getMonthEndDay(); |
| | | List<KeyValue> mouthCount = userEventLogMapper.selectCountByDate(startTime, endTime); |
| | | List<KeyValue> mouthCount = userEventLogMapper.selectCountByDate(startTime, endTime, deptIds); |
| | | List<String> mothStartToNowFormat = DateTimeUtil.MothStartToNowFormat(); |
| | | return mothStartToNowFormat.stream().map(md -> { |
| | | KeyValue keyValue = mouthCount.stream().filter(kv -> kv.getName().equals(md)).findAny().orElse(null); |