fix:十二分接口逻辑完善
This commit is contained in:
@@ -78,17 +78,20 @@
|
||||
AND a.score = #{score}
|
||||
</if>
|
||||
<if test="isPenalty != null and isPenalty">
|
||||
AND a.type != 0
|
||||
AND (a.type = 1 OR a.type = 2)
|
||||
</if>
|
||||
<if test="storeNameOrNum != null and storeNameOrNum != ''">
|
||||
AND (b.store_name LIKE CONCAT('%', #{storeNameOrNum}, '%')
|
||||
OR b.store_num LIKE CONCAT('%', #{storeNameOrNum}, '%')
|
||||
</if>
|
||||
<if test="appealReason != null and appealReason != ''">
|
||||
AND b.appeal_reason LIKE CONCAT('%', #{appealReason}, '%')
|
||||
AND a.appeal_reason LIKE CONCAT('%', #{appealReason}, '%')
|
||||
</if>
|
||||
<if test="isDraft != null">
|
||||
AND b.is_draft = #{isDraft}
|
||||
AND a.is_draft = #{isDraft}
|
||||
</if>
|
||||
<if test="overdue != null and overdue">
|
||||
AND a.appeal_end_date < CURRENT_DATE
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY a.create_time DESC
|
||||
|
||||
Reference in New Issue
Block a user