planin url 관련 버그 수정

This commit is contained in:
Suh
2024-01-19 22:14:52 +09:00
parent 6641e4ac9b
commit 04392168ba
4 changed files with 9 additions and 9 deletions

View File

@@ -44,7 +44,7 @@
and plan.warehouse_id = warehouse.id and product.kan_code = product_category.kan_code
where plan.group_number = #{groupNumber}
</select>
<select id="selectByUrl" resultMap="planInResultMap">
<select id="selectByQRHash" resultMap="planInResultMap">
SELECT
plan.group_number, plan.product_id, plan.quantity, plan.date, plan.manager_id,
plan.warehouse_id, plan.qr_hash, plan.url, plan.clear, plan.other, plan.activation, plan.view_group_number,
@@ -53,7 +53,7 @@
from plan_In plan join account acc join vendor join warehouse join product join product_category
on plan.product_id = product.id and product.vendor_id = vendor.id and plan.manager_id = acc.id
and plan.warehouse_id = warehouse.id and product.kan_code = product_category.kan_code
WHERE plan.url = #{id}
WHERE plan.qr_hash = #{qrHash}
</select>
<select id="selectAll" resultMap="planInResultMap" parameterType="map">
SELECT
@@ -82,8 +82,8 @@
)
VALUES (#{groupNumber}, #{productId}, #{quantity},
#{date},
#{managerId}, #{warehouseId}, #{qrHash},
#{groupNumber}, #{clear},
#{managerId}, #{warehouseId}, #{groupNumber},
uuid(), #{clear},
#{other}, true,
CASE
WHEN #{viewGroupNumber} IS NOT NULL