hejianhao
2026-08-21 277df09feb3d665b7c5805411c99f6aea2a6f9f5
tcm-training-admin-backend/src/main/java/com/tcm/training/admin/member/service/ClinicAppService.java
@@ -307,6 +307,10 @@
            throw e;
        }
        if (request.getAgentId() == null) {
            return detail(id);
        }
        // 事务提交后,调用微赞接口(不回滚本地事务)
        try {
            Clinic clinic = clinicMapper.selectById(id);
@@ -322,9 +326,7 @@
            // 查询代理信息获取parentMobile
            ProvincialAgent agent = provincialAgentMapper.selectById(request.getAgentId());
            if (agent == null) {
                throw new IllegalArgumentException("代理不存在,agentId=" + request.getAgentId());
            }
            String parentMobile = agent.getContactInfo();
            if (parentMobile == null || parentMobile.trim().isEmpty()) {
                throw new IllegalArgumentException("代理联系方式为空,agentId=" + request.getAgentId());