修改orderno取值范围

This commit is contained in:
邹宗楠
2022-08-04 10:46:16 +08:00
parent f250957e0f
commit beee8def03
2 changed files with 5 additions and 1 deletions

View File

@@ -86,3 +86,7 @@ func toHex(ten int) string {
}
return strings.Join(hexStr, "")
}
func TestInt2Int64(t *testing.T) {
fmt.Println(int64(19930826391))
}

View File

@@ -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"`