|
|
@ -158,7 +158,7 @@
|
|
|
|
<if test="localAction != '' and localAction!=null">
|
|
|
|
<if test="localAction != '' and localAction!=null">
|
|
|
|
and billType = #{localAction}
|
|
|
|
and billType = #{localAction}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="userId!=null">
|
|
|
|
<if test="userId != '' and userId!=null">
|
|
|
|
and (invWarehouseCode in (select code from inv_warehouse_user WHERE userId =#{userId}) or
|
|
|
|
and (invWarehouseCode in (select code from inv_warehouse_user WHERE userId =#{userId}) or
|
|
|
|
invWarehouseCode is null or invWarehouseCode='')
|
|
|
|
invWarehouseCode is null or invWarehouseCode='')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -180,12 +180,15 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="invWarehouseCode != '' and invWarehouseCode!=null">
|
|
|
|
<if test="invWarehouseCode != '' and invWarehouseCode!=null">
|
|
|
|
and invWarehouseCode = #{invWarehouseCode}
|
|
|
|
and invWarehouseCode = #{invWarehouseCode}
|
|
|
|
and
|
|
|
|
|
|
|
|
stock_order.billType in
|
|
|
|
<if test="userId != '' and userId!=null">
|
|
|
|
(select basic_bussiness_type.localAction from inv_bustype_user INNER JOIN basic_bussiness_type on
|
|
|
|
and
|
|
|
|
inv_bustype_user.scAction = basic_bussiness_type.action
|
|
|
|
stock_order.billType in
|
|
|
|
WHERE userId =#{userId} and invWarehouseCode =#{invWarehouseCode}
|
|
|
|
(select basic_bussiness_type.localAction from inv_bustype_user INNER JOIN basic_bussiness_type on
|
|
|
|
GROUP BY inv_bustype_user.id)
|
|
|
|
inv_bustype_user.scAction = basic_bussiness_type.action
|
|
|
|
|
|
|
|
WHERE userId =#{userId} and invWarehouseCode =#{invWarehouseCode}
|
|
|
|
|
|
|
|
GROUP BY inv_bustype_user.id)
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="createUser!=null">
|
|
|
|
<if test="createUser!=null">
|
|
|
|
and createUser = #{createUser}
|
|
|
|
and createUser = #{createUser}
|
|
|
@ -309,7 +312,8 @@
|
|
|
|
select io_codes.code udiCode,basic_udirel.id productId,basic_products.cpmctymc productName,basic_products.ggxh
|
|
|
|
select io_codes.code udiCode,basic_udirel.id productId,basic_products.cpmctymc productName,basic_products.ggxh
|
|
|
|
spec,io_codes.batchNo,io_codes.produceDate productDate,io_codes.expireDate ,io_codes.serialNo,io_codes.count,
|
|
|
|
spec,io_codes.batchNo,io_codes.produceDate productDate,io_codes.expireDate ,io_codes.serialNo,io_codes.count,
|
|
|
|
basic_products.ylqxzcrbarmc,basic_udirel.manufactory,basic_udirel.measname,basic_products.zczbhhzbapzbh,
|
|
|
|
basic_products.ylqxzcrbarmc,basic_udirel.manufactory,basic_udirel.measname,basic_products.zczbhhzbapzbh,
|
|
|
|
inv_warehouse.name locInv, inv_warehouse_sub.name subInv, basic_products.spmc, basic_products.cpms,io_codes.nameCode,io_codes.relId
|
|
|
|
inv_warehouse.name locInv, inv_warehouse_sub.name subInv, basic_products.spmc,
|
|
|
|
|
|
|
|
basic_products.cpms,io_codes.nameCode,io_codes.relId
|
|
|
|
from io_codes
|
|
|
|
from io_codes
|
|
|
|
INNER JOIN basic_udirel on io_codes.relId = basic_udirel.id
|
|
|
|
INNER JOIN basic_udirel on io_codes.relId = basic_udirel.id
|
|
|
|
INNER JOIN basic_products on basic_products.uuid = basic_udirel.uuid
|
|
|
|
INNER JOIN basic_products on basic_products.uuid = basic_udirel.uuid
|
|
|
|