RsResourceStatisticsClient.java 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package com.yihu.ehr.resource.client;
  2. import com.yihu.ehr.constants.ApiVersion;
  3. import com.yihu.ehr.constants.MicroServices;
  4. import com.yihu.ehr.constants.ServiceApi;
  5. import com.yihu.ehr.util.rest.Envelop;
  6. import io.swagger.annotations.ApiOperation;
  7. import io.swagger.annotations.ApiParam;
  8. import org.springframework.cloud.netflix.feign.FeignClient;
  9. import org.springframework.web.bind.annotation.RequestMapping;
  10. import org.springframework.web.bind.annotation.RequestMethod;
  11. import org.springframework.web.bind.annotation.RequestParam;
  12. import springfox.documentation.annotations.ApiIgnore;
  13. import java.util.List;
  14. import java.util.Map;
  15. /**
  16. * Created by janseny on 2017/12/14.
  17. */
  18. @FeignClient(name = MicroServices.Quota)
  19. @RequestMapping(value = ApiVersion.Version1_0)
  20. @ApiIgnore
  21. public interface RsResourceStatisticsClient {
  22. @RequestMapping(value = ServiceApi.Resources.StatisticsGetDoctorsGroupByTown, method = RequestMethod.GET)
  23. @ApiOperation(value = "获取各行政区划总卫生人员", notes = "获取各行政区划总卫生人员")
  24. Envelop statisticsGetDoctorsGroupByTown();
  25. @ApiOperation(value = "获取特殊机构指标执行结果分页")
  26. @RequestMapping(value = ServiceApi.TJ.TjGetOrgHealthCategoryQuotaResult, method = RequestMethod.GET)
  27. Envelop getOrgHealthCategoryQuotaResult(
  28. @ApiParam(name = "code", value = "指标任务code", required = true)
  29. @RequestParam(value = "code" , required = true) String code,
  30. @ApiParam(name = "filters", value = "检索条件", defaultValue = "")
  31. @RequestParam(value = "filters", required = false) String filters,
  32. @ApiParam(name = "dimension", value = "需要统计不同维度字段", defaultValue = "")
  33. @RequestParam(value = "dimension", required = false) String dimension );
  34. @ApiOperation(value = "获取指标统计报表 二维表")
  35. @RequestMapping(value = ServiceApi.TJ.GetQuotaReportTwoDimensionalTable, method = RequestMethod.GET)
  36. List<Map<String, Object>> getQuotaReportTwoDimensionalTable(
  37. @ApiParam(name = "quotaCodeStr", value = "指标Code,多个用,拼接", required = true)
  38. @RequestParam(value = "quotaCodeStr" , required = true) String quotaCodeStr,
  39. @ApiParam(name = "filter", value = "过滤", defaultValue = "")
  40. @RequestParam(value = "filter", required = false) String filter,
  41. @ApiParam(name = "dimension", value = "维度字段", defaultValue = "quotaDate")
  42. @RequestParam(value = "dimension", required = false) String dimension,
  43. @ApiParam(name = "top", value = "获取前几条数据")
  44. @RequestParam(value = "top", required = false) String top);
  45. @RequestMapping(value = ServiceApi.TJ.GetArchiveCount, method = RequestMethod.GET)
  46. @ApiOperation(value = "获取档案总数")
  47. Envelop getArchiveCount();
  48. @RequestMapping(value = ServiceApi.TJ.GetArchiveManCount, method = RequestMethod.GET)
  49. @ApiOperation(value = "健康档案的建档人数数量")
  50. Envelop getArchiveManCount();
  51. @ApiOperation("根据条件到solr中获取记录数")
  52. @RequestMapping(value = "/report/searchSolrByParam", method = RequestMethod.POST)
  53. Envelop searchSolrByParam(
  54. @RequestParam(value = "core") String core,
  55. @RequestParam(value = "eventType") String eventType,
  56. @RequestParam(value = "time", required = false) String time,
  57. @RequestParam(value = "month", defaultValue = "0", required = false) Integer month);
  58. }