浏览代码

fix: 转账授权通知跳过租户过滤查企业

alphaH 11 小时之前
父节点
当前提交
4265c6c9d5

+ 2 - 4
java/src/main/java/com/payment/platform/module/payment/notification/handler/AccountHandler.java

@@ -99,14 +99,12 @@ public class AccountHandler extends BaseNotifyHandler {
 
         if (StrUtil.isNotBlank(enterpriseId)) {
             try {
-                EnterpriseEntity entity = enterpriseMapper.selectOne(
-                        new LambdaQueryWrapper<EnterpriseEntity>()
-                                .eq(EnterpriseEntity::getEnterpriseId, enterpriseId));
+                EnterpriseEntity entity = enterpriseMapper.selectByEnterpriseIdIgnoreTenant(enterpriseId);
                 if (entity != null) {
                     if (StrUtil.isNotBlank(status)) {
                         entity.setRemark(status);
                     }
-                    enterpriseMapper.updateById(entity);
+                    enterpriseMapper.updateIgnoreTenant(entity);
                     log.info("更新企业转账授权状态: enterprise_id={}, status={}", enterpriseId, status);
                 } else {
                     log.warn("转账授权通知: 企业不存在 enterprise_id={}", enterpriseId);