|
|
|
@ -1116,10 +1116,13 @@
|
|
|
|
|
statistics_customer_order so
|
|
|
|
|
inner JOIN sys_clients c ON so.client_id = c.client_id
|
|
|
|
|
AND c.is_valid = 1
|
|
|
|
|
<if test="industry != null and industry!=0">
|
|
|
|
|
<if test="industry != null and industry!=0 and industry!=1">
|
|
|
|
|
<bind name="industry" value="industry+'%'"/>
|
|
|
|
|
AND c.royalpayindustry like #{industry}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="industry != null and industry==1">
|
|
|
|
|
AND (c.royalpayindustry =1 or c.royalpayindustry like '100%')
|
|
|
|
|
</if>
|
|
|
|
|
and so.date >= #{from}
|
|
|
|
|
and so.date < #{to}
|
|
|
|
|
and so.client_id!=0
|
|
|
|
@ -1144,10 +1147,13 @@
|
|
|
|
|
statistics_customer_order so
|
|
|
|
|
inner JOIN sys_clients c ON so.client_id = c.client_id
|
|
|
|
|
AND c.is_valid = 1
|
|
|
|
|
<if test="industry != null and industry!=0">
|
|
|
|
|
<if test="industry != null and industry!=0 and industry!=1">
|
|
|
|
|
<bind name="industry" value="industry+'%'"/>
|
|
|
|
|
AND c.royalpayindustry like #{industry}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="industry != null and industry==1">
|
|
|
|
|
AND (c.royalpayindustry =1 or c.royalpayindustry like '100%')
|
|
|
|
|
</if>
|
|
|
|
|
and so.date= #{transDate}
|
|
|
|
|
and so.client_id!=0
|
|
|
|
|
<if test="bd_user!=null">
|
|
|
|
|