Selaa lähdekoodia

(主账号)转变成企业用户后之前的订单统计的角标还是会统计。
(子账号)绑定企业用户后,之前自己订单会带入企业订单当中,包括待评价的订单

liangpeile 1 vuosi sitten
vanhempi
commit
70200e5605

+ 1 - 0
crmeb-admin/src/main/java/com/zbkj/admin/controller/platform/NewPlatformApi.java

@@ -177,6 +177,7 @@ public class NewPlatformApi {
             LambdaQueryWrapper<Order> orderLambdaQueryWrapper = new LambdaQueryWrapper<>();
             orderLambdaQueryWrapper.in(Order::getStatus, 0, 1, 3, 4);
             orderLambdaQueryWrapper.eq(Order::getIsDel, false);
+            orderLambdaQueryWrapper.eq(Order::getIsEnterpriseUser, 1);
             orderLambdaQueryWrapper.eq(Order::getUid, byId.getId());
             List<Order> orderList = orderService.list(orderLambdaQueryWrapper);
             if (null != orderList && orderList.size() > 0) {