diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index db4458e1d..6043c3ce9 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -277,7 +277,7 @@ func (t *TcpClient) doPrint2(printMsgChan chan *model.PrintMsg) (err error) { err = fmt.Errorf("未查询到此printMsg") } if err != nil { - fmt.Println("111111111111111111111111111111111111111111111", utils.Format4Output(t.Clients[printMsg.PrintNo], true), err.Error()) + globals.SugarLogger.Debugf("doPrint2 err printNo:%s, msgID:%s, printInfo: %v, err: %s", printMsg.PrintNo, printMsg.MsgID, utils.Format4Output(t.Clients[printMsg.PrintNo], true), err.Error()) //t.delConn(printMsg.PrintNo) printMsg.Status = printMsgErr printMsg.Comment = err.Error() diff --git a/business/model/print.go b/business/model/print.go index 6db89b0c0..eeb1c10f4 100644 --- a/business/model/print.go +++ b/business/model/print.go @@ -8,6 +8,7 @@ type PrintMsg struct { OrderNo int `json:"order_no"` //订单序号 Status int `json:"status"` //打印状态 Comment string `json:"comment"` //失败原因 + MsgID string `orm:"column(msg_id)" json:"msgID"` } type Printer struct {