|
|
@@ -239,7 +239,7 @@ public class UserMirrorFissionFrontServiceImpl implements UserMirrorFissionFront
|
|
|
Integer count = orderDonMapper.selectCount(Wrappers.lambdaQuery(OrderDon.class)
|
|
|
.in(OrderDon::getUserId, userIdList)
|
|
|
.notIn(OrderDon::getStatus, Constant.noOrderStatus)
|
|
|
- .apply(String.format("sku_id in (select id from goods_don_sku where goods_id = %s and is_mirror)", goodsId)));
|
|
|
+ .apply(String.format("sku_id in (select id from goods_don_sku where goods_id = %s and is_mirror) and not exist (select 1 from user_mirror_shop_order_relate ocr where ocr.order_id = order_don.id)", goodsId)));
|
|
|
if (count > 0) {
|
|
|
return true;
|
|
|
}
|