App用户密码调整
This commit is contained in:
@@ -7,6 +7,7 @@ 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;
|
||||
@@ -48,4 +49,7 @@ public interface EpdFeignClient {
|
||||
|
||||
@PostMapping("/findAll")
|
||||
HttpResult<List<EpdDTO>> findAll();
|
||||
|
||||
@PostMapping("/findByName")
|
||||
HttpResult<EleEpdPqd> findByName(@RequestParam("name") String name);
|
||||
}
|
||||
|
||||
@@ -88,6 +88,12 @@ public class EpdFeignClientFallbackFactory implements FallbackFactory<EpdFeignCl
|
||||
log.error("{}异常,降级处理,异常为:{}","查询所有字典数据",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<EleEpdPqd> findByName(String name) {
|
||||
log.error("{}异常,降级处理,异常为:{}","根据名称查询字典信息",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user