update fence

This commit is contained in:
richboo111
2022-11-22 18:22:45 +08:00
parent 8b97d8b3b1
commit c444e9a47a

View File

@@ -175,9 +175,7 @@ func UpdateFenceByStore(appOrgCode, outFenceID string, storeID int) error {
localStore *LocalStore
vertex []warehouse_setFence_request.VerticesItem
)
sqlParam := []interface{}{
model.VendorIDDD,
}
sqlParam := []interface{}{}
sqlStr := `SELECT t.lng,t.lat,t.delivery_range_type,t.delivery_range FROM store t`
if storeID != 0 {
sqlStr += " WHERE t.id = ? "