ruanqi 2 years ago
parent
commit
a0624904fa
  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

@ -62,7 +62,7 @@
</select> </select>
<select id="getFlag" resultType="String"> <select id="getFlag" resultType="String">
select value from checkPartIfOldcheckPartIfOld where type=#{type}
select value from TableBase where type=#{type}
</select> </select>
<select id="checkPartIfOld" resultType="com.jtem.modules.Schedule.entity.InventoryStockData"> <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 Site,PartNo,BatchNo from InventoryStock where Site=#{site} and partNo=#{partNo} and WarehouseID = #{warehouseID} and

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

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

Loading…
Cancel
Save