修改订单搜索用户账号错误
This commit is contained in:
parent
f4facc9c9a
commit
754f2005ab
@ -632,7 +632,7 @@
|
|||||||
and co.source=#{source}
|
and co.source=#{source}
|
||||||
</if>
|
</if>
|
||||||
<if test="plateNum !=null and plateNum !=''">
|
<if test="plateNum !=null and plateNum !=''">
|
||||||
and co.Plate_num=#{plateNum}
|
and co.Plate_num like concat('%', #{plateNum}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="internetId !=null">
|
<if test="internetId !=null">
|
||||||
and inu.internet_user_id=#{internetId}
|
and inu.internet_user_id=#{internetId}
|
||||||
@ -671,24 +671,31 @@
|
|||||||
and op.operator_id =#{operatorId}
|
and op.operator_id =#{operatorId}
|
||||||
</if>
|
</if>
|
||||||
<if test="number==1">
|
<if test="number==1">
|
||||||
and co.user_id in (SELECT app_user_id FROM xhpc_app_user where phone like concat('%', #{phone}, '%')) or
|
and co.user_id in (
|
||||||
co.user_id in (SELECT internet_user_id from xhpc_internet_user where phone like concat('%', #{phone}, '%'))
|
SELECT cro.user_id
|
||||||
|
FROM xhpc_charge_order cro WHERE cro.source = 0 AND cro.user_id IN ( SELECT app_user_id FROM xhpc_app_user where phone like concat('%', #{phone}, '%'))
|
||||||
|
union
|
||||||
|
SELECT cro.user_id FROM xhpc_charge_order cro WHERE cro.source = 1 AND cro.user_id IN (SELECT internet_user_id from xhpc_internet_user where phone like concat('%', #{phone}, '%'))
|
||||||
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="number==2">
|
<if test="number==2">
|
||||||
<if test="source !=null and source ==0">
|
<if test="source !=null and source ==0">
|
||||||
and co.user_id in (SELECT app_user_id FROM xhpc_app_user)
|
and co.user_id in (
|
||||||
|
SELECT cro.user_id FROM xhpc_charge_order cro WHERE cro.source = 0 AND cro.user_id IN ( SELECT app_user_id FROM xhpc_app_user where phone like concat('%', #{phone}, '%')))
|
||||||
</if>
|
</if>
|
||||||
<if test="source !=null and source ==1">
|
<if test="source !=null and source ==1">
|
||||||
and co.user_id in (SELECT internet_user_id from xhpc_internet_user)
|
and co.user_id in (
|
||||||
|
SELECT cro.user_id FROM xhpc_charge_order cro WHERE cro.source = 1 AND cro.user_id IN (SELECT internet_user_id from xhpc_internet_user where phone like concat('%', #{phone}, '%')))
|
||||||
</if>
|
</if>
|
||||||
</if>
|
</if>
|
||||||
<if test="number==3">
|
<if test="number==3">
|
||||||
<if test="source !=null and source ==0">
|
<if test="source !=null and source ==0">
|
||||||
and co.user_id in (SELECT app_user_id FROM xhpc_app_user where phone like concat('%', #{phone}, '%'))
|
and co.user_id in (
|
||||||
|
SELECT cro.user_id FROM xhpc_charge_order cro WHERE cro.source = 0 AND cro.user_id IN ( SELECT app_user_id FROM xhpc_app_user where phone like concat('%', #{phone}, '%')))
|
||||||
</if>
|
</if>
|
||||||
<if test="source !=null and source ==1">
|
<if test="source !=null and source ==1">
|
||||||
and co.user_id in (SELECT internet_user_id from xhpc_internet_user where phone like concat('%',
|
and co.user_id in (
|
||||||
#{phone}, '%'))
|
SELECT cro.user_id FROM xhpc_charge_order cro WHERE cro.source = 1 AND cro.user_id IN (SELECT internet_user_id from xhpc_internet_user where phone like concat('%', #{phone}, '%')))
|
||||||
</if>
|
</if>
|
||||||
</if>
|
</if>
|
||||||
<if test="status==1">
|
<if test="status==1">
|
||||||
|
|||||||
@ -425,9 +425,6 @@
|
|||||||
<if test="source !=null">
|
<if test="source !=null">
|
||||||
and co.source =#{source}
|
and co.source =#{source}
|
||||||
</if>
|
</if>
|
||||||
<if test="status !=null">
|
|
||||||
and co.status =#{status}
|
|
||||||
</if>
|
|
||||||
<if test="startTime !=null and startTime !=''">
|
<if test="startTime !=null and startTime !=''">
|
||||||
and co.start_time >= #{startTime}
|
and co.start_time >= #{startTime}
|
||||||
</if>
|
</if>
|
||||||
@ -447,24 +444,31 @@
|
|||||||
and op.operator_id =#{operatorId}
|
and op.operator_id =#{operatorId}
|
||||||
</if>
|
</if>
|
||||||
<if test="number==1">
|
<if test="number==1">
|
||||||
and co.user_id in (SELECT app_user_id FROM xhpc_app_user where phone like concat('%', #{phone}, '%')) or
|
and co.user_id in (
|
||||||
co.user_id in (SELECT internet_user_id from xhpc_internet_user where phone like concat('%', #{phone}, '%'))
|
SELECT cro.user_id
|
||||||
|
FROM xhpc_charge_order cro WHERE cro.source = 0 AND cro.user_id IN ( SELECT app_user_id FROM xhpc_app_user where phone like concat('%', #{phone}, '%'))
|
||||||
|
union
|
||||||
|
SELECT cro.user_id FROM xhpc_charge_order cro WHERE cro.source = 1 AND cro.user_id IN (SELECT internet_user_id from xhpc_internet_user where phone like concat('%', #{phone}, '%'))
|
||||||
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="number==2">
|
<if test="number==2">
|
||||||
<if test="source !=null and source ==0">
|
<if test="source !=null and source ==0">
|
||||||
and co.user_id in (SELECT app_user_id FROM xhpc_app_user)
|
and co.user_id in (
|
||||||
|
SELECT cro.user_id FROM xhpc_charge_order cro WHERE cro.source = 0 AND cro.user_id IN ( SELECT app_user_id FROM xhpc_app_user where phone like concat('%', #{phone}, '%')))
|
||||||
</if>
|
</if>
|
||||||
<if test="source !=null and source ==1">
|
<if test="source !=null and source ==1">
|
||||||
and co.user_id in (SELECT internet_user_id from xhpc_internet_user)
|
and co.user_id in (
|
||||||
|
SELECT cro.user_id FROM xhpc_charge_order cro WHERE cro.source = 1 AND cro.user_id IN (SELECT internet_user_id from xhpc_internet_user where phone like concat('%', #{phone}, '%')))
|
||||||
</if>
|
</if>
|
||||||
</if>
|
</if>
|
||||||
<if test="number==3">
|
<if test="number==3">
|
||||||
<if test="source !=null and source ==0">
|
<if test="source !=null and source ==0">
|
||||||
and co.user_id in (SELECT app_user_id FROM xhpc_app_user where phone like concat('%', #{phone}, '%'))
|
and co.user_id in (
|
||||||
|
SELECT cro.user_id FROM xhpc_charge_order cro WHERE cro.source = 0 AND cro.user_id IN ( SELECT app_user_id FROM xhpc_app_user where phone like concat('%', #{phone}, '%')))
|
||||||
</if>
|
</if>
|
||||||
<if test="source !=null and source ==1">
|
<if test="source !=null and source ==1">
|
||||||
and co.user_id in (SELECT internet_user_id from xhpc_internet_user where phone like concat('%',
|
and co.user_id in (
|
||||||
#{phone}, '%'))
|
SELECT cro.user_id FROM xhpc_charge_order cro WHERE cro.source = 1 AND cro.user_id IN (SELECT internet_user_id from xhpc_internet_user where phone like concat('%', #{phone}, '%')))
|
||||||
</if>
|
</if>
|
||||||
</if>
|
</if>
|
||||||
<if test="type==1">
|
<if test="type==1">
|
||||||
|
|||||||
@ -122,7 +122,6 @@
|
|||||||
sum(platform_svc_commisssion) platformSvcCommisssion,
|
sum(platform_svc_commisssion) platformSvcCommisssion,
|
||||||
sum(operation_commission) operationCommission,
|
sum(operation_commission) operationCommission,
|
||||||
sum(operation_svc_commission) operationSvcCommission,
|
sum(operation_svc_commission) operationSvcCommission,
|
||||||
|
|
||||||
DATE_FORMAT(create_time,'%Y-%m-%d') createTime
|
DATE_FORMAT(create_time,'%Y-%m-%d') createTime
|
||||||
from xhpc_statistics_station
|
from xhpc_statistics_station
|
||||||
where del_flag=0 and type=1
|
where del_flag=0 and type=1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user