Skip to main content

Bayi Tarafında Yapılan Operasyonel İşlemler

Lokasyon Servis Dışı İşlemi

Burada yapılacak işlemlerle işlem yapılan lokasyon veya bayinin uygulamada servis dışı gözükmesi ve sipariş verilememesi sağlanmaktadır.

Db İşlemleri

Belirtilen locationId ile örnek locationId = 342301, brandId = 10, distributorId = 323

    update table Distributor_Location_Map set isActive = 0 where locationId = 342301 and distributorId = 323;
update table Brand_Location_Map set isActive = 0 where locationId = 342301 and brandId = 10;

Eğer locationId ve brandId belirliyse o locationId'deki distributorId'yi bulmak için gerekli sql:

    select distributorId from Distributor_Location_Map where locationId = 342301 and distributorId in (select distributorId from Distributor_Brand_Map where brandId=10);

Elde edilen distributorId ile üstteki 2 sql çalıştırılır.