account的 updateChain3

This commit is contained in:
2025-12-20 17:23:39 +08:00
parent d49772bf9e
commit 17d7dfe6c6
2 changed files with 16 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ public interface ShopUserService extends IService<ShopUser> {
@Override
default UpdateChain<ShopUser> updateChain() {
return new UpdateChain<>(getMapper());
return new CzgUpdateChain<>(getMapper());
}
/**

View File

@@ -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>