|
@@ -374,12 +374,12 @@
|
|
|
(select count(*)
|
|
|
from tld_inventory a
|
|
|
join tld_storage_location b on a.storage_location_code = b.storage_location_code
|
|
|
- where a.supplier_id = #{suppId} and a.serial = #{unique} and a.wllb_code = #{wllbCode} and a.produc_date =
|
|
|
+ where a.supplier_id = #{suppId} and a.serial = #{unique} and a.wllb_code = #{wllbCode} and a.produc_batch =
|
|
|
#{producDate}
|
|
|
<if test="warehouseWhere != null and warehouseWhere != ''">
|
|
|
and b.warehouse_where = #{warehouseWhere}
|
|
|
</if>) as inventoryCount,
|
|
|
- (select count(*) from tld_warehousing_virtual where supp_id = #{suppId} and serial = #{unique} and wllb_code =
|
|
|
+ (select count(*) from tld_warehousing_virtual where supp_id = #{suppId} and serial = #{unique} and produc_batch =
|
|
|
#{wllbCode} and produc_date = #{producDate}) as virtualCount
|
|
|
from dual
|
|
|
</select>
|
|
@@ -953,7 +953,7 @@
|
|
|
where attribute = #{attribute}
|
|
|
and serial = #{serial}
|
|
|
and wllb_code = #{materialCode}
|
|
|
- and produc_date = #{producBatch}) as inventoryCount,
|
|
|
+ and produc_batch = #{producBatch}) as inventoryCount,
|
|
|
(select count(*)
|
|
|
from tld_warehousing_virtual
|
|
|
where attribute = #{attribute}
|