mirror of
https://github.com/suhf/No1WMS.git
synced 2026-02-04 12:13:24 +09:00
change inMapper inList
This commit is contained in:
@@ -107,14 +107,15 @@
|
|||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="inList" parameterType="map" resultMap="inResultMap">
|
<select id="
|
||||||
|
" parameterType="map" resultMap="inResultMap">
|
||||||
SELECT
|
SELECT
|
||||||
proin.id, proin.group_number, proin.product_id, proin.in_date, proin.quantity, proin.warehouse_id, proin.manager_id, proin.note, proin.activation,
|
proin.id, proin.group_number, proin.product_id, proin.in_date, proin.quantity, proin.warehouse_id, proin.manager_id, proin.note, proin.activation,
|
||||||
planin.view_group_number,
|
planin.view_group_number,
|
||||||
pro.name as product_name,
|
pro.name as product_name,
|
||||||
w.name as warehouse_name,
|
w.name as warehouse_name,
|
||||||
a.name as account_name,
|
a.name as account_name,
|
||||||
(SELECT price FROM prices WHERE product_id = proin.product_id ORDER BY registration_date DESC LIMIT 1) as latest_price
|
(SELECT price FROM prices WHERE product_id = proin.product_id and activation = 1 ORDER BY registration_date DESC LIMIT 1) as latest_price
|
||||||
FROM
|
FROM
|
||||||
product_in as proin
|
product_in as proin
|
||||||
LEFT JOIN plan_In as planin on proin.group_number = planin.group_number and proin.product_id = planin.product_id
|
LEFT JOIN plan_In as planin on proin.group_number = planin.group_number and proin.product_id = planin.product_id
|
||||||
|
|||||||
Reference in New Issue
Block a user