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