fix bug.
This commit is contained in:
parent
2e1b494e30
commit
1eb48a7b40
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user