yangdamao 1 рік тому
батько
коміт
4977ce7af3

+ 0 - 2
zhongzheng-system/src/main/java/com/zhongzheng/modules/top/goods/service/impl/TopOldOrderServiceImpl.java

@@ -5173,8 +5173,6 @@ public class TopOldOrderServiceImpl extends ServiceImpl<TopOldOrderMapper, TopOl
                 payBo.setOrderSn(bo.getOrderSn());
                 payBo.setPayType(oldOrder.getPayType());
                 refundPost(payBo);
-                oldOrder.setOrderUncollected(orderUncollected.subtract(refundPrice));
-                updateById(oldOrder);
             }
         }
     }

+ 0 - 28
zhongzheng-system/src/main/resources/mapper/modules/user/UserMapper.xml

@@ -236,20 +236,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             where 1=1
             and og.`status` = 1
             and og.refund_status in (0,1,3)
-            and og.pay_status in (2,3,4))
-            and (g.goods_name like concat('%', #{goodsSearchKey}, '%') or g.code like concat('%', #{goodsSearchKey}, '%'))
-            and o.user_id = u.user_id)>0
-        </if>
-        <if test="goodsSearchKey != null and goodsSearchKey != ''" >
-            and ( SELECT
-            count(*)
-            FROM
-            `order` o
-            LEFT JOIN order_goods og on o.order_sn = og.order_sn
-            LEFT JOIN goods g on og.goods_id = g.goods_id
-            where 1=1
-            and og.`status` = 1
-            and og.refund_status in (0,1,3)
             and og.pay_status in (2,3,4)
             and (g.goods_name like concat('%', #{goodsSearchKey}, '%') or g.code like concat('%', #{goodsSearchKey}, '%'))
             and o.user_id = u.user_id)>0
@@ -395,20 +381,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             where 1=1
             and og.`status` = 1
             and og.refund_status in (0,1,3)
-            and og.pay_status in (2,3,4))
-            and (g.goods_name like concat('%', #{goodsSearchKey}, '%') or g.code like concat('%', #{goodsSearchKey}, '%'))
-            and o.user_id = u.user_id)>0
-        </if>
-        <if test="goodsSearchKey != null and goodsSearchKey != ''" >
-            and ( SELECT
-            count(*)
-            FROM
-            `order` o
-            LEFT JOIN order_goods og on o.order_sn = og.order_sn
-            LEFT JOIN goods g on og.goods_id = g.goods_id
-            where 1=1
-            and og.`status` = 1
-            and og.refund_status in (0,1,3)
             and og.pay_status in (2,3,4)
             and (g.goods_name like concat('%', #{goodsSearchKey}, '%') or g.code like concat('%', #{goodsSearchKey}, '%'))
             and o.user_id = u.user_id)>0