|
|
@ -89,7 +89,7 @@ |
|
|
<select id="newInNewOutWithSitePart" resultType="com.spring.modules.base.entity.InventoryStockRoll"> |
|
|
<select id="newInNewOutWithSitePart" resultType="com.spring.modules.base.entity.InventoryStockRoll"> |
|
|
select top 1 a.site,a.RollNo,a.PartNo,a.ManufactureDate |
|
|
select top 1 a.site,a.RollNo,a.PartNo,a.ManufactureDate |
|
|
from InventoryStock_Roll a left join TransDetailsub_cach b on a.Site=b.site and a.RollNo=b.RollNo |
|
|
from InventoryStock_Roll a left join TransDetailsub_cach b on a.Site=b.site and a.RollNo=b.RollNo |
|
|
where a.site=#{site} and a.PartNo=#{partNo} and b.site is null and QtyOnHand>0 |
|
|
|
|
|
|
|
|
where a.site=#{site} and a.PartNo=#{partNo} and b.site is null and QtyOnHand>0 and a.Freezeflag='N' |
|
|
order by a.ManufactureDate |
|
|
order by a.ManufactureDate |
|
|
</select> |
|
|
</select> |
|
|
</mapper> |
|
|
</mapper> |