ruanqi 2 years ago
parent
commit
47f5108eac
  1. 2
      src/main/resources/mapper/pda/PdaOrderMapper.xml
  2. 2
      src/main/resources/mapper/pda/ToolDetailMapper.xml

2
src/main/resources/mapper/pda/PdaOrderMapper.xml

@ -67,7 +67,7 @@
<select id="checkPartIfOld" resultType="com.jtem.modules.Schedule.entity.InventoryStockData">
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.0001
and QtyOnHand>0.001
order by FirstInDate
</select>

2
src/main/resources/mapper/pda/ToolDetailMapper.xml

@ -647,7 +647,7 @@
from PartSubPropertiesValueHeader a left join PropertiesModelDetail b on a.CodeNo=b.CodeNo
left join PartSubPropertiesValue c on c.Site=#{site} and c.PartNo=#{toolId} and c.RecordType='T' and b.ItemNo=c.ItemNo
left join PropertiesItem e on b.PropertiesItemNo=e.ItemNo
where c.ItemNo is null and a.RecordType='T' and a.PartNo=#{toolId} and a.site= #{site}
where c.ItemNo is null and a.RecordType='T' and a.PartNo=#{toolId} and a.site= #{site} AND B.SITE IS NOT NULL
</insert>

Loading…
Cancel
Save