|
@@ -9,14 +9,10 @@ import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
-import cn.hutool.core.date.DateTime;
|
|
|
-import cn.hutool.core.date.DateUtil;
|
|
|
-import com.rtrh.projects.modules.projects.enums.SubInfoCbStatusEnum;
|
|
|
import com.rtrh.projects.modules.projects.enums.SubInfoStatusEnum;
|
|
|
import com.rtrh.projects.modules.projects.mapper.SubInfoMapper;
|
|
|
import com.rtrh.projects.modules.projects.po.SubInfoGxj;
|
|
|
import com.rtrh.projects.modules.projects.vo.SubInfoQueryTzVO;
|
|
|
-import com.rtrh.projects.modules.projects.vo.WorkBenchVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -50,12 +46,9 @@ public class WorkBenchServiceImpl implements WorkBenchService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Map<String, Object> getStatisticData(String kind, LoginUserVO loginUserVO) {
|
|
|
- Map<String,Object> dataMap = new HashMap<String, Object>();
|
|
|
-
|
|
|
- SubInfoQueryTzVO queryVO = new SubInfoQueryTzVO();
|
|
|
- queryVO.setStatus(null);
|
|
|
+ public Map<String, Object> getStatisticData(String kind, LoginUserVO loginUserVO, SubInfoQueryTzVO queryVO) {
|
|
|
List<SubInfoGxj> listTotal = subInfoMapper.queryStatistics(queryVO);
|
|
|
+ Map<String,Object> dataMap = new HashMap<String, Object>();
|
|
|
Map<String, Long> categoryMap = listTotal.stream().collect(Collectors.groupingBy(SubInfoGxj::getStatus, Collectors.counting()));
|
|
|
|
|
|
dataMap.put("totalNum", listTotal.size());
|