This commit is contained in:
邹宗楠
2026-01-07 17:51:47 +08:00
parent 4c24bb1e74
commit 1a78e75a29

View File

@@ -1805,7 +1805,7 @@ func StatisticsSettlement(db *DaoDB, storeId []int, start, end time.Time, vendor
}
if len(storeId) != 0 {
sql += ` AND IF(gs.jx_store_id != 0, gs.jx_store_id, gs.store_id) IN (` + dao.GenQuestionMarks(len(storeId)) + `)`
param = append(param, vendorId)
param = append(param, storeId)
}
if len(vendorId) != 0 {
sql += ` AND gs.vendor_id IN (` + GenQuestionMarks(len(vendorId)) + `)`
@@ -1890,7 +1890,7 @@ func StatisticsSettlementByCity(db *DaoDB, cityCode []string, start, end time.Ti
}
if len(cityCode) != 0 {
sql += ` AND s.city_code IN (` + dao.GenQuestionMarks(len(cityCode)) + `)`
param = append(param, vendorId)
param = append(param, cityCode)
}
sql += ` AND s.deleted_at = ? `