StatisticsController.java 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. }