任务注册和调度-开发环境.http 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. ### 任务调度==查询全部
  2. POST http://127.0.0.1:22222/common/scheduling/task/scheduled/list/all
  3. Content-Type: application/json
  4. ### 任务调度==查询正在调度的任务
  5. POST http://127.0.0.1:22222/common/scheduling/task/scheduled/list/scheduled
  6. Content-Type: application/json
  7. ### 任务调度-每天定时出报表
  8. POST http://127.0.0.1:22222/common/scheduling/task/scheduled/add
  9. Content-Type: application/json
  10. {
  11. "registeredTask": {
  12. "id": 211648899235057664
  13. },
  14. "status": "ON",
  15. "scheduledType": "CRON",
  16. "scheduledParameter": {
  17. "cronExpression": "0 45 13 * * *"
  18. },
  19. "description": "每天定时出报表"
  20. }
  21. ### 任务调度-每天定时清理临时表
  22. POST http://127.0.0.1:22222/common/scheduling/task/scheduled/add
  23. Content-Type: application/json
  24. {
  25. "registeredTask": {
  26. "id": 211598274090635264
  27. },
  28. "status": "ON",
  29. "scheduledType": "CRON",
  30. "scheduledParameter": {
  31. "cronExpression": "0 15 14 * * *"
  32. },
  33. "description": "每天定时清理临时表"
  34. }
  35. ### 任务调度-每小时从工单系统更新数据
  36. POST http://127.0.0.1:22222/common/scheduling/task/scheduled/add
  37. Content-Type: application/json
  38. {
  39. "registeredTask": {
  40. "id": 211598274090635264
  41. },
  42. "status": "ON",
  43. "scheduledType": "CRON",
  44. "scheduledParameter": {
  45. "cronExpression": "0 5 * * * *"
  46. },
  47. "description": "每小时从工单系统更新数据"
  48. }
  49. ### 任务注册-查询列表
  50. POST http://127.0.0.1:22222/common/scheduling/task/registered/list/all
  51. Content-Type: application/json
  52. ### 任务注册-清理临时表
  53. POST http://127.0.0.1:22222/common/scheduling/task/registered/add
  54. Content-Type: application/json
  55. {
  56. "beanName": "taskService",
  57. "methodName": "tempTableCleanCronTask",
  58. "withParameter": false,
  59. "description": "清理临时表"
  60. }
  61. ### 任务注册-从工单系统更新数据
  62. POST http://127.0.0.1:22222/common/scheduling/task/registered/add
  63. Content-Type: application/json
  64. {
  65. "beanName": "taskService",
  66. "methodName": "updateWorkFlowBasicDataTask",
  67. "withParameter": false,
  68. "description": "从工单系统更新数据"
  69. }
  70. ### 任务注册- 入库-生成报表-截图 单次任务
  71. POST http://127.0.0.1:22222/common/scheduling/task/registered/add
  72. Content-Type: application/json
  73. {
  74. "beanName": "taskService",
  75. "methodName": "wareHouseTask",
  76. "withParameter": true,
  77. "description": "入库-生成报表-截图"
  78. }
  79. ### 任务注册- 入库-生成报表-截图 定时任务
  80. POST http://127.0.0.1:22222/common/scheduling/task/registered/add
  81. Content-Type: application/json
  82. {
  83. "beanName": "taskService",
  84. "methodName": "dailyWarehouseTask",
  85. "withParameter": false,
  86. "description": "入库-生成报表-截图 定时任务"
  87. }