|
|
@@ -370,11 +370,11 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
if (payRequest.getCmt() == 1) {
|
|
|
yhsId = yhShopFrontService.checkShopCustomIdAndReturnShopId(customId);
|
|
|
} else if (payRequest.getCmt() == 2) {
|
|
|
- userMirrorShop = userMirrorShopMapper.selectOne(Wrappers.lambdaQuery(UserMirrorShop.class)
|
|
|
- .eq(UserMirrorShop::getCustomId, customId)
|
|
|
- .last("limit 1"));
|
|
|
- if (!userMirrorShop.getStatus()) {
|
|
|
- throw BusinessRuntimeException.getInstance("店铺已关闭");
|
|
|
+ if (StrUtil.isNotEmpty(customId)) {
|
|
|
+ userMirrorShop = userMirrorShopMapper.selectOne(Wrappers.lambdaQuery(UserMirrorShop.class).eq(UserMirrorShop::getCustomId, customId).last("limit 1"));
|
|
|
+ if (userMirrorShop == null || !userMirrorShop.getStatus()) {
|
|
|
+ throw BusinessRuntimeException.getInstance("店铺已关闭");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (CollUtil.isNotEmpty(giftCards)) {
|