This commit is contained in:
richboo111
2022-10-12 10:49:07 +08:00
parent fb47d76f51
commit 238fcb9af4
2 changed files with 11 additions and 15 deletions

View File

@@ -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)