1
This commit is contained in:
@@ -165,14 +165,15 @@ func TestPrint(c *gin.Context, appID int, tokenInfo *model.TokenInfo, printNo st
|
||||
return "", fmt.Errorf("未在该应用下查到此打印机!app_id: %d, print_no: %s", appID, printNo)
|
||||
}
|
||||
printMsg := &model.PrintMsg{
|
||||
CreatedAt: &now,
|
||||
UpdatedAt: &now,
|
||||
LastOperator: tokenInfo.User.Name,
|
||||
DeletedAt: &utils.DefaultTimeValue,
|
||||
PrintNo: printNo,
|
||||
OrderNo: orderNo,
|
||||
Content: content,
|
||||
MsgID: msgID,
|
||||
CreatedAt: &now,
|
||||
UpdatedAt: &now,
|
||||
LastOperator: tokenInfo.User.Name,
|
||||
DeletedAt: &utils.DefaultTimeValue,
|
||||
PrintNo: printNo,
|
||||
OrderNo: orderNo,
|
||||
Content: content,
|
||||
MsgID: msgID,
|
||||
ContentEncryption: "",
|
||||
}
|
||||
err = dao.Insert(db, printMsg)
|
||||
return msgID, err
|
||||
|
||||
Reference in New Issue
Block a user