aa
This commit is contained in:
@@ -156,8 +156,9 @@ func (t *TcpClient) HandleTcpMessages(printNo string) {
|
||||
prints, _ := dao.GetPrintMsgs(db, printNo, []int{printMsgWait}, time.Now().Add(-time.Hour*3), time.Now(), offset, pageSize)
|
||||
for _, printMsg := range prints {
|
||||
printMsg.Status = printMsgAlreadyLoad
|
||||
dao.UpdateEntity(db, printMsg, "Status")
|
||||
t.addMsgChan(printMsg)
|
||||
if _, err := dao.UpdateEntity(db, printMsg, "Status"); err == nil {
|
||||
t.addMsgChan(printMsg)
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user