BasicStorehouseFeignService.java 736 B

123456789101112131415161718192021
  1. package com.chinaitop.agile.feignService;
  2. import org.springframework.cloud.openfeign.FeignClient;
  3. import org.springframework.http.MediaType;
  4. import org.springframework.web.bind.annotation.RequestMapping;
  5. import org.springframework.web.bind.annotation.RequestMethod;
  6. import org.springframework.web.bind.annotation.RequestParam;
  7. @FeignClient(value = "depot-basic")
  8. public interface BasicStorehouseFeignService {
  9. /**
  10. * 获取一条仓房数据
  11. * @param id 仓房ID
  12. * @param orgId 单位ID
  13. * @return
  14. */
  15. @RequestMapping(value = "/Storehouse/findByStorehouse", produces = MediaType.APPLICATION_JSON_VALUE, method=RequestMethod.GET)
  16. String getStorehouse(@RequestParam("id") Integer id, @RequestParam("orgId") Integer orgId);
  17. }