This commit is contained in:
suyl
2021-08-18 11:43:58 +08:00
parent 4e1c91ea8f
commit 63187a5937

View File

@@ -120,7 +120,7 @@ func GetChargeInfo(db *sqlx.DB, appID int, printNo string, iccID, beginDate, end
`
sqlOhter := `
FROM pay_order a
JOIN apps b ON b.user_id = a.user_id AND b.app_id = ? AND b.deleted_at = ?
JOIN apps b ON b.user_id = a.user_id AND b.id = ? AND b.deleted_at = ?
LEFT JOIN printer c ON c.icc_id = a.thing_id AND c.deleted_at = ?
LEFT JOIN sim_flow_income d ON d.order_id = a.order_id
WHERE 1 = 1