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.
86 lines
2.3 KiB
86 lines
2.3 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<sqlMap namespace="MES_INTERFACE_LOG" xmlns="http://ibatis.apache.org/mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
<alias>
|
|
<typeAlias alias="MES_INTERFACE_LOG" type="SiaSun.LMS.Model.MES_INTERFACE_LOG, SiaSun.LMS.Model" />
|
|
</alias>
|
|
<resultMaps>
|
|
<resultMap id="SelectResult" class="MES_INTERFACE_LOG">
|
|
<result property="ID" column="id" />
|
|
<result property="INTERFACE" column="interface" />
|
|
<result property="TIME_STAMP" column="time_stamp" />
|
|
<result property="IN_MESSAGE" column="in_message" />
|
|
<result property="OUT_MESSAGE" column="out_message" />
|
|
<result property="SENDER" column="sender" />
|
|
<result property="RECEIVER" column="receiver" />
|
|
</resultMap>
|
|
</resultMaps>
|
|
|
|
<statements>
|
|
|
|
<select id="MES_INTERFACE_LOG_SELECT" parameterClass="int" resultMap="SelectResult">
|
|
Select
|
|
id,
|
|
interface,
|
|
time_stamp,
|
|
in_message,
|
|
out_message,
|
|
sender,
|
|
receiver
|
|
From MES_INTERFACE_LOG
|
|
</select>
|
|
|
|
<select id="MES_INTERFACE_LOG_SELECT_BY_ID" parameterClass="int" extends = "MES_INTERFACE_LOG_SELECT" resultMap="SelectResult">
|
|
<dynamic prepend="WHERE">
|
|
<isParameterPresent>
|
|
id=#ID#
|
|
</isParameterPresent>
|
|
</dynamic>
|
|
</select>
|
|
|
|
<insert id="MES_INTERFACE_LOG_INSERT" parameterClass="MES_INTERFACE_LOG">
|
|
Insert Into MES_INTERFACE_LOG (
|
|
interface,
|
|
time_stamp,
|
|
in_message,
|
|
out_message,
|
|
sender,
|
|
receiver
|
|
)Values(
|
|
#INTERFACE#,
|
|
#TIME_STAMP#,
|
|
#IN_MESSAGE#,
|
|
#OUT_MESSAGE#,
|
|
#SENDER#,
|
|
#RECEIVER#
|
|
)
|
|
<selectKey resultClass="int" type="post" property="ID">
|
|
select @@IDENTITY as value
|
|
</selectKey>
|
|
</insert>
|
|
|
|
<update id="MES_INTERFACE_LOG_UPDATE" parameterClass="MES_INTERFACE_LOG">
|
|
Update MES_INTERFACE_LOG Set
|
|
interface = #INTERFACE#,
|
|
time_stamp = #TIME_STAMP#,
|
|
in_message = #IN_MESSAGE#,
|
|
out_message = #OUT_MESSAGE#,
|
|
sender = #SENDER#,
|
|
receiver = #RECEIVER#
|
|
<dynamic prepend="WHERE">
|
|
<isParameterPresent>
|
|
id=#ID#
|
|
</isParameterPresent>
|
|
</dynamic>
|
|
</update>
|
|
|
|
<delete id="MES_INTERFACE_LOG_DELETE" parameterClass="int">
|
|
Delete From MES_INTERFACE_LOG
|
|
<dynamic prepend="WHERE">
|
|
<isParameterPresent>
|
|
id=#ID#
|
|
</isParameterPresent>
|
|
</dynamic>
|
|
</delete>
|
|
|
|
</statements>
|
|
</sqlMap>
|