account的 updateChain3
This commit is contained in:
@@ -24,7 +24,7 @@ public interface ShopUserService extends IService<ShopUser> {
|
||||
|
||||
@Override
|
||||
default UpdateChain<ShopUser> updateChain() {
|
||||
return new UpdateChain<>(getMapper());
|
||||
return new CzgUpdateChain<>(getMapper());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -21,7 +21,12 @@
|
||||
AND detail.group_order_no = #{param.groupOrderNo}
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND detail.STATUS = #{param.status}
|
||||
<if test="param.status == '退款'">
|
||||
AND (detail.STATUS = '退款中' or detail.STATUS = '已退款')
|
||||
</if>
|
||||
<if test="param.status != '退款'">
|
||||
AND detail.STATUS = #{param.status}
|
||||
</if>
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND detail.user_id = #{param.userId}
|
||||
@@ -55,7 +60,12 @@
|
||||
AND detail.group_order_no = #{param.groupOrderNo}
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND detail.STATUS = #{param.status}
|
||||
<if test="param.status == '退款'">
|
||||
AND (detail.STATUS = '退款中' or detail.STATUS = '已退款')
|
||||
</if>
|
||||
<if test="param.status != '退款'">
|
||||
AND detail.STATUS = #{param.status}
|
||||
</if>
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND detail.user_id = #{param.userId}
|
||||
@@ -68,7 +78,9 @@
|
||||
</if>
|
||||
order by
|
||||
<if test="param.status != null">
|
||||
detail.`status` desc,detail.pay_time desc,
|
||||
<if test="param.status == '退款'">
|
||||
detail.`status` desc,detail.pay_time desc,
|
||||
</if>
|
||||
</if>
|
||||
detail.create_time desc
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user