PlatCarController.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package com.project.zcustom.controller.officalCar;
  2. import com.project.zcustom.controller.core.AjaxResult;
  3. import com.project.zcustom.service.car.ILargePlatCarService;
  4. import lombok.RequiredArgsConstructor;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.web.bind.annotation.GetMapping;
  7. import org.springframework.web.bind.annotation.RequestMapping;
  8. import org.springframework.web.bind.annotation.RequestParam;
  9. import org.springframework.web.bind.annotation.RestController;
  10. @RestController
  11. @RequestMapping("/large/car")
  12. @RequiredArgsConstructor(onConstructor_ = @Autowired)
  13. public class PlatCarController {
  14. @Autowired
  15. private ILargePlatCarService largePlatCarService;
  16. /**
  17. * 资源台账
  18. */
  19. @GetMapping("/resource")
  20. public AjaxResult getResource(@RequestParam String appOrg) {
  21. return AjaxResult.success("查询成功", largePlatCarService.getResource(appOrg));
  22. }
  23. /**
  24. * 2025年度公务车车辆明细
  25. */
  26. @GetMapping("/carDetail")
  27. public AjaxResult getCarDetail(@RequestParam String appOrg, @RequestParam Long flag, @RequestParam Long pageSize, @RequestParam Long page) {
  28. return AjaxResult.success("查询成功", largePlatCarService.getCarDetail(appOrg, flag, pageSize, page));
  29. }
  30. /**
  31. * 监控管理
  32. */
  33. @GetMapping("/monitor")
  34. public AjaxResult getMonitor(@RequestParam String appOrg) {
  35. return AjaxResult.success("查询成功", largePlatCarService.getMonitor(appOrg));
  36. }
  37. /**
  38. * 公务车预警明细
  39. */
  40. @GetMapping("/warnDetail")
  41. public AjaxResult getWarnDetail(@RequestParam String appOrg, @RequestParam String alertType, @RequestParam Long pageSize, @RequestParam Long page) {
  42. return AjaxResult.success("查询成功", largePlatCarService.getWarnDetail(appOrg, alertType, pageSize, page));
  43. }
  44. /**
  45. * 运行管理 上
  46. */
  47. @GetMapping("/operationManageTopHalf")
  48. public AjaxResult getOperationManageTopHalf(@RequestParam String appOrg) {
  49. return AjaxResult.success("查询成功", largePlatCarService.getOperationManageTopHalf(appOrg));
  50. }
  51. /**
  52. * 运行管理 下
  53. */
  54. @GetMapping("/operationManageLastHalf")
  55. public AjaxResult getOperationManageLastHalf() {
  56. return AjaxResult.success("查询成功", largePlatCarService.getOperationManageLastHalf());
  57. }
  58. /**
  59. * 所有地市各自的公务车总数
  60. */
  61. @GetMapping("/selfCarNum")
  62. public AjaxResult getSelfCarNum() {
  63. return AjaxResult.success("查询成功", largePlatCarService.getSelfCarNum());
  64. }
  65. }