|
|
@@ -138,6 +138,28 @@ func (this *ActivitiService) TaskComplete(processKey string, formEntityId string
|
|
|
return string(p)
|
|
|
}
|
|
|
|
|
|
+func (this *ActivitiService) MultiTaskComplete(processKey string, formEntityId string, userNames string, multiOrgAudits []MultiOrgAuditVM, userId string, result string, remarks string) string {
|
|
|
+
|
|
|
+ var ActiComplete MultiActiCompleteVM
|
|
|
+ ActiComplete.ProcessKey = processKey
|
|
|
+ ActiComplete.BusinessKey = formEntityId
|
|
|
+ ActiComplete.UserNames = userNames
|
|
|
+ ActiComplete.MultiOrgAudits = multiOrgAudits
|
|
|
+ ActiComplete.UserId = userId
|
|
|
+ ActiComplete.Result = result
|
|
|
+ ActiComplete.Remarks = remarks
|
|
|
+ jsonParams, err := json.Marshal(ActiComplete)
|
|
|
+ if err != nil {
|
|
|
+ fmt.Println(err, "生成json字符串错误")
|
|
|
+ }
|
|
|
+ params := string(jsonParams)
|
|
|
+ fmt.Println(params)
|
|
|
+ //token = Authorization(this.Username, this.Password)
|
|
|
+ retVal := this.Post("/multi-task-complete", params, "")
|
|
|
+ p, _ := ioutil.ReadAll(retVal.Body)
|
|
|
+ return string(p)
|
|
|
+}
|
|
|
+
|
|
|
func (this *ActivitiService) GetMyTasks(processKey string, userId string) string {
|
|
|
var ActiMyTasks ActiMyTasksVM
|
|
|
ActiMyTasks.ProcessKey = processKey
|