+ StoreMap添加FakeOpenStart和FakeOpenStop
This commit is contained in:
@@ -184,7 +184,8 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
|
||||
WHEN 3 THEN IF(eb.col_name IS NULL, '', eb.col_name)
|
||||
ELSE ''
|
||||
END,
|
||||
'", "isSync":', m1.is_sync, '}')), ']') store_map_str,
|
||||
'", "isSync":', m1.is_sync,
|
||||
', "fakeOpenStart":"', IF(m1.fake_open_start IS NULL, "1970-01-01 00:00:00", m1.fake_open_start), '", "fakeOpenStop":"', IF(m1.fake_open_stop IS NULL, "1970-01-01 00:00:00", m1.fake_open_stop), '"}')), ']') store_map_str,
|
||||
CONCAT('[', GROUP_CONCAT(DISTINCT CONCAT('{"vendorStoreID":"', m2.vendor_store_id, '", "vendorID":', m2.vendor_id,
|
||||
', "status":', m2.status, '}')), ']') courier_map_str
|
||||
FROM store t1
|
||||
@@ -364,6 +365,7 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
|
||||
mapRadius = params["mapRadius"].(int)
|
||||
}
|
||||
for _, v := range storeList {
|
||||
globals.SugarLogger.Debug(v.StoreMapStr)
|
||||
valid := !mapLimit
|
||||
if mapLimit {
|
||||
valid = jxutils.EarthDistance(mapLongitude, mapLatitude, v.FloatLng, v.FloatLat)*1000 <= float64(mapRadius)
|
||||
|
||||
Reference in New Issue
Block a user