This commit is contained in:
邹宗楠
2024-01-17 15:50:17 +08:00
parent 1439e701ac
commit c19efa359e

View File

@@ -2,6 +2,7 @@ package dao
import (
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/globals"
"time"
)
@@ -9,6 +10,7 @@ import (
func QueryOrderDeductionRecord(db *DaoDB, printNo string, orderNo string) (bool, error) {
sql := `SELECT * FROM print_bill_record WHERE print_no = ? AND order_no = ? AND created_at > ? AND created_at < ?`
globals.SugarLogger.Debugf("QueryOrderDeductionRecord============ : %s , %s", printNo, orderNo)
timeNow := time.Now()
startTime := time.Date(timeNow.Year(), timeNow.Month(), timeNow.Day(), 0, 0, 0, 0, timeNow.Location())
endTime := time.Date(timeNow.Year(), timeNow.Month(), timeNow.Day(), 23, 59, 59, 0, timeNow.Location())