This commit is contained in:
suyl
2021-05-20 13:50:22 +08:00
parent 87ace3d7c4
commit b08499204e

View File

@@ -4557,7 +4557,6 @@ func QueryPageSkus(ctx *jxcontext.Context, vendorID int, vendorStoreIDs []string
t1.*
FROM (
`
sqlParams = append(sqlParams, lng, lat, lng, lat)
if vendorID == -1 {
//sql += sqlEbai + ` UNION`
sqlParams = append(sqlParams, lng, lat)
@@ -4641,6 +4640,8 @@ func QueryPageSkus(ctx *jxcontext.Context, vendorID int, vendorStoreIDs []string
panic(r)
}
}()
fmt.Println(sql)
fmt.Println(sqlParams)
if err = dao.GetRowsTx(txDB, &results, sql, sqlParams...); err == nil {
pagedInfo = &model.PagedInfo{
TotalCount: dao.GetLastTotalRowCount2(db, txDB),