This commit is contained in:
suyl
2021-07-08 18:23:13 +08:00
parent 2d0824f82a
commit b7ed047e7c
6 changed files with 30 additions and 53 deletions

View File

@@ -34,7 +34,7 @@ func GetPrintersPage(db *sqlx.DB, appID int, printNo, name string, status, isOnl
count int
)
sqlCount := `
SELECT COUNT(*) count
SELECT COUNT(id) count
`
sql := `
SELECT *
@@ -97,7 +97,7 @@ func GetPrintMessagesPage(db *sqlx.DB, printNo, msgID, beginAt, endAt string, of
endTime = utils.Str2Time(endAt)
}
sqlCount := `
SELECT COUNT(*) count
SELECT COUNT(id) count
`
sql := `
SELECT *