巨石化纤
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.

30 lines
1.2 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<sqlMap namespace="IO_CONTROL_MODEL" xmlns="http://ibatis.apache.org/mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<alias>
<typeAlias alias="IO_CONTROL_MODEL" type="SSWMS.Common.IO_CONTROL_MODEL, SSWMS.Common" />
</alias>
<resultMaps>
<resultMap id="SelectResult" class="IO_CONTROL_MODEL">
<result property="DEVICE_ID" column="DEVICE_ID" />
<result property="DEVICE_CODE" column="DEVICE_CODE" />
<result property="MODEL_STATUS" column="MODEL_STATUS" />
</resultMap>
</resultMaps>
<statements>
<select id="IO_CONTROL_MODEL_SELECT" parameterClass="int" resultMap="SelectResult">
select
DEVICE_ID,
DEVICE_CODE,
MODEL_STATUS
from IO_CONTROL_MODEL
</select>
<select id="IO_CONTROL_MODEL_SELECT_BY_ID" parameterClass="int"
extends="IO_CONTROL_MODEL_SELECT" resultMap="SelectResult">
where DEVICE_ID=#DEVICE_ID#
</select>
<select id="IO_CONTROL_MODEL_SELECT_BY_DEVICE_CODE" parameterClass="string"
extends="IO_CONTROL_MODEL_SELECT" resultMap="SelectResult">
where DEVICE_CODE=#DEVICE_CODE#
</select>
</statements>
</sqlMap>