支付参数3
This commit is contained in:
@@ -30,7 +30,7 @@ public interface ShopMerchantService extends IService<ShopMerchant> {
|
||||
*/
|
||||
void upMerchant(@NotBlank String relatedLicenceNo, @NotNull NativeMerchantDTO nativeMerchantDTO);
|
||||
|
||||
ShopMerchant getById(Long shopId);
|
||||
ShopMerchant getByShopId(Long shopId);
|
||||
|
||||
|
||||
ShopDirectMerchant getMainMerchant(Long shopId);
|
||||
|
||||
@@ -181,7 +181,7 @@ public class PayServiceImpl implements PayService {
|
||||
|
||||
private ShopMerchant getMerchant(Long shopId) {
|
||||
try {
|
||||
ShopMerchant shopMerchant = shopMerchantService.getById(shopId);
|
||||
ShopMerchant shopMerchant = shopMerchantService.getByShopId(shopId);
|
||||
if (shopMerchant == null || StrUtil.isBlank(shopMerchant.getChannel())) {
|
||||
throw new CzgException("暂未开通支付!");
|
||||
}
|
||||
|
||||
@@ -109,9 +109,9 @@ public class ShopMerchantServiceImpl extends ServiceImpl<ShopMerchantMapper, Sho
|
||||
update(upShopMerchant, query().eq(ShopMerchant::getRelatedLicenceNo, relatedLicenceNo));
|
||||
}
|
||||
|
||||
@Cacheable(key = "#id")
|
||||
@Cacheable(key = "#shopId")
|
||||
@Override
|
||||
public ShopMerchant getById(Long shopId) {
|
||||
public ShopMerchant getByShopId(Long shopId) {
|
||||
ShopMerchant shopMerchant = getOne(query().eq(ShopMerchant::getShopId, shopId));
|
||||
AssertUtil.isNull(shopMerchant, "暂未开通支付.");
|
||||
return shopMerchant;
|
||||
|
||||
Reference in New Issue
Block a user