|
|
@@ -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!");
|
|
|
}
|
|
|
|