|
@@ -8,7 +8,7 @@ import com.fdkankan.agent.mapper.IAgentMapper;
|
|
|
import com.fdkankan.agent.request.RequestAgent;
|
|
|
import com.fdkankan.agent.service.IAgentService;
|
|
|
import com.fdkankan.common.constant.ErrorCode;
|
|
|
-import com.fdkankan.common.exception.BaseRuntimeException;
|
|
|
+import com.fdkankan.common.exception.BusinessException;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
/**
|
|
@@ -28,7 +28,7 @@ public class AgentServiceImpl extends ServiceImpl<IAgentMapper, Agent> implement
|
|
|
queryWrapper.eq("agent_id",requestAgent.getAgentId());
|
|
|
Agent agent = this.getOne(queryWrapper);
|
|
|
if(agent == null){
|
|
|
- throw new BaseRuntimeException(ErrorCode.FAILURE_CODE_3011);
|
|
|
+ throw new BusinessException(ErrorCode.FAILURE_CODE_3011);
|
|
|
}
|
|
|
return null;
|
|
|
}
|