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.
69 lines
1.9 KiB
69 lines
1.9 KiB
11 months ago
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||
|
<sqlMap namespace="MES_INTERFACE_RETRY" xmlns="http://ibatis.apache.org/mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||
|
<alias>
|
||
|
<typeAlias alias="MES_INTERFACE_RETRY" type="SiaSun.LMS.Model.MES_INTERFACE_RETRY, SiaSun.LMS.Model" />
|
||
|
</alias>
|
||
|
<resultMaps>
|
||
|
<resultMap id="SelectResult" class="MES_INTERFACE_RETRY">
|
||
|
<result property="ID" column="id" />
|
||
|
<result property="WHO" column="who" />
|
||
|
<result property="BIZ_TYPE" column="biz_type" />
|
||
|
<result property="MESSAGE" column="message" />
|
||
|
</resultMap>
|
||
|
</resultMaps>
|
||
|
|
||
|
<statements>
|
||
|
|
||
|
<select id="MES_INTERFACE_RETRY_SELECT" parameterClass="int" resultMap="SelectResult">
|
||
|
Select
|
||
|
id,
|
||
|
who,
|
||
|
biz_type,
|
||
|
message
|
||
|
From MES_INTERFACE_RETRY
|
||
|
</select>
|
||
|
|
||
|
<select id="MES_INTERFACE_RETRY_SELECT_BY_ID" parameterClass="int" extends = "MES_INTERFACE_RETRY_SELECT" resultMap="SelectResult">
|
||
|
<dynamic prepend="WHERE">
|
||
|
<isParameterPresent>
|
||
|
id=#ID#
|
||
|
</isParameterPresent>
|
||
|
</dynamic>
|
||
|
</select>
|
||
|
|
||
|
<insert id="MES_INTERFACE_RETRY_INSERT" parameterClass="MES_INTERFACE_RETRY">
|
||
|
Insert Into MES_INTERFACE_RETRY (
|
||
|
who,
|
||
|
biz_type,
|
||
|
message
|
||
|
)Values(
|
||
|
#WHO#,
|
||
|
#BIZ_TYPE#,
|
||
|
#MESSAGE#
|
||
|
)
|
||
|
<selectKey resultClass="int" type="post" property="ID">
|
||
|
select @@IDENTITY as value
|
||
|
</selectKey>
|
||
|
</insert>
|
||
|
|
||
|
<update id="MES_INTERFACE_RETRY_UPDATE" parameterClass="MES_INTERFACE_RETRY">
|
||
|
Update MES_INTERFACE_RETRY Set
|
||
|
message = #MESSAGE#
|
||
|
<dynamic prepend="WHERE">
|
||
|
<isParameterPresent>
|
||
|
id=#ID#
|
||
|
</isParameterPresent>
|
||
|
</dynamic>
|
||
|
</update>
|
||
|
|
||
|
<delete id="MES_INTERFACE_RETRY_DELETE" parameterClass="int">
|
||
|
Delete From MES_INTERFACE_RETRY
|
||
|
<dynamic prepend="WHERE">
|
||
|
<isParameterPresent>
|
||
|
id=#ID#
|
||
|
</isParameterPresent>
|
||
|
</dynamic>
|
||
|
</delete>
|
||
|
|
||
|
</statements>
|
||
|
</sqlMap>
|