|
@@ -2,9 +2,12 @@ package com.ruoyi.system.service.impl.fgw;
|
|
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
+import com.ruoyi.common.utils.StringUtils;
|
|
|
+import com.ruoyi.system.domain.fgw.FgwDbd;
|
|
|
import com.ruoyi.system.domain.fgw.FgwJzqk;
|
|
|
import com.ruoyi.system.domain.fgw.FgwXmsb;
|
|
|
import com.ruoyi.system.domain.projectV2.ZsyzSbbzb;
|
|
|
+import com.ruoyi.system.mapper.fgw.FgwDbdMapper;
|
|
|
import com.ruoyi.system.service.fgw.IFgwCommonService;
|
|
|
import com.ruoyi.system.service.fgw.IFgwJzqkService;
|
|
|
import com.ruoyi.system.service.fgw.IFgwXmsbService;
|
|
@@ -34,6 +37,8 @@ public class FgwCommonServiceImpl implements IFgwCommonService {
|
|
|
|
|
|
@Autowired
|
|
|
private IFgwJzqkService fgwJzqkService;
|
|
|
+ @Autowired
|
|
|
+ private FgwDbdMapper fgwDbdMapper;
|
|
|
|
|
|
/**
|
|
|
* 首页统计
|
|
@@ -48,6 +53,12 @@ public class FgwCommonServiceImpl implements IFgwCommonService {
|
|
|
map.put("xmk", 0);
|
|
|
map.put("zfxm", 0);
|
|
|
map.put("zsxm", 0);
|
|
|
+ //领导批示项目
|
|
|
+ map.put("psxm", 0);
|
|
|
+ //预警项目
|
|
|
+ map.put("yjxm", 0);
|
|
|
+ //超期项目
|
|
|
+ map.put("cqxm", 0);
|
|
|
|
|
|
FgwXmsb xmsb = new FgwXmsb();
|
|
|
List<FgwXmsb> fgwXmsbs = fgwXmsbService.selectFgwXmsbList(xmsb);
|
|
@@ -71,7 +82,28 @@ public class FgwCommonServiceImpl implements IFgwCommonService {
|
|
|
}
|
|
|
}
|
|
|
map.put("zfxm", fgwXmsbs.size());
|
|
|
+ //领导批示
|
|
|
+ int psxm = 0;
|
|
|
+ for (FgwXmsb fgwXmsb : fgwXmsbs) {
|
|
|
+ if(StringUtils.isNotEmpty(fgwXmsb.getPsnr())){
|
|
|
+ psxm++;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ map.put("psxm", psxm);
|
|
|
+
|
|
|
+ }
|
|
|
+ //预警项目
|
|
|
+ List<FgwDbd> fgwDbdList = fgwDbdMapper.selectFgwDbdYjxmNum();
|
|
|
+ if(fgwDbdList != null && fgwDbdList.size() > 0){
|
|
|
+ map.put("yjxm", fgwDbdList.size());
|
|
|
}
|
|
|
+
|
|
|
+ //超期项目
|
|
|
+ List<FgwDbd> fgwDbdListCq = fgwDbdMapper.selectFgwDbdCqxmNum();
|
|
|
+ if(fgwDbdListCq != null && fgwDbdListCq.size() > 0){
|
|
|
+ map.put("cqxm", fgwDbdListCq.size());
|
|
|
+ }
|
|
|
+
|
|
|
ZsyzSbbzb zsyzSbbzb = new ZsyzSbbzb();
|
|
|
|
|
|
List<ZsyzSbbzb> zsyzSbbzbs = zsyzSbbzbService.selectZsyzSbbzbList(zsyzSbbzb);
|
|
@@ -79,6 +111,9 @@ public class FgwCommonServiceImpl implements IFgwCommonService {
|
|
|
map.put("zsxm", zsyzSbbzbs.size());
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
return AjaxResult.success(map);
|
|
|
}
|
|
|
|