diff --git a/src/main/resources/mappers/StockMapper.xml b/src/main/resources/mappers/StockMapper.xml index de75fa7..b78de68 100644 --- a/src/main/resources/mappers/StockMapper.xml +++ b/src/main/resources/mappers/StockMapper.xml @@ -64,7 +64,7 @@ quantity <= 200 and s.activation = 1 and p.name like concat('%',#{search},'%') quantity <= 200 and s.activation = 1 and c.cls_Nm_4 like concat('%',#{search},'%') quantity <= 200 and s.activation = 1 and s.quantity like concat('%',#{search},'%') - s.activation = 1 and w.name like concat('%',#{search},'%') + quantity <= 200 and s.activation = 1 and w.name like concat('%',#{search},'%') @@ -82,7 +82,7 @@ quantity <= 200 and s.activation = 1 and p.name like concat('%',#{search},'%') quantity <= 200 and s.activation = 1 and c.cls_Nm_4 like concat('%',#{search},'%') quantity <= 200 and s.activation = 1 and s.quantity like concat('%',#{search},'%') - s.activation = 1 and w.name like concat('%',#{search},'%') + quantity <= 200 and s.activation = 1 and w.name like concat('%',#{search},'%') order by s.id desc limit #{start}, #{perPage} @@ -230,4 +230,4 @@ INSERT INTO stock (id, warehouse_id, product_id, quantity, activation) VALUES (UUID(), #{warehouseId}, #{productId}, #{quantity}, 1) - \ No newline at end of file +