定时任务 修改进件信息处理

This commit is contained in:
2026-01-15 10:38:58 +08:00
parent cdd012c2fe
commit b8a6ce495c
2 changed files with 15 additions and 2 deletions

View File

@@ -103,6 +103,15 @@ public class ShopMerchantServiceImpl extends ServiceImpl<ShopMerchantMapper, Sho
shopMerchant.setNativePayJson(JSONObject.toJSONString(shopMerchantParam.getNativeMerchantDTO()));
}
}
if (PayChannelCst.NATIVE.equals(shopMerchantParam.getChannel())) {
if (StrUtil.isNotBlank(shopMerchant.getRelatedLicenceNo()) && (StrUtil.isNotBlank(shopMerchant.getAlipayAppId()) || StrUtil.isNotBlank(shopMerchant.getWechatAppId()))) {
ShopMerchant upShopMerchant = new ShopMerchant();
upShopMerchant.setAlipayAppId(shopMerchant.getAlipayAppId());
upShopMerchant.setWechatAppId(shopMerchant.getWechatAppId());
upShopMerchant.setNativePayJson(JSONObject.toJSONString(shopMerchantParam.getNativeMerchantDTO()));
update(upShopMerchant, query().eq(ShopMerchant::getRelatedLicenceNo, shopMerchantParam.getRelatedLicenceNo()));
}
}
return saveOrUpdate(shopMerchant);
}