新增 支付宝授权参数
This commit is contained in:
@@ -81,6 +81,7 @@ public class EntryManagerMqListener {
|
||||
|
||||
merchant.setAlipayOrderId(resp.getAlipayOrderId());
|
||||
merchant.setAlipayStatus(resp.getAlipayStatus());
|
||||
merchant.setAlipayAuthInfo(resp.getAlipayAuthInfo());
|
||||
merchant.setAlipayErrorMsg(resp.getAlipayErrorMsg());
|
||||
shopDirectMerchantService.updateById(merchant);
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ public class EntryManagerTask {
|
||||
}
|
||||
shopDirectMerchantService.updateById(shopDirectMerchant);
|
||||
if (StrUtil.isNotBlank(wechatMerchantId) || StrUtil.isNotBlank(alipayMerchantId)) {
|
||||
shopInfoService.editEntry(shopDirectMerchant.getShopId(), wechatMerchantId, alipayMerchantId);
|
||||
shopInfoService.editEntry(shopDirectMerchant.getShopId(), wechatMerchantId, alipayMerchantId, shopDirectMerchant.getAlipayAuthInfo());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ public class RabbitPublisher {
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单商品状态消息
|
||||
* 进件
|
||||
*/
|
||||
public void sendEntryManagerMsg(String shopId) {
|
||||
sendMsg(RabbitConstants.Queue.SHOP_ENTRY_MANAGER, shopId);
|
||||
|
||||
@@ -150,6 +150,10 @@ public class ShopInfo implements Serializable {
|
||||
* 支付宝商户id
|
||||
*/
|
||||
private String alipayMerchantId;
|
||||
/**
|
||||
* 支付宝授权信息
|
||||
*/
|
||||
private String alipayAuthInfo;
|
||||
|
||||
/**
|
||||
* 到期时间
|
||||
|
||||
@@ -23,8 +23,9 @@ public interface ShopInfoService extends IService<ShopInfo> {
|
||||
|
||||
/**
|
||||
* 检测开关
|
||||
* @param shopId 店铺id
|
||||
* @param switchType ShopInfo的某列 开关 目前只支持Integer类型字段
|
||||
*
|
||||
* @param shopId 店铺id
|
||||
* @param switchType ShopInfo的某列 开关 目前只支持Integer类型字段
|
||||
* @return true:开启 false:关闭
|
||||
*/
|
||||
boolean checkSwitch(Long shopId, ShopSwitchTypeEnum switchType) throws ValidateException;
|
||||
@@ -40,7 +41,7 @@ public interface ShopInfoService extends IService<ShopInfo> {
|
||||
/**
|
||||
* 进件结果保存
|
||||
*/
|
||||
Boolean editEntry(Long shopId, String wechatMerchantId, String alipayMerchantId);
|
||||
Boolean editEntry(Long shopId, String wechatMerchantId, String alipayMerchantId, String alipayAuthInfo);
|
||||
|
||||
ShopDetailDTO detail(Long id) throws CzgException;
|
||||
|
||||
|
||||
@@ -106,6 +106,11 @@ public class ShopDirectMerchant implements Serializable {
|
||||
*/
|
||||
private String alipayStatus;
|
||||
|
||||
/**
|
||||
* 支付宝授信息
|
||||
*/
|
||||
private String alipayAuthInfo;
|
||||
|
||||
/**
|
||||
* 支付宝进件错误信息
|
||||
*/
|
||||
|
||||
@@ -326,10 +326,11 @@ public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo> i
|
||||
|
||||
@Override
|
||||
@CacheEvict(key = "#shopId")
|
||||
public Boolean editEntry(Long shopId, String wechatMerchantId, String alipayMerchantId) {
|
||||
public Boolean editEntry(Long shopId, String wechatMerchantId, String alipayMerchantId, String alipayAuthInfo) {
|
||||
ShopInfo shopInfo = new ShopInfo();
|
||||
shopInfo.setWechatMerchantId(wechatMerchantId);
|
||||
shopInfo.setAlipayMerchantId(alipayMerchantId);
|
||||
shopInfo.setAlipayAuthInfo(alipayAuthInfo);
|
||||
return update(shopInfo, new QueryWrapper().eq(ShopInfo::getId, shopId));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user