This commit is contained in:
suyl
2021-08-02 16:03:39 +08:00
parent 90d441d02f
commit a441c28bf5

View File

@@ -156,10 +156,11 @@ func (t *TcpClient) HandleTcpMessages(printNo string) {
prints, _ := dao.GetPrintMsgs(db, printNo, []int{printMsgWait}, time.Now().Add(-time.Hour*3), time.Now(), offset, pageSize) prints, _ := dao.GetPrintMsgs(db, printNo, []int{printMsgWait}, time.Now().Add(-time.Hour*3), time.Now(), offset, pageSize)
for _, printMsg := range prints { for _, printMsg := range prints {
printMsg.Status = printMsgAlreadyLoad printMsg.Status = printMsgAlreadyLoad
dao.UpdateEntity(db, printMsg, "Status") if _, err := dao.UpdateEntity(db, printMsg, "Status"); err == nil {
t.addMsgChan(printMsg) t.addMsgChan(printMsg)
} }
} }
}
}() }()
} }