| | |
| | | b.name like CONCAT('%', CONCAT(#{record.query}, '%')) or |
| | | ) |
| | | </if> |
| | | <if test="record.status != null"> |
| | | <if test="record.status != 0"> |
| | | and ( |
| | | a.status = #{record.status} |
| | | ) |
| | |
| | | |
| | | <where> |
| | | <if test="record != null"> |
| | | <if test="record.payResult != null"> |
| | | <if test="record.payResult != null and record.payResult != ''"> |
| | | and a.pay_result = #{record.payResult} |
| | | </if> |
| | | <if test="record.status != null"> |
| | |
| | | order by a.created_time desc |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="selectOrderStatusCnt" resultType="java.util.Map"> |
| | | select |
| | | a.status, |
| | | count(1) cnt |
| | | from clothes_order a |
| | | where a.del_flag=0 and a.member_id=#{memberId} |
| | | group by a.status |
| | | </select> |
| | | |
| | | </mapper> |