|
@@ -1203,6 +1203,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.companyUserId != null ">
|
|
<if test="maps.companyUserId != null ">
|
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="maps.salesName != null and maps.salesName != ''">
|
|
|
|
|
+ and cu.user_name like CONCAT('%', #{maps.salesName}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="maps.payCode != null and maps.payCode != ''">
|
|
|
|
|
+ and sp_latest.pay_code like CONCAT('%', #{maps.payCode}, '%')
|
|
|
|
|
+ </if>
|
|
|
<if test="maps.companyUserNickName != null and maps.companyUserNickName != '' ">
|
|
<if test="maps.companyUserNickName != null and maps.companyUserNickName != '' ">
|
|
|
and cu.nick_name like concat('%', #{maps.companyUserNickName}, '%')
|
|
and cu.nick_name like concat('%', #{maps.companyUserNickName}, '%')
|
|
|
</if>
|
|
</if>
|
|
@@ -1373,6 +1379,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.companyUserId != null ">
|
|
<if test="maps.companyUserId != null ">
|
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="maps.salesName != null and maps.salesName != ''">
|
|
|
|
|
+ and cu.user_name like CONCAT('%', #{maps.salesName}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="maps.payCode != null and maps.payCode != ''">
|
|
|
|
|
+ and sp_latest.pay_code like CONCAT('%', #{maps.payCode}, '%')
|
|
|
|
|
+ </if>
|
|
|
<if test="maps.companyUserNickName != null and maps.companyUserNickName != '' ">
|
|
<if test="maps.companyUserNickName != null and maps.companyUserNickName != '' ">
|
|
|
and cu.nick_name like concat('%', #{maps.companyUserNickName}, '%')
|
|
and cu.nick_name like concat('%', #{maps.companyUserNickName}, '%')
|
|
|
</if>
|
|
</if>
|
|
@@ -1520,6 +1532,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.companyUserId != null ">
|
|
<if test="maps.companyUserId != null ">
|
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="maps.salesName != null and maps.salesName != ''">
|
|
|
|
|
+ and cu.user_name like CONCAT('%', #{maps.salesName}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="maps.payCode != null and maps.payCode != ''">
|
|
|
|
|
+ and sp_latest.pay_code like CONCAT('%', #{maps.payCode}, '%')
|
|
|
|
|
+ </if>
|
|
|
<if test="maps.companyUserNickName != null and maps.companyUserNickName != '' ">
|
|
<if test="maps.companyUserNickName != null and maps.companyUserNickName != '' ">
|
|
|
and cu.nick_name like concat('%', #{maps.companyUserNickName}, '%')
|
|
and cu.nick_name like concat('%', #{maps.companyUserNickName}, '%')
|
|
|
</if>
|
|
</if>
|
|
@@ -1671,6 +1689,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.companyUserId != null ">
|
|
<if test="maps.companyUserId != null ">
|
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="maps.salesName != null and maps.salesName != ''">
|
|
|
|
|
+ and cu.user_name like CONCAT('%', #{maps.salesName}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="maps.payCode != null and maps.payCode != ''">
|
|
|
|
|
+ and sp_latest.pay_code like CONCAT('%', #{maps.payCode}, '%')
|
|
|
|
|
+ </if>
|
|
|
<if test="maps.companyUserNickName != null and maps.companyUserNickName != '' ">
|
|
<if test="maps.companyUserNickName != null and maps.companyUserNickName != '' ">
|
|
|
and cu.nick_name like concat('%', #{maps.companyUserNickName}, '%')
|
|
and cu.nick_name like concat('%', #{maps.companyUserNickName}, '%')
|
|
|
</if>
|
|
</if>
|
|
@@ -1818,6 +1842,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.companyUserId != null ">
|
|
<if test="maps.companyUserId != null ">
|
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="maps.salesName != null and maps.salesName != ''">
|
|
|
|
|
+ and cu.user_name like CONCAT('%', #{maps.salesName}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="maps.payCode != null and maps.payCode != ''">
|
|
|
|
|
+ and sp_latest.pay_code like CONCAT('%', #{maps.payCode}, '%')
|
|
|
|
|
+ </if>
|
|
|
<if test="maps.companyUserNickName != null and maps.companyUserNickName != '' ">
|
|
<if test="maps.companyUserNickName != null and maps.companyUserNickName != '' ">
|
|
|
and cu.nick_name like concat('%', #{maps.companyUserNickName}, '%')
|
|
and cu.nick_name like concat('%', #{maps.companyUserNickName}, '%')
|
|
|
</if>
|
|
</if>
|
|
@@ -1906,7 +1936,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="(maps.nickname != null and maps.nickname !='') or (maps.phone != null and maps.phone !='')">
|
|
<if test="(maps.nickname != null and maps.nickname !='') or (maps.phone != null and maps.phone !='')">
|
|
|
left join fs_user u on o.user_id=u.user_id
|
|
left join fs_user u on o.user_id=u.user_id
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="maps.companyUserNickName != null and maps.companyUserNickName != ''">
|
|
|
|
|
|
|
+ <if test="(maps.companyUserNickName != null and maps.companyUserNickName != '') or (maps.salesName != null and maps.salesName != '')">
|
|
|
left join company_user cu on cu.user_id=o.company_user_id
|
|
left join company_user cu on cu.user_id=o.company_user_id
|
|
|
</if>
|
|
</if>
|
|
|
<if test="maps.erpAccount != null and maps.erpAccount != ''">
|
|
<if test="maps.erpAccount != null and maps.erpAccount != ''">
|
|
@@ -1917,7 +1947,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
left join fs_store_order_item_scrm oi on o.id = oi.order_id
|
|
left join fs_store_order_item_scrm oi on o.id = oi.order_id
|
|
|
left join fs_store_product_scrm fsp on fsp.product_id = oi.product_id
|
|
left join fs_store_product_scrm fsp on fsp.product_id = oi.product_id
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="(maps.appId != null and maps.appId != '') or (maps.bankTransactionId != null and maps.bankTransactionId !='')">
|
|
|
|
|
|
|
+ <if test="(maps.appId != null and maps.appId != '') or (maps.bankTransactionId != null and maps.bankTransactionId !='') or (maps.payCode != null and maps.payCode != '')">
|
|
|
LEFT JOIN (
|
|
LEFT JOIN (
|
|
|
SELECT
|
|
SELECT
|
|
|
sp.*,
|
|
sp.*,
|
|
@@ -2006,6 +2036,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.companyUserId != null ">
|
|
<if test="maps.companyUserId != null ">
|
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
and o.company_user_id =#{maps.companyUserId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="maps.salesName != null and maps.salesName != ''">
|
|
|
|
|
+ and cu.user_name like CONCAT('%', #{maps.salesName}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="maps.payCode != null and maps.payCode != ''">
|
|
|
|
|
+ and sp_latest.pay_code like CONCAT('%', #{maps.payCode}, '%')
|
|
|
|
|
+ </if>
|
|
|
<if test="maps.companyUserNickName != null and maps.companyUserNickName != '' ">
|
|
<if test="maps.companyUserNickName != null and maps.companyUserNickName != '' ">
|
|
|
and cu.nick_name like concat('%', #{maps.companyUserNickName}, '%')
|
|
and cu.nick_name like concat('%', #{maps.companyUserNickName}, '%')
|
|
|
</if>
|
|
</if>
|