diff --git a/business/jxstore/cms/api_print.go b/business/jxstore/cms/api_print.go index 660f48cb9..8b7aeecc9 100644 --- a/business/jxstore/cms/api_print.go +++ b/business/jxstore/cms/api_print.go @@ -381,18 +381,16 @@ func DoPrintMsg(appID int, msgID, printNo, content string, orderNo string) (err MsgID: msgID, } - dao.WrapAddIDCULDEntity(printMsg, "") - if err = dao.CreateEntity(db, printMsg); err != nil { - return err - } - t, ok := event.PrintObject[printNo] if ok { t.MsgMap[printNo] <- printMsg printMsg.Status = event.PrintMsgAlreadyLoad - dao.UpdateEntity(db, printMsg, "Status") } + dao.WrapAddIDCULDEntity(printMsg, "") + if err = dao.CreateEntity(db, printMsg); err != nil { + return err + } return err }