添加配置
This commit is contained in:
@@ -7,7 +7,6 @@ import com.njcn.system.pojo.dto.EpdDTO;
|
||||
import com.njcn.system.pojo.param.EleEpdPqdParam;
|
||||
import com.njcn.system.pojo.po.EleEpdPqd;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
@@ -58,4 +57,6 @@ public interface EpdFeignClient {
|
||||
|
||||
@PostMapping("/findListByShowName")
|
||||
HttpResult<List<EleEpdPqd>> findListByShowName(@RequestParam("name") String name);
|
||||
@PostMapping("/selectByClassId")
|
||||
HttpResult<List<EleEpdPqd>> selectByClassId(@RequestParam("id") String classId);
|
||||
}
|
||||
|
||||
@@ -106,6 +106,12 @@ public class EpdFeignClientFallbackFactory implements FallbackFactory<EpdFeignCl
|
||||
log.error("{}异常,降级处理,异常为:{}","根据名称查询字典信息集合",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<EleEpdPqd>> selectByClassId(String classId) {
|
||||
log.error("{}异常,降级处理,异常为:{}","根据数据分类查询字典信息集合",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user