经纪人
This commit is contained in:
parent
4cd2e4dda0
commit
da90331cab
|
@ -193,11 +193,11 @@
|
|||
<select id="findFxy" resultType="com.sqx.modules.bl.commission.fxy.entity.FxyData">
|
||||
select
|
||||
x.id,x.user_id,y.avatar,y.user_name,x.name,x.phone,x.remarks,x.create_time,x.status,x.opinion,y.invitation_code,x.approve_time,
|
||||
ifnull(select count(*) from tb_user ac where ac.bl_fxy_code = y.invitation_code,0) as userCount,
|
||||
ifnull(select count(*)
|
||||
ifnull((select count(*) from tb_user ac where ac.bl_fxy_code = y.invitation_code),0) as userCount,
|
||||
ifnull((select count(*)
|
||||
from tb_user ac
|
||||
where ac.bl_fxy_code = y.invitation_code
|
||||
and date_format(aa.create_time, '%Y-%m-%d') = date_format(now(),'%Y-%m-%d'),0
|
||||
and date_format(aa.create_time, '%Y-%m-%d') = date_format(now(),'%Y-%m-%d')),0
|
||||
) as curUserCount,
|
||||
ifnull(t1.ordersCount,0)+ifnull(t2.ordersCount,0) as ordersCount,
|
||||
ifnull(t4.ordersCount,0)+ifnull(t5.ordersCount,0) as curOrdersCount,
|
||||
|
|
|
@ -135,9 +135,9 @@
|
|||
<select id="findJjr" resultType="com.sqx.modules.bl.commission.jjr.entity.JjrData">
|
||||
select
|
||||
x.id,x.user_id,y.avatar,y.user_name,x.name,x.phone,x.remarks,x.create_time,x.status,x.opinion,y.invitation_code,x.approve_time,
|
||||
ifnull(select count(*) from tb_user ac inner join artificer aa on a.user_id = aa.user_id where ac.bl_jjr_code = y.invitation_code,0) as artificerCount,
|
||||
ifnull(select count(*) from tb_user ac inner join artificer aa on a.user_id = aa.user_id
|
||||
where ac.bl_jjr_code = y.invitation_code and date_format(aa.create_time, '%Y-%m-%d') = date_format(now(),'%Y-%m-%d'),0) as curArtificerCount,
|
||||
ifnull((select count(*) from tb_user ac inner join artificer aa on ac.user_id = aa.user_id where ac.bl_jjr_code = y.invitation_code),0) as artificerCount,
|
||||
ifnull((select count(*) from tb_user ac inner join artificer aa on ac.user_id = aa.user_id
|
||||
where ac.bl_jjr_code = y.invitation_code and date_format(aa.create_time, '%Y-%m-%d') = date_format(now(),'%Y-%m-%d')),0) as curArtificerCount,
|
||||
ifnull(t1.ordersCount,0) as ordersCount,
|
||||
ifnull(t2.ordersCount,0) as curOrdersCount,
|
||||
ifnull(t3.money,0) as money
|
||||
|
|
Loading…
Reference in New Issue