瀏覽代碼

招商引资_情况月统计表1

LIVE_YE 2 年之前
父節點
當前提交
9cb5a4b099

+ 25 - 1
ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/projectV2/common/ZsyzCommonServiceImpL.java

@@ -920,8 +920,32 @@ public class ZsyzCommonServiceImpL implements IZsyzCommonService {
             mapMonth.put("yxxsMonth",yxxsMonth);//有效线索(月)
             mapMonth.put("yxxsYear",yxxsYear);//有效线索(年)
             mapList.add(mapMonth);
+
+            //合计
+            Map<String, Object> mapMonthhj = new HashMap<>();
             mapMonth.put("name","合计");
-            mapList.add(mapMonth);
+            Long zswcYearhj =0L;//招商外出天数(年)
+            Long zswcMonthhj =0L;//招商外出天数(月)
+            Long sjksYearhj =0L;//对接客商次数(年)
+            Long sjksMonthhj =0L;//对接客商次数(月)
+            Long yxxsMonthhj = 0L;//有效线索(月)
+            Long yxxsYearhj = 0L;//有效线索(年)
+
+            for (Map<String, Object> stringObjectMap : mapList) {
+                zswcYearhj =zswcYearhj + Long.valueOf(stringObjectMap.get("zswcYear").toString()) ;
+                zswcMonthhj =zswcMonthhj + Long.valueOf(stringObjectMap.get("zswcMonth").toString());
+                sjksYearhj =sjksYearhj + Long.valueOf(stringObjectMap.get("sjksYear").toString());
+                sjksMonthhj =sjksMonthhj +  Long.valueOf(stringObjectMap.get("sjksMonth").toString());
+                yxxsMonthhj =yxxsMonthhj +  Long.valueOf(stringObjectMap.get("yxxsMonth").toString());
+                yxxsYearhj =yxxsYearhj + Long.valueOf(stringObjectMap.get("yxxsYear").toString());
+            }
+            mapMonthhj.put("zswcMonth",zswcMonthhj);//招商外出天数(月)
+            mapMonthhj.put("zswcYear",zswcYearhj);//招商外出天数(年)
+            mapMonthhj.put("sjksMonth",sjksMonthhj);//对接客商次数(月)
+            mapMonthhj.put("sjksYear",sjksYearhj);//对接客商次数(年)
+            mapMonthhj.put("yxxsMonth",yxxsMonthhj);//有效线索(月)
+            mapMonthhj.put("yxxsYear",yxxsYearhj);//有效线索(年)
+            mapList.add(mapMonthhj);
         }
         return mapList;
     }

+ 3 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/projectV2/ZsyzQktjServiceImpl.java

@@ -80,6 +80,9 @@ public class ZsyzQktjServiceImpl implements IZsyzQktjService {
      */
     @Override
     public List<ZsyzQktj> selectZsyzQktjList(ZsyzQktj zsyzQktj) {
+
+        SysUser user = SecurityUtils.getLoginUser().getUser();
+        zsyzQktj.setDeptId(user.getDeptId());
         return zsyzQktjMapper.selectZsyzQktjList(zsyzQktj);
     }