This commit is contained in:
邹宗楠
2022-07-28 18:16:18 +08:00
parent 4c20521561
commit f66656aaa6

View File

@@ -51,10 +51,7 @@ func GetPrintersPage(db *sqlx.DB, appID int, printNo, name string, status, isOnl
sql := ` sql := `
SELECT * SELECT *
` `
sqlOther := ` sqlOther := `FROM printer WHERE 1 = 1 AND deleted_at = ?`
FROM printer
WHERE 1 = 1 AND deleted_at = ?
`
sqlParams := []interface{}{utils.DefaultTimeValue} sqlParams := []interface{}{utils.DefaultTimeValue}
if appID != 0 { if appID != 0 {
sqlOther += " AND app_id = ?" sqlOther += " AND app_id = ?"