This commit is contained in:
邹宗楠
2024-01-25 10:54:18 +08:00
parent a3b8183585
commit e17e9db240

View File

@@ -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
}