You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
110 lines
3.3 KiB
110 lines
3.3 KiB
<?xml version="1.0" encoding="utf-8" ?>
|
|
<sqlMap namespace="WMS_TO_MES_INTERFACE" xmlns="http://ibatis.apache.org/mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
<alias>
|
|
<typeAlias alias="WMS_TO_MES_INTERFACE" type="SiaSun.LMS.Model.WMS_TO_MES_INTERFACE, SiaSun.LMS.Model" />
|
|
</alias>
|
|
<resultMaps>
|
|
<resultMap id="SelectResult" class="WMS_TO_MES_INTERFACE">
|
|
<result property="MES_ID" column="mes_id" />
|
|
<result property="TYPE" column="type" />
|
|
<result property="MES_INFO" column="mes_info" />
|
|
<result property="UPDATE_TIME" column="update_time" />
|
|
<result property="STOCK_BARCODE" column="stock_barcode" />
|
|
</resultMap>
|
|
</resultMaps>
|
|
<statements>
|
|
|
|
<select id="WMS_TO_MES_INTERFACE_SELECT" parameterClass="int" resultMap="SelectResult">
|
|
Select
|
|
mes_id,
|
|
type,
|
|
mes_info,
|
|
update_time,
|
|
stock_barcode
|
|
From WMS_TO_MES_INTERFACE
|
|
</select>
|
|
|
|
<select id="WMS_TO_MES_INTERFACE_SELECT_BY_ID" parameterClass="int" extends = "WMS_TO_MES_INTERFACE_SELECT" resultMap="SelectResult">
|
|
<dynamic prepend="WHERE">
|
|
<isParameterPresent>
|
|
mes_id=#MES_ID#
|
|
</isParameterPresent>
|
|
</dynamic>
|
|
</select>
|
|
|
|
<select id="WMS_TO_MES_INTERFACE_SELECT_BY_STOCK_BARCODE" parameterClass="int" extends = "WMS_TO_MES_INTERFACE_SELECT" resultMap="SelectResult">
|
|
<dynamic prepend="WHERE">
|
|
<isParameterPresent>
|
|
stock_barcode=#STOCK_BARCODE#
|
|
</isParameterPresent>
|
|
</dynamic>
|
|
</select>
|
|
|
|
<!--<select id="WMS_TO_MES_INTERFACE_SELECT_BY_LABLE" parameterClass="int" extends = "WMS_TO_MES_INTERFACE_SELECT" resultMap="SelectResult">
|
|
<dynamic prepend="WHERE">
|
|
<isParameterPresent>
|
|
lable=#LABLE#
|
|
</isParameterPresent>
|
|
</dynamic>
|
|
</select>
|
|
|
|
<select id="WMS_TO_MES_INTERFACE_SELECT_BY_LABLE_STOCK_BARCODE" parameterClass="int" extends = "WMS_TO_MES_INTERFACE_SELECT" resultMap="SelectResult">
|
|
<dynamic prepend="WHERE">
|
|
<isParameterPresent>
|
|
lable=#LABLE# AND stock_barcode=#STOCK_BARCODE#
|
|
</isParameterPresent>
|
|
</dynamic>
|
|
</select>-->
|
|
|
|
<!--<select id="WMS_TO_MES_INTERFACE_SELECT_BY_UPDATE_FLAG" parameterClass="int" extends = "WMS_TO_MES_INTERFACE_SELECT" resultMap="SelectResult">
|
|
<dynamic prepend="WHERE">
|
|
<isParameterPresent>
|
|
update_flag=#UPDATE_FLAG#
|
|
</isParameterPresent>
|
|
</dynamic>
|
|
</select>-->
|
|
|
|
<insert id="WMS_TO_MES_INTERFACE_INSERT" parameterClass="WMS_TO_MES_INTERFACE_UPDATE">
|
|
Insert Into WMS_TO_MES_INTERFACE (
|
|
type,
|
|
mes_info,
|
|
update_time,
|
|
stock_barcode,
|
|
lable
|
|
)Values(
|
|
#TYPE#,
|
|
#MES_INFO#,
|
|
#UPDATE_TIME#,
|
|
#STOCK_BARCODE#
|
|
|
|
)
|
|
<selectKey resultClass="int" type="post" property="MES_ID">
|
|
select @@IDENTITY as value
|
|
</selectKey>
|
|
</insert>
|
|
|
|
<update id="WMS_TO_MES_INTERFACE_UPDATE" parameterClass="WMS_TO_MES_INTERFACE">
|
|
Update WMS_TO_MES_INTERFACE Set
|
|
type=#TYPE#,
|
|
mes_info=#MES_INFO#,
|
|
update_time=#UPDATE_TIME#,
|
|
stock_barcode=#STOCK_BARCODE#
|
|
<dynamic prepend="WHERE">
|
|
<isParameterPresent>
|
|
mes_id=#MES_ID#
|
|
</isParameterPresent>
|
|
</dynamic>
|
|
</update>
|
|
|
|
<delete id="WMS_TO_MES_INTERFACE_DELETE" parameterClass="int">
|
|
Delete From WMS_TO_MES_INTERFACE
|
|
<dynamic prepend="WHERE">
|
|
<isParameterPresent>
|
|
mes_id=#MES_ID#
|
|
</isParameterPresent>
|
|
</dynamic>
|
|
</delete>
|
|
|
|
|
|
</statements>
|
|
</sqlMap>
|