This commit is contained in:
Mr. Lan 2020-07-31 23:51:00 +08:00
parent 2e1b494e30
commit 1eb48a7b40

View File

@ -547,11 +547,21 @@ func (h *Handle) HandleWorkOrder(
} }
if parallelStatusOk { if parallelStatusOk {
h.endHistory = true h.endHistory = true
endAssignValue, ok := h.targetStateValue["assignValue"]
if !ok {
endAssignValue = []int{}
}
endAssignType, ok := h.targetStateValue["assignType"]
if !ok {
endAssignType = ""
}
h.updateValue["state"] = []map[string]interface{}{{ h.updateValue["state"] = []map[string]interface{}{{
"id": h.targetStateValue["id"].(string), "id": h.targetStateValue["id"].(string),
"label": h.targetStateValue["label"], "label": h.targetStateValue["label"],
"processor": h.targetStateValue["assignValue"], "processor": endAssignValue,
"process_method": h.targetStateValue["assignType"], "process_method": endAssignType,
}} }}
err = h.circulation() err = h.circulation()
if err != nil { if err != nil {