| | |
| | | throw e; |
| | | } |
| | | |
| | | if (request.getAgentId() == null) { |
| | | return detail(id); |
| | | } |
| | | |
| | | // 事务提交后,调用微赞接口(不回滚本地事务) |
| | | try { |
| | | Clinic clinic = clinicMapper.selectById(id); |
| | |
| | | |
| | | // 查询代理信息获取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()); |