|
@@ -728,21 +728,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
LEFT JOIN order_goods og ON o.order_sn = og.order_sn
|
|
LEFT JOIN order_goods og ON o.order_sn = og.order_sn
|
|
LEFT JOIN goods g ON og.goods_id = g.goods_id WHERE o.`status` = 1 AND o.user_id = u.user_id AND og.pay_status IN ( 2, 3, 4 ) AND og.refund_status != 2 AND g.business_id = #{businessId})>0
|
|
LEFT JOIN goods g ON og.goods_id = g.goods_id WHERE o.`status` = 1 AND o.user_id = u.user_id AND og.pay_status IN ( 2, 3, 4 ) AND og.refund_status != 2 AND g.business_id = #{businessId})>0
|
|
</if>
|
|
</if>
|
|
- <if test="promiseUploadSign != null promiseUploadSign == 1" >
|
|
|
|
|
|
+ <if test="promiseUploadSign != null and promiseUploadSign == 1" >
|
|
AND (SELECT COUNT(up.id) FROM user_profile up WHERE up.user_id = u.user_id AND up.current_status = 1
|
|
AND (SELECT COUNT(up.id) FROM user_profile up WHERE up.user_id = u.user_id AND up.current_status = 1
|
|
- AND INSTR(up.key_value,'"fieldKey":"commitment_seal","value":"oss/images/avatar') > 0) > 0
|
|
|
|
|
|
+ AND INSTR(up.key_value,'"fieldKey":"commitment_seal","value":"oss/images/avatar') > 0) > 0
|
|
</if>
|
|
</if>
|
|
- <if test="promiseUploadSign != null promiseUploadSign == 0" >
|
|
|
|
|
|
+ <if test="promiseUploadSign != null and promiseUploadSign == 0" >
|
|
AND (SELECT COUNT(up.id) FROM user_profile up WHERE up.user_id = u.user_id AND up.current_status = 1
|
|
AND (SELECT COUNT(up.id) FROM user_profile up WHERE up.user_id = u.user_id AND up.current_status = 1
|
|
- AND INSTR(up.key_value,'"fieldKey":"commitment_seal","value":"oss/images/avatar') = 0) > 0
|
|
|
|
|
|
+ AND INSTR(up.key_value,'"fieldKey":"commitment_seal","value":"oss/images/avatar') = 0) > 0
|
|
</if>
|
|
</if>
|
|
- <if test="promiseSign != null promiseSign == 1" >
|
|
|
|
|
|
+ <if test="promiseSign != null and promiseSign == 1" >
|
|
AND (SELECT COUNT(up.id) FROM user_profile up WHERE up.user_id = u.user_id AND up.current_status = 1
|
|
AND (SELECT COUNT(up.id) FROM user_profile up WHERE up.user_id = u.user_id AND up.current_status = 1
|
|
- AND INSTR(up.key_value,'"fieldKey":"commitment_electr_signature","value":"oss/images/avatar') > 0) > 0
|
|
|
|
|
|
+ AND INSTR(up.key_value,'"fieldKey":"commitment_electr_signature","value":"oss/images/avatar') > 0) > 0
|
|
</if>
|
|
</if>
|
|
- <if test="promiseSign != null promiseSign == 0" >
|
|
|
|
|
|
+ <if test="promiseSign != null and promiseSign == 0" >
|
|
AND (SELECT COUNT(up.id) FROM user_profile up WHERE up.user_id = u.user_id AND up.current_status = 1
|
|
AND (SELECT COUNT(up.id) FROM user_profile up WHERE up.user_id = u.user_id AND up.current_status = 1
|
|
- AND INSTR(up.key_value,'"fieldKey":"commitment_electr_signature","value":"oss/images/avatar') = 0) > 0
|
|
|
|
|
|
+ AND INSTR(up.key_value,'"fieldKey":"commitment_electr_signature","value":"oss/images/avatar') = 0) > 0
|
|
</if>
|
|
</if>
|
|
order by u.user_id desc
|
|
order by u.user_id desc
|
|
</select>
|
|
</select>
|