|
@@ -264,6 +264,44 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="tenantId != null and tenantId != ''">
|
|
|
AND dl.tenant_id = #{tenantId}
|
|
|
</if>
|
|
|
+ <if test="reCheckStatus == 1">
|
|
|
+ AND (SELECT
|
|
|
+ count(*)
|
|
|
+ FROM
|
|
|
+ top_divide_log bdl
|
|
|
+ LEFT JOIN top_divide_order btdo ON bdl.id = btdo.divide_log_id
|
|
|
+ LEFT JOIN top_old_order_check_log bcl ON btdo.order_sn = bcl.order_sn
|
|
|
+ WHERE
|
|
|
+ bcl.check_from = 2
|
|
|
+ AND bcl.check_status = 0
|
|
|
+ AND bcl.check_sign = 1
|
|
|
+ <if test="roleIds != null and roleIds.size()!=0">
|
|
|
+ AND bcl.role_id in
|
|
|
+ <foreach collection="roleIds" item="item" index="index" open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ AND bdl.id = dl.id)>0
|
|
|
+ </if>
|
|
|
+ <if test="reCheckStatus == 2">
|
|
|
+ AND (SELECT
|
|
|
+ count(*)
|
|
|
+ FROM
|
|
|
+ top_divide_log bdl
|
|
|
+ LEFT JOIN top_divide_order btdo ON bdl.id = btdo.divide_log_id
|
|
|
+ LEFT JOIN top_old_order_check_log bcl ON btdo.order_sn = bcl.order_sn
|
|
|
+ WHERE
|
|
|
+ bcl.check_from = 2
|
|
|
+ AND bcl.check_status = 0
|
|
|
+ AND bcl.check_sign = 1
|
|
|
+ <if test="roleIds != null and roleIds.size()!=0">
|
|
|
+ AND bcl.role_id not in
|
|
|
+ <foreach collection="roleIds" item="item" index="index" open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ AND bdl.id = dl.id)>0
|
|
|
+ </if>
|
|
|
<if test="payStatus != null and payStatus.size()!=0">
|
|
|
AND dl.pay_status in
|
|
|
<foreach collection="payStatus" item="item" index="index" open="(" close=")" separator=",">
|