|
|
@@ -8,6 +8,8 @@ import com.sqx.common.exception.SqxException;
|
|
|
import com.sqx.modules.app.entity.UserEntity;
|
|
|
import com.sqx.modules.app.service.UserService;
|
|
|
import com.sqx.modules.datacentre.entity.SysUserShop;
|
|
|
+import com.sqx.modules.goods.entity.GoodsShop;
|
|
|
+import com.sqx.modules.goods.service.GoodsShopService;
|
|
|
import com.sqx.modules.shop.dao.ShopBankCardInfoDao;
|
|
|
import com.sqx.modules.shop.entity.ShopBankCardInfo;
|
|
|
import com.sqx.modules.shop.service.ShopBankCardInfoService;
|
|
|
@@ -21,6 +23,7 @@ public class ShopBankCardInfoServiceImpl extends ServiceImpl<ShopBankCardInfoDao
|
|
|
|
|
|
private final UserService userService;
|
|
|
private final SysUserShopService userShopService;
|
|
|
+ private final GoodsShopService goodsShopService;
|
|
|
|
|
|
|
|
|
@Override
|
|
|
@@ -44,10 +47,11 @@ public class ShopBankCardInfoServiceImpl extends ServiceImpl<ShopBankCardInfoDao
|
|
|
LambdaQueryWrapper<ShopBankCardInfo> queryWrapper = Wrappers.lambdaQuery();
|
|
|
queryWrapper.eq(ShopBankCardInfo::getShopId, shopId);
|
|
|
ShopBankCardInfo cardInfo = this.getOne(queryWrapper);
|
|
|
-
|
|
|
if (ObjectUtil.isNull(cardInfo)) {
|
|
|
throw new SqxException("当前店铺未录入银行卡信息");
|
|
|
}
|
|
|
+ GoodsShop goodsShop=goodsShopService.getById(shopId);
|
|
|
+ cardInfo.setMchId(goodsShop==null?null:goodsShop.getMchId());
|
|
|
return cardInfo;
|
|
|
}
|
|
|
|