ap-dev 1.1.40 → 1.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,6 +61,44 @@
61
61
  查看调度计划执行的情况
62
62
  </api-content>
63
63
  <br>
64
+ <api-tittle-2>六、【调度计划回调】</api-tittle-2>
65
+ <api-content>
66
+ 调度计划-回调请求:调度任务执行成功后,发起新的任务。<br>
67
+ 1、执行成功后,调用MES的定时任务<br>
68
+ 参数说明:<br>
69
+ type -> 固定值,'MESTASK'<br>
70
+ className -> MES定时任务的类名<br>
71
+ methodName -> MES定时任务的方法名<br>
72
+ <api-code>
73
+ {type: 'MESTASK', params:{className:'com.sems.task.TestTask', 'methodName': 'test'}}
74
+ </api-code>
75
+ 2、执行成功后,调用中台其他调度计划<br>
76
+ 参数说明:<br>
77
+ type -> 固定值,'APTASK'<br>
78
+ code -> 调度计划编码<br>
79
+ <api-code>
80
+ {type: 'APTASK', params:{code:'httptest'}}
81
+ </api-code>
82
+ 3、执行成功后,调用MES的controller<br>
83
+ 参数说明:<br>
84
+ type -> 固定值,'MES'<br>
85
+ url -> controller地址,后台会自动拼接MES地址<br>
86
+ method -> 方法类型:POST、GET<br>
87
+ params -> controller参数<br>
88
+ <api-code>
89
+ {type: 'MES', url:'taskApi/test', method: 'POST', params:{id: 'MES123'}}
90
+ </api-code>
91
+ 4、执行成功后,调用HTTP请求<br>
92
+ 参数说明:<br>
93
+ type -> 固定值,'HTTP'<br>
94
+ url -> 请求地址<br>
95
+ method -> 方法类型:POST、GET<br>
96
+ params -> controller参数<br>
97
+ <api-code>
98
+ {type: 'HTTP', url:'http://172.22.1.131:8080/mes/taskApi/test', method: 'POST', params:{id: 'HTTP123'}}
99
+ </api-code>
100
+
101
+ </api-content>
64
102
  </div>
65
103
  </template>
66
104
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ap-dev",
3
- "version": "1.1.40",
3
+ "version": "1.1.41",
4
4
  "description": "===== ap-dev =====",
5
5
  "author": "xiexinbin",
6
6
  "email": "876818817@qq.com",