From 8e38a3f5205f1923a802d4818e2664c8f0b288c2 Mon Sep 17 00:00:00 2001 From: sungsuhub <145002081+sungsuhub@users.noreply.github.com> Date: Wed, 24 Jan 2024 11:18:21 +0900 Subject: [PATCH] Update StockMapper.xml --- src/main/resources/mappers/StockMapper.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +