Эх сурвалжийг харах

fix 店铺实际出售单数

zoujiajian 2 жил өмнө
parent
commit
7995ab3b2f

+ 1 - 0
netflix-web/src/main/java/com/cyksj/web/controller/goods/GoodsDonController.java

@@ -572,6 +572,7 @@ public class GoodsDonController {
         DateTime now = DateTime.now();
         list.forEach(data->{
             Integer sold = orderDonMapper.selectCount(Wrappers.lambdaQuery(OrderDon.class)
+                    .eq(OrderDon::getYhsId, yhsId)
                     .eq(OrderDon::getGoodsId, data.getId()).notIn(OrderDon::getStatus, Constant.noOrderStatus));
             data.setSold(sold + data.getVs());
             data.setNotifyMsg(getPayMsgTime(data.getId(), now, 1, yhsId));