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

90 lines
2.6 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<sqlMap namespace="SYS_FLOW" xmlns="http://ibatis.apache.org/mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<alias>
<typeAlias alias="SYS_FLOW" type="SSWMS.Common.SYS_FLOW, SSWMS.Common" />
</alias>
<resultMaps>
<resultMap id="SelectResult" class="SYS_FLOW">
<result property="FLOW_ID" column="FLOW_ID" />
<result property="FLOW_TYPE" column="FLOW_TYPE" />
<result property="FLOW_NAME" column="FLOW_NAME" />
<result property="FLOW_EVENT" column="FLOW_EVENT" />
<result property="FLOW_FLAG" column="FLOW_FLAG" />
<result property="FLOW_ORDER" column="FLOW_ORDER" />
<result property="FLOW_CODE" column="FLOW_CODE" />
</resultMap>
</resultMaps>
<statements>
<select id="SYS_FLOW_SELECT" parameterClass="int" resultMap="SelectResult">
select
FLOW_ID,
FLOW_TYPE,
FLOW_NAME,
FLOW_EVENT,
FLOW_FLAG,
FLOW_ORDER,
FLOW_CODE
from SYS_FLOW
</select>
<select id="SYS_FLOW_SELECT_BY_ID" parameterClass="int"
extends="SYS_FLOW_SELECT" resultMap="SelectResult">
where FLOW_ID=#FLOW_ID#
</select>
<insert id="SYS_FLOW_INSERT_SQLSERVER" parameterClass="SYS_FLOW">
insert into SYS_FLOW (
FLOW_TYPE,
FLOW_NAME,
FLOW_EVENT,
FLOW_FLAG,
FLOW_ORDER,
FLOW_CODE
)values(
#FLOW_TYPE#,
#FLOW_NAME#,
#FLOW_EVENT#,
#FLOW_FLAG#,
#FLOW_ORDER#,
#FLOW_CODE#
)
<selectKey resultClass="int" type="post" property="FLOW_ID">
select @@IDENTITY as value
</selectKey>
</insert>
<insert id="SYS_FLOW_INSERT_ORACLE" parameterClass="SYS_FLOW">
insert into SYS_FLOW (
FLOW_ID,
FLOW_TYPE,
FLOW_NAME,
FLOW_EVENT,
FLOW_FLAG,
FLOW_ORDER,
FLOW_CODE
)values(
#FLOW_ID#,
#FLOW_TYPE#,
#FLOW_NAME#,
#FLOW_EVENT#,
#FLOW_FLAG#,
#FLOW_ORDER#,
#FLOW_CODE#
)
<selectKey resultClass="int" type="pre" property="FLOW_ID">
select SYS_FLOW_SEQ.nextval as value from DUAL
</selectKey>
</insert>
<update id="SYS_FLOW_UPDATE" parameterClass="SYS_FLOW">
update SYS_FLOW set
FLOW_TYPE=#FLOW_TYPE#,
FLOW_NAME=#FLOW_NAME#,
FLOW_EVENT=#FLOW_EVENT#,
FLOW_FLAG=#FLOW_FLAG#,
FLOW_ORDER=#FLOW_ORDER#,
FLOW_CODE=#FLOW_CODE#
where FLOW_ID=#FLOW_ID#
</update>
<delete id="SYS_FLOW_DELETE" parameterClass="int">
delete from SYS_FLOW
where FLOW_ID=#FLOW_ID#
</delete>
</statements>
</sqlMap>