StatisticsController.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. package com.xintong.visualinspection.controller;
  2. import java.util.List;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.web.bind.annotation.RequestBody;
  5. import org.springframework.web.bind.annotation.RequestMapping;
  6. import org.springframework.web.bind.annotation.RestController;
  7. import com.xintong.visualinspection.bean.StatisticsBean;
  8. import com.xintong.visualinspection.bean.StatisticsBo;
  9. import com.xintong.visualinspection.service.StatisticsService;
  10. /**
  11. * 文件名:StatisticsController
  12. * 版本信息:日期:2017/3/30 Copyright 江苏省交通规划设计院 Corporation 2017 版权所有.
  13. */
  14. @RestController
  15. @RequestMapping("/statistics")
  16. public class StatisticsController extends BaseController {
  17. @Autowired
  18. private StatisticsService statisticsService;
  19. /**
  20. * 温馨服务考核情况反馈表(所有员工排名)
  21. * @return
  22. * String
  23. * @exception
  24. * @since 1.0.0
  25. */
  26. @RequestMapping(value = "/employee/order")
  27. public String getEmployeeOrder(@RequestBody StatisticsBean obj){
  28. List<StatisticsBo> lists= statisticsService.getEmployeeCheckedInfo(obj);
  29. return super.returnSuccessResult(lists);
  30. }
  31. /**
  32. * 温馨服务检查千分考核扣分情况汇总表
  33. * @param obj
  34. * @return
  35. */
  36. @RequestMapping(value = "/score/info")
  37. public String getScoreInfo(@RequestBody StatisticsBean obj){
  38. List<StatisticsBean> lists= statisticsService.getFeeStationCheckedScore(obj);
  39. return super.returnSuccessResult(lists);
  40. }
  41. /**
  42. * 温馨服务检查情况统计表
  43. */
  44. @RequestMapping(value = "/score/item/info")
  45. public String getScoreItemInfo(@RequestBody StatisticsBean obj){
  46. List<StatisticsBean> lists= statisticsService.getFeeStationCheckItemScore(obj);
  47. return super.returnSuccessResult(lists);
  48. }
  49. /**
  50. * 12个月考核等分总体
  51. */
  52. @RequestMapping(value = "/score/year/info")
  53. public String selectYearScoreChange(@RequestBody StatisticsBean obj){
  54. List<StatisticsBean> lists= statisticsService.getYearScoreChange(obj);
  55. return super.returnSuccessResult(lists);
  56. }
  57. /**
  58. * 收费站
  59. */
  60. @RequestMapping(value = "/score/tollgate/info")
  61. public String selectTollgateScoreChange(@RequestBody StatisticsBean obj){
  62. List<StatisticsBean> lists= statisticsService.getFeeStationScoreInfo(obj);
  63. return super.returnSuccessResult(lists);
  64. }
  65. /**
  66. * 道管中心3
  67. */
  68. @RequestMapping(value = "/score/center/manage/info")
  69. public String selectCentermanageScoreChange(@RequestBody StatisticsBean obj){
  70. List<StatisticsBean> lists= statisticsService.getCenterManageScoreInfo(obj);
  71. return super.returnSuccessResult(lists);
  72. }
  73. /**
  74. * 道管下收费站
  75. */
  76. @RequestMapping(value = "/score/manage/tollgate/info")
  77. public String selectCentermanageTollgateScoreChange(@RequestBody StatisticsBean obj){
  78. List<StatisticsBean> lists= statisticsService.getSingleFeeStationScoreInfo(obj);
  79. return super.returnSuccessResult(lists);
  80. }
  81. /**
  82. * 考核粘粉情况比
  83. */
  84. @RequestMapping(value = "/lost/score/rate")
  85. public String getCheckedInfoRate(@RequestBody StatisticsBean obj){
  86. StatisticsBean returnObj= statisticsService.getCheckedScoreInfo(obj);
  87. return super.returnSuccessResult(returnObj);
  88. }
  89. }