|
|
@@ -826,9 +826,9 @@ public class StatisticServiceImpl implements StatisticService {
|
|
|
"FROM t_rypxcjb " +
|
|
|
"WHERE ji_hua_lei_xing_ = '在岗培训' AND shi_fou_guo_shen_ = '已结束' %s) AS subquery";
|
|
|
|
|
|
- String signSqlTemplate = "SELECT COALESCE(SUM(total),0) AS total_num from (SELECT count(b.id_) total from t_rypxcjb a,t_qdxxb b " +
|
|
|
+ String signSqlTemplate = "SELECT count(DISTINCT b.ren_yuan_id_) total_num from t_rypxcjb a,t_qdxxb b " +
|
|
|
" WHERE a.id_ =b.guan_lian_id_ and FIND_IN_SET(b.ren_yuan_id_,a.pei_xun_ren_yuan_) " +
|
|
|
- " and a.ji_hua_lei_xing_ = '在岗培训' AND a.shi_fou_guo_shen_ = '已结束' %s GROUP BY guan_lian_id_, ren_yuan_id_) as qq";
|
|
|
+ " and a.ji_hua_lei_xing_ = '在岗培训' AND a.shi_fou_guo_shen_ = '已结束' %s ";
|
|
|
|
|
|
String sumRealSqlTemplate = "SELECT COALESCE(SUM(num),0) AS realNum FROM (" +
|
|
|
"SELECT count(id_) as num FROM t_qdxxb " +
|