添加配置

This commit is contained in:
hzj
2024-09-12 10:41:28 +08:00
parent 500fbbad9c
commit 2c9f941cfa
5 changed files with 24 additions and 1 deletions

View File

@@ -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);
}

View File

@@ -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);
}
};
}
}