Browse Source

0412更新

master
ruanqi 2 years ago
parent
commit
0876201cb1
  1. 7
      src/main/resources/mapper/app/InventoryStock.xml

7
src/main/resources/mapper/app/InventoryStock.xml

@ -56,9 +56,10 @@
</where> </where>
</select> </select>
<select id="checkPartIfOld" resultType="com.heai.modules.app.entity.InventoryStockData"> <select id="checkPartIfOld" resultType="com.heai.modules.app.entity.InventoryStockData">
select Site,PartNo,BatchNo from InventoryStock where Site=#{site} and partNo=#{partNo} and WarehouseID = #{warehouseId,jdbcType=VARCHAR} and #{batchNo}>BatchNo
and QtyOnHand>0
order by BatchNo
select Site,PartNo,BatchNo from InventoryStock where Site=#{site} and partNo=#{partNo} and WarehouseID = #{warehouseId} and
(select top 1 FirstInDate from InventoryStock where Site=#{site} and partNo=#{partNo} and WarehouseID = #{warehouseId} and BatchNo=#{batchNo} order by FirstInDate)>FirstInDate
and QtyOnHand>0.001
order by FirstInDate
</select> </select>
<select id="getFlag" resultType="String"> <select id="getFlag" resultType="String">

Loading…
Cancel
Save