fix 商户分类统计

master
luoyang 5 years ago
parent 62371baf73
commit 5307167a37

@ -9,7 +9,7 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId> <artifactId>manage</artifactId>
<version>1.4.10</version> <version>1.4.11</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jib-maven-plugin.version>1.8.0</jib-maven-plugin.version> <jib-maven-plugin.version>1.8.0</jib-maven-plugin.version>

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

@ -89,10 +89,10 @@
<if test="business_structure!=null"> <if test="business_structure!=null">
AND c.business_structure=#{business_structure} AND c.business_structure=#{business_structure}
</if> </if>
<if test="industry != null and industry=='1'.toString()"> <if test="industry != null and industry == '1'.toString()">
AND (c.royalpayindustry =1 or c.royalpayindustry like '100%') AND (c.royalpayindustry =1 or c.royalpayindustry like '100%')
</if> </if>
<if test="industry!=null and industry != '0'.toString() and industry and industry!='1'.toString()"> <if test="industry!=null and industry != '0'.toString() and industry and industry!='1'">
<bind name="industry" value="industry+'%'"/> <bind name="industry" value="industry+'%'"/>
AND c.royalpayindustry like #{industry} AND c.royalpayindustry like #{industry}
</if> </if>

Loading…
Cancel
Save