1
This commit is contained in:
@@ -147,7 +147,7 @@ func CreateFenceDirectly(param warehouse_createFence_request.WarehouseCreateFenc
|
||||
}
|
||||
|
||||
// 通过门店更新电子围栏
|
||||
func UpdateFenceByStore(storeID int) error {
|
||||
func UpdateFenceByStore(appOrgCode string, storeID int) error {
|
||||
var (
|
||||
db *dao.DaoDB
|
||||
localStore *LocalStore
|
||||
@@ -157,8 +157,7 @@ func UpdateFenceByStore(storeID int) error {
|
||||
model.VendorIDDD,
|
||||
}
|
||||
sqlStr := ` SELECT t.lng,t.lat,t.delivery_range_type,t.delivery_range,s.vendor_store_id FROM store t
|
||||
LEFT JOIN store_map s ON t.id = s.store_id
|
||||
WHERE s.vendor_id= ? `
|
||||
LEFT JOIN store_map s ON t.id = s.store_id WHERE s.vendor_id= ? `
|
||||
if storeID != 0 {
|
||||
sqlStr += " AND t.id = ? "
|
||||
sqlParam = append(sqlParam, storeID)
|
||||
|
||||
Reference in New Issue
Block a user