This commit is contained in:
suyl
2021-09-01 10:40:33 +08:00
parent dd0992a545
commit 433a14e935

View File

@@ -550,8 +550,8 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
SELECT
SQL_CALC_FOUND_ROWS
DISTINCT t1.*,
-- CAST(t1.lng AS DECIMAL(15,6))/1000000 float_lng,
-- CAST(t1.lat AS DECIMAL(15,6))/1000000 float_lat,
CAST(t1.lng AS DECIMAL(15,6))/1000000 float_lng,
CAST(t1.lat AS DECIMAL(15,6))/1000000 float_lat,
IF(mm.name <> '', mm.name, mm.user_id2) market_man_name,
bank.value payee_bank_name,
IF(om.name <> '', om.name, om.user_id2) operator_name,
@@ -579,10 +579,10 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
//mapLimit := false
//globals.SugarLogger.Debug(sql)
//globals.SugarLogger.Debug(utils.Format4Output(sqlParams, false))
txDB , _ := dao.Begin(db)
txDB, _ := dao.Begin(db)
if err = dao.GetRowsTx(txDB, &storeList, sql, sqlParams...); err == nil {
retVal.Stores = storeList
retVal.TotalCount = dao.GetLastTotalRowCount2(db, txDB)
retVal.TotalCount = dao.GetLastTotalRowCount2(db, txDB)
// 地图区域限制过滤
//if mapLongitude2, ok := params["mapLongitude"].(string); ok {
// var (