From 9954326b1762f3fe3da0a647aa108cbd00d7fed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Tue, 13 Dec 2022 10:35:41 +0800 Subject: [PATCH] 'commit' --- src/main/resource/Sql/TouPiao.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resource/Sql/TouPiao.sql b/src/main/resource/Sql/TouPiao.sql index 95a5ef7..4fec657 100644 --- a/src/main/resource/Sql/TouPiao.sql +++ b/src/main/resource/Sql/TouPiao.sql @@ -3,8 +3,8 @@ #sql("TongJi") select *,format(1.0 * ta.pingweihui_count /#(PingWeiHuiAllCount) *10 + 1.0*ta.qunzhong_count/#(QunZhongAllCount) *15,1) as score from (select t1.houxuanren_tel,t1.houxuanren_name,t1.houxuanren_type_id, - (select count(1) from t_toupiao_result as t2 where t2.houxuanren_type_id=1 and t1.houxuanren_tel=t2.houxuanren_tel) as pingweihui_count, - (select count(1) from t_toupiao_result as t2 where t2.houxuanren_type_id=2 and t1.houxuanren_tel=t2.houxuanren_tel) as qunzhong_count + (select count(1) from t_toupiao_result as t2 where t2.toupiaoren_type_id=1 and t1.houxuanren_tel=t2.houxuanren_tel) as pingweihui_count, + (select count(1) from t_toupiao_result as t2 where t2.toupiaoren_type_id=2 and t1.houxuanren_tel=t2.houxuanren_tel) as qunzhong_count from t_toupiao_houxuanren as t1) as ta where ta.houxuanren_type_id=#(houxuanren_type_id) order by 1.0 * ta.pingweihui_count /#(PingWeiHuiAllCount) *10 + 1.0*ta.qunzhong_count/#(QunZhongAllCount) *15 desc #end