|
|
|
@ -267,13 +267,18 @@
|
|
|
|
|
stock_order_detail.batchNo, stock_order_detail.productDate, stock_order_detail.expireDate,
|
|
|
|
|
stock_order_detail.count, stock_order_detail.sweepCount,
|
|
|
|
|
stock_order_detail.ylqxzcrbarmc,stock_order_detail.manufactory,
|
|
|
|
|
stock_order_detail.zczbhhzbapzbh,stock_order_detail.price,inv_warehouse.name locInv FROM stock_order INNER JOIN
|
|
|
|
|
stock_order_detail.zczbhhzbapzbh,stock_order_detail.price,inv_warehouse.name locInv
|
|
|
|
|
,productinfo.spmc
|
|
|
|
|
FROM stock_order INNER JOIN
|
|
|
|
|
stock_order_detail on
|
|
|
|
|
stock_order.id =
|
|
|
|
|
stock_order_detail.orderIdFk
|
|
|
|
|
LEFT JOIN inv_warehouse ON stock_order.locStorageCode = inv_warehouse.`code`
|
|
|
|
|
LEFT JOIN inv_warehouse_sub ON inv_warehouse_sub.parentId = inv_warehouse.`code`
|
|
|
|
|
LEFT JOIN inv_warehouse_user on inv_warehouse_sub.code = inv_warehouse_user.`code`
|
|
|
|
|
left join basic_udirel on stock_order_detail.productId = basic_udirel.id
|
|
|
|
|
INNER JOIN basic_products on basic_products.uuid = basic_udirel.uuid
|
|
|
|
|
INNER JOIN productinfo on productinfo.uuid = basic_products.originUuid
|
|
|
|
|
<where>
|
|
|
|
|
<if test="id != '' and id!=null">
|
|
|
|
|
and stock_order.id =#{id}
|
|
|
|
|