ERP优化,物料TP默认ERP,合同查询直接查ERP
This commit is contained in:
@@ -11,26 +11,27 @@
|
||||
|
||||
|
||||
<update id="updateBatchByNumber">
|
||||
<foreach collection="toUpdate" item="item" separator=";" open="BEGIN" close=";END;">
|
||||
UPDATE SPLY_ERP_MTRL
|
||||
<set>
|
||||
<if test="item.downCtrNum != null">DOWN_CTR_NUM = #{item.downCtrNum},</if>
|
||||
<if test="item.ctrNum != null">CTR_NUM = #{item.ctrNum},</if>
|
||||
<if test="item.crtDt != null">CRT_DT = #{item.crtDt},</if>
|
||||
<if test="item.mtrlTp != null">MTRL_TP = #{item.mtrlTp},</if>
|
||||
<if test="item.mtrlGrpDt != null">MTRL_GRP_DT = #{item.mtrlGrpDt},</if>
|
||||
<if test="item.extMtrlGrpDt != null">EXT_MTRL_GRP_DT = #{item.extMtrlGrpDt},</if>
|
||||
<if test="item.unt != null">UNT = #{item.unt},</if>
|
||||
<if test="item.untDsp != null">UNT_DSP = #{item.untDsp},</if>
|
||||
<if test="item.mtrlTpDsp != null">MTRL_TP_DSP = #{item.mtrlTpDsp},</if>
|
||||
<if test="item.mtrlGrpDsp != null">MTRL_GRP_DSP = #{item.mtrlGrpDsp},</if>
|
||||
<if test="item.extMtrlGrpDsp != null">EXT_MTRL_GRP_DSP = #{item.extMtrlGrpDsp},</if>
|
||||
<if test="item.mtrlName != null">MTRL_NAME = #{item.mtrlName},</if>
|
||||
<if test="item.mtrlLenDsp != null">MTRL_LEN_DSP = #{item.mtrlLenDsp},</if>
|
||||
<if test="item.tenantId != null">TENANT_ID = #{item.tenantId},</if>
|
||||
</set>
|
||||
WHERE DOWN_CTR_NUM = #{item.number}
|
||||
</foreach>
|
||||
</update>
|
||||
<foreach collection="toUpdate" item="item" separator=";" open="BEGIN" close=";END;">
|
||||
UPDATE SPLY_ERP_MTRL
|
||||
<set>
|
||||
<if test="item.downCenterNumber != null">DOWN_CTR_NUM = #{item.downCenterNumber},</if>
|
||||
<if test="item.centerNumber != null">CTR_NUM = #{item.centerNumber},</if>
|
||||
<if test="item.createDate != null">CRT_DT = #{item.createDate},</if>
|
||||
<if test="item.materialType != null">MTRL_TP = #{item.materialType},</if>
|
||||
<if test="item.materialGroupDate != null">MTRL_GRP_DT = #{item.materialGroupDate},</if>
|
||||
<if test="item.externalMaterialGroupDate != null">EXT_MTRL_GRP_DT = #{item.externalMaterialGroupDate},</if>
|
||||
<if test="item.unit != null">UNT = #{item.unit},</if>
|
||||
<if test="item.unitDescription != null">UNT_DSP = #{item.unitDescription},</if>
|
||||
<if test="item.materialTypeDescription != null">MTRL_TP_DSP = #{item.materialTypeDescription},</if>
|
||||
<if test="item.materialGroupDescription != null">MTRL_GRP_DSP = #{item.materialGroupDescription},</if>
|
||||
<if test="item.externalMaterialGroupDescription != null">EXT_MTRL_GRP_DSP =#{item.externalMaterialGroupDescription},</if>
|
||||
<if test="item.materialName != null">MTRL_NAME = #{item.materialName},</if>
|
||||
<if test="item.materialLengthDescription != null">MTRL_LEN_DSP = #{item.materialLengthDescription},</if>
|
||||
<if test="item.type != null">TP = #{item.type},</if>
|
||||
<if test="item.tenantId != null">TENANT_ID = #{item.tenantId},</if>
|
||||
</set>
|
||||
WHERE DOWN_CTR_NUM = #{item.downCenterNumber}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user