DepotKeeperAccountFeignService.java 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. package com.chinaitop.depot.feignService;
  2. import java.util.Map;
  3. import org.springframework.cloud.openfeign.FeignClient;
  4. import org.springframework.http.MediaType;
  5. import org.springframework.web.bind.annotation.RequestMapping;
  6. import org.springframework.web.bind.annotation.RequestMethod;
  7. import org.springframework.web.bind.annotation.RequestParam;
  8. @FeignClient(value = "DEPOT-KEEPER-ACCOUNT")
  9. public interface DepotKeeperAccountFeignService {
  10. /**
  11. * 查询客户是否存在
  12. * @param orgId 组织机构ID
  13. * @param customerType 客户类型(3152:个人客户,3153:企业客户)
  14. * @param customerName 客户名称
  15. * @return false代表存在
  16. */
  17. @RequestMapping(value = "/depot/business/customer/checkRepeat", produces = MediaType.APPLICATION_JSON_VALUE, method=RequestMethod.GET)
  18. String checkRepeat(@RequestParam("orgId") Integer orgId, @RequestParam("customerType") Integer customerType, @RequestParam("customerType")String customerName);
  19. /**
  20. * 保存一条不完整的客户数据
  21. * @param customerJson
  22. * @param orgId
  23. * @return
  24. */
  25. @RequestMapping(value = "/depot/business/customer/save", produces = MediaType.APPLICATION_JSON_VALUE, method=RequestMethod.POST)
  26. Map<String, Object> save(@RequestParam("customerJson")String customerJson, @RequestParam("orgId") Integer orgId);
  27. }