From beee8def03a345aace96e0d0f26b1e6ed9de063f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 4 Aug 2022 10:46:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9orderno=E5=8F=96=E5=80=BC?= =?UTF-8?q?=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/event/print_test.go | 4 ++++ business/model/print.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/business/jxstore/event/print_test.go b/business/jxstore/event/print_test.go index 7a905ce63..e63d3401b 100644 --- a/business/jxstore/event/print_test.go +++ b/business/jxstore/event/print_test.go @@ -86,3 +86,7 @@ func toHex(ten int) string { } return strings.Join(hexStr, "") } + +func TestInt2Int64(t *testing.T) { + fmt.Println(int64(19930826391)) +} diff --git a/business/model/print.go b/business/model/print.go index 1c7fdc917..c2e714e56 100644 --- a/business/model/print.go +++ b/business/model/print.go @@ -5,7 +5,7 @@ type PrintMsg struct { PrintNo string `json:"print_no" db:"print_no"` //打印机编号 Content string `orm:"type(text)" json:"content" db:"content"` //订单内容 - OrderNo int `json:"order_no" db:"order_no"` //订单序号 + OrderNo int64 `json:"order_no" db:"order_no"` //订单序号 Status int `json:"status" db:"status"` //打印状态 Comment string `json:"comment" db:"comment"` //失败原因 MsgID string `orm:"column(msg_id)" json:"msgID" db:"msg_id"`