|
@@ -9,9 +9,11 @@ import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
+import cn.hutool.core.date.DateUtil;
|
|
|
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.service.SubInfoService;
|
|
|
import com.rtrh.projects.modules.projects.vo.SubInfoQueryTzVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -31,6 +33,8 @@ public class WorkBenchServiceImpl implements WorkBenchService {
|
|
|
@Autowired
|
|
|
private SubInfoMapper subInfoMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private SubInfoService subInfoService;
|
|
|
|
|
|
@Override
|
|
|
public Map<String, Object> getDaiBanData(String kind, String loginName) {
|
|
@@ -105,16 +109,28 @@ public class WorkBenchServiceImpl implements WorkBenchService {
|
|
|
@Override
|
|
|
public Map<String, Object> statisticData() {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
-
|
|
|
- Long warningNum = subInfoMapper.queryWarning();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- Long exceedNum = subInfoMapper.queryExceed();
|
|
|
+ Long exceedNum = subInfoService.queryExceed();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ Long warningNum = subInfoService.queryWarning();
|
|
|
+
|
|
|
|
|
|
- Long notExceedNum = subInfoMapper.queryNotExceed();
|
|
|
+ Long notExceedNum = subInfoService.queryNotExceed();
|
|
|
+
|
|
|
|
|
|
- Long withinNum = subInfoMapper.queryExceedWithin();
|
|
|
+ Long withinNum = subInfoService.queryExceedWithin();
|
|
|
+
|
|
|
|
|
|
- Long outsideNum = subInfoMapper.queryExceedOutside();
|
|
|
+ Long outsideNum = subInfoService.queryExceedOutside();
|
|
|
+
|
|
|
map.put("warningNum", warningNum);
|
|
|
map.put("exceedNum", exceedNum);
|
|
|
map.put("notExceedNum", notExceedNum);
|