Quellcode durchsuchen

[task-1629] 风险管理功能重构 / 风险控制剩余风险等级统计表接口开启

Li Yuan vor 2 Jahren
Ursprung
Commit
4022c2673f

+ 10 - 1
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/business/service/impl/StatisticServiceImpl.java

@@ -40,7 +40,16 @@ public class StatisticServiceImpl implements StatisticService {
             fetchSql = "SELECT c.feng_xian_ying_du,COUNT(1) AS total FROM t_fxssb a,t_fxsbpgb b,t_fxsbpgbzb c " +
                     "   WHERE  a.shi_fou_guo_shen_ = '已完成'  AND  a.zong_id_=#{p0}" +
                     "   AND a.zong_id_=b.zong_id_ AND b.id_=c.parent_id_ GROUP BY c.feng_xian_ying_du";
-        } else{
+        } else if(type.equalsIgnoreCase("SYFX_CD")){
+            fetchSql = "SELECT a.yan_zhong_cheng_d, COUNT(1) AS total FROM t_bmfxgjjl a WHERE  a.shi_fou_guo_shen_ = '已完成' " +
+                    "   AND a.zong_id_=#{p0} GROUP BY a.yan_zhong_cheng_d";
+        }else if(type.equalsIgnoreCase("SYFX_DJ")){
+            fetchSql = "SELECT a.feng_xian_deng_ji, COUNT(1) AS total FROM t_bmfxgjjl a WHERE  a.shi_fou_guo_shen_ = '已完成' " +
+                    "   AND a.zong_id_=#{p0} GROUP BY a.feng_xian_deng_ji";
+        }else if(type.equalsIgnoreCase("SYFX_YD")){
+            fetchSql = "SELECT a.feng_xian_ying_du, COUNT(1) AS total FROM t_bmfxgjjl a WHERE  a.shi_fou_guo_shen_ = '已完成' " +
+                    "   AND a.zong_id_=#{p0} GROUP BY a.feng_xian_ying_du";
+        }else{
             throw new IllegalArgumentException("type not match!");
         }