Merge branch 'main' of http://10.10.14.176:3000/huanghai/ccZhiChengTouPiao
commit
d33534a535
@ -0,0 +1,11 @@
|
|||||||
|
#namespace("TouPiao")
|
||||||
|
|
||||||
|
#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.toupiaoren_type_id=1 and t1.houxuanren_tel=t2.toupiaoren_tel) as pingweihui_count,
|
||||||
|
(select count(1) from t_toupiao_result as t2 where t2.toupiaoren_type_id=2 and t1.houxuanren_tel=t2.toupiaoren_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
|
||||||
|
#end
|
@ -0,0 +1,11 @@
|
|||||||
|
#namespace("TouPiao")
|
||||||
|
|
||||||
|
#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.toupiaoren_type_id=1 and t1.houxuanren_tel=t2.toupiaoren_tel) as pingweihui_count,
|
||||||
|
(select count(1) from t_toupiao_result as t2 where t2.toupiaoren_type_id=2 and t1.houxuanren_tel=t2.toupiaoren_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
|
||||||
|
#end
|
Loading…
Reference in new issue