Browse Source

2022-10-10 越南sap

master
DOUDOU 3 years ago
parent
commit
acdc89ca28
  1. 10
      src/main/resources/mapper/finishedProduct/CRollinfoDao.xml
  2. 11
      src/main/resources/mapper/finishedProduct/SapDao.xml

10
src/main/resources/mapper/finishedProduct/CRollinfoDao.xml

@ -218,7 +218,7 @@
</select>
<select id="getCoustomerCode" resultType="java.lang.String">
SELECT CardCode
FROM YR.dbo.ODRF
FROM RXE.dbo.ODRF
WHERE DocEntry = #{orderNo}
</select>
<select id="getOrderNo" resultType="java.lang.String">
@ -245,11 +245,11 @@
) AS customer_id,
t3.Substitute AS mpn,
T0.u_ul
FROM YR.dbo.OITM T0
INNER JOIN YR.dbo.OWOR T1 ON T0.ItemCode = T1.ItemCode
FROM RXE.dbo.OITM T0
INNER JOIN RXE.dbo.OWOR T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN XJMES.dbo.C_RollInfo t2 ON t1.DocEntry = t2.OrderRef1
AND t2.SourceType = '生产订单'
LEFT JOIN YR.dbo.OSCN t3 ON T0.ItemCode = t3.ItemCode
LEFT JOIN RXE.dbo.OSCN t3 ON T0.ItemCode = t3.ItemCode
WHERE T0.ItemCode = #{partno}
</select>
<select id="rollOutboundControl" resultType="com.gaotao.modules.finishedProduct.entity.CRollinfoEntity">
@ -313,7 +313,7 @@
</select>
<select id="searchLotNo" resultType="java.lang.String">
SELECT MAX(docentry)
FROM YR.dbo.OWOR
FROM RXE.dbo.OWOR
WHERE ItemCode = #{partNo}
</select>
<select id="getRollInfo" resultType="com.gaotao.modules.finishedProduct.vo.CRollinfoVo">

11
src/main/resources/mapper/finishedProduct/SapDao.xml

@ -2,16 +2,16 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.gaotao.modules.finishedProduct.dao.SapDao">
<update id="updateOnnmAutoKey">
update yr.dbo.onnm set AutoKey = #{sapNo} where ObjectCOde = 15
update RXE.dbo.onnm set AutoKey = #{sapNo} where ObjectCOde = 15
</update>
<update id="updateNNM1NextNumber">
update yr.dbo.NNM1 set NextNumber = #{sapNo} where ObjectCOde = 15
update RXE.dbo.NNM1 set NextNumber = #{sapNo} where ObjectCOde = 15
</update>
<update id="updateODRFStuts">
update yr.dbo.ODRF set DocStatus='C' where DocEntry = #{orderNo}
update RXE.dbo.ODRF set DocStatus='C' where DocEntry = #{orderNo}
</update>
<delete id="reomverNullData">
DELETE FROM yr.dbo.ODLN where docDate is null and CardCode is null
DELETE FROM RXE.dbo.ODLN where docDate is null and CardCode is null
</delete>
<select id="getCount" resultType="java.lang.Integer">
Select count(1) from RoutingHeader where site='1' and PartNo='100001701400' and RevNo='A0'
@ -19,8 +19,7 @@
</select>
<update id="UpdateODLNMesTranNo">
update yr.dbo.ODLN set U_MESTransNo=#{orderNo},draftKey=#{orderNo} where DocEntry = #{sapNo}
update RXE.dbo.ODLN set U_MESTransNo=#{orderNo},draftKey=#{orderNo} where DocEntry = #{sapNo}
</update>
</mapper>
Loading…
Cancel
Save