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.
178 lines
5.2 KiB
178 lines
5.2 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<sqlMap namespace="IO_CONTROL_APPLY" xmlns="http://ibatis.apache.org/mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
<alias>
|
|
<typeAlias alias="IO_CONTROL_APPLY" type="SSWMS.Common.IO_CONTROL_APPLY, SSWMS.Common" />
|
|
</alias>
|
|
<resultMaps>
|
|
<resultMap id="SelectResult" class="IO_CONTROL_APPLY">
|
|
<result property="APPLY_ID" column="APPLY_ID" />
|
|
<result property="CONTROL_APPLY_TYPE" column="CONTROL_APPLY_TYPE" />
|
|
<result property="DEVICE_CODE" column="DEVICE_CODE" />
|
|
<result property="APPLY_TASK_STATUS" column="APPLY_TASK_STATUS" />
|
|
<result property="ERROR_TEXT" column="ERROR_TEXT" />
|
|
<result property="STOCK_BARCODE" column="STOCK_BARCODE" />
|
|
<result property="GOODS_CODE" column="GOODS_CODE" />
|
|
<result property="CREATE_TIME" column="CREATE_TIME" />
|
|
<result property="CONTROL_APPLY_REMARK" column="CONTROL_APPLY_REMARK" />
|
|
<result property="CELL_MODEL" column="CELL_MODEL" />
|
|
<result property="STOCK_WEIGHT" column="STOCK_WEIGHT" />
|
|
<result property="STOCK_COUNT" column="STOCK_COUNT" />
|
|
</resultMap>
|
|
</resultMaps>
|
|
<statements>
|
|
<select id="IO_CONTROL_APPLY_SELECT" parameterClass="int" resultMap="SelectResult">
|
|
select
|
|
APPLY_ID,
|
|
CONTROL_APPLY_TYPE,
|
|
DEVICE_CODE,
|
|
APPLY_TASK_STATUS,
|
|
ERROR_TEXT,
|
|
STOCK_BARCODE,
|
|
GOODS_CODE,
|
|
CREATE_TIME,
|
|
CONTROL_APPLY_REMARK,
|
|
CELL_MODEL,
|
|
STOCK_WEIGHT,
|
|
STOCK_COUNT
|
|
from IO_CONTROL_APPLY
|
|
</select>
|
|
<select id="IO_CONTROL_APPLY_SELECT_BY_ID" parameterClass="int"
|
|
extends="IO_CONTROL_APPLY_SELECT" resultMap="SelectResult">
|
|
where APPLY_ID=#APPLY_ID#
|
|
</select>
|
|
<select id="IO_CONTROL_APPLY_SELECT_BY_STATUS" parameterClass="int"
|
|
extends="IO_CONTROL_APPLY_SELECT" resultMap="SelectResult">
|
|
where APPLY_TASK_STATUS=#APPLY_TASK_STATUS# order by APPLY_ID
|
|
</select>
|
|
<insert id="IO_CONTROL_APPLY_INSERT_SQLSERVER" parameterClass="IO_CONTROL_APPLY">
|
|
insert into IO_CONTROL_APPLY (
|
|
CONTROL_APPLY_TYPE,
|
|
DEVICE_CODE,
|
|
APPLY_TASK_STATUS,
|
|
ERROR_TEXT,
|
|
STOCK_BARCODE,
|
|
GOODS_CODE,
|
|
CREATE_TIME,
|
|
CONTROL_APPLY_REMARK,
|
|
CELL_MODEL,
|
|
STOCK_WEIGHT,
|
|
STOCK_COUNT
|
|
)values(
|
|
#CONTROL_APPLY_TYPE#,
|
|
#DEVICE_CODE#,
|
|
#APPLY_TASK_STATUS#,
|
|
#ERROR_TEXT#,
|
|
#STOCK_BARCODE#,
|
|
#GOODS_CODE#,
|
|
#CREATE_TIME#,
|
|
#CONTROL_APPLY_REMARK#,
|
|
#CELL_MODEL#,
|
|
#STOCK_WEIGHT#,
|
|
#STOCK_COUNT#
|
|
)
|
|
<selectKey resultClass="int" type="post" property="APPLY_ID">
|
|
select @@IDENTITY as value
|
|
</selectKey>
|
|
</insert>
|
|
<insert id="IO_CONTROL_APPLY_INSERT_ORACLE" parameterClass="IO_CONTROL_APPLY">
|
|
insert into IO_CONTROL_APPLY (
|
|
APPLY_ID,
|
|
CONTROL_APPLY_TYPE,
|
|
DEVICE_CODE,
|
|
APPLY_TASK_STATUS,
|
|
ERROR_TEXT,
|
|
STOCK_BARCODE,
|
|
GOODS_CODE,
|
|
CREATE_TIME,
|
|
CONTROL_APPLY_REMARK,
|
|
CELL_MODEL,
|
|
STOCK_WEIGHT,
|
|
STOCK_COUNT
|
|
)values(
|
|
#APPLY_ID#,
|
|
#CONTROL_APPLY_TYPE#,
|
|
#DEVICE_CODE#,
|
|
#APPLY_TASK_STATUS#,
|
|
#ERROR_TEXT#,
|
|
#STOCK_BARCODE#,
|
|
#GOODS_CODE#,
|
|
#CREATE_TIME#,
|
|
#CONTROL_APPLY_REMARK#,
|
|
#CELL_MODEL#,
|
|
#STOCK_WEIGHT#,
|
|
#STOCK_COUNT#
|
|
)
|
|
<selectKey resultClass="int" type="pre" property="APPLY_ID">
|
|
select IO_CONTROL_APPLY_SEQ.nextval as value from DUAL
|
|
</selectKey>
|
|
</insert>
|
|
<insert id="IO_CONTROL_APPLY_HIS_INSERT_SQLSERVER" parameterClass="IO_CONTROL_APPLY">
|
|
insert into IO_CONTROL_APPLY_HIS (
|
|
APPLY_ID,
|
|
CONTROL_APPLY_TYPE,
|
|
DEVICE_CODE,
|
|
APPLY_TASK_STATUS,
|
|
ERROR_TEXT,
|
|
STOCK_BARCODE,
|
|
GOODS_CODE,
|
|
CREATE_TIME,
|
|
CONTROL_APPLY_REMARK,
|
|
CELL_MODEL,
|
|
STOCK_WEIGHT,
|
|
STOCK_COUNT
|
|
)values(
|
|
#APPLY_ID#,
|
|
#CONTROL_APPLY_TYPE#,
|
|
#DEVICE_CODE#,
|
|
#APPLY_TASK_STATUS#,
|
|
#ERROR_TEXT#,
|
|
#STOCK_BARCODE#,
|
|
#GOODS_CODE#,
|
|
#CREATE_TIME#,
|
|
#CONTROL_APPLY_REMARK#,
|
|
#CELL_MODEL#,
|
|
#STOCK_WEIGHT#,
|
|
#STOCK_COUNT#
|
|
)
|
|
</insert>
|
|
<insert id="IO_CONTROL_APPLY_HIS_INSERT_ORACLE" parameterClass="IO_CONTROL_APPLY">
|
|
insert into IO_CONTROL_APPLY_HIS (
|
|
APPLY_ID,
|
|
CONTROL_APPLY_TYPE,
|
|
DEVICE_CODE,
|
|
APPLY_TASK_STATUS,
|
|
ERROR_TEXT,
|
|
STOCK_BARCODE,
|
|
GOODS_CODE,
|
|
CREATE_TIME,
|
|
CONTROL_APPLY_REMARK,
|
|
CELL_MODEL,
|
|
STOCK_WEIGHT,
|
|
STOCK_COUNT
|
|
)values(
|
|
#APPLY_ID#,
|
|
#CONTROL_APPLY_TYPE#,
|
|
#DEVICE_CODE#,
|
|
#APPLY_TASK_STATUS#,
|
|
#ERROR_TEXT#,
|
|
#STOCK_BARCODE#,
|
|
#GOODS_CODE#,
|
|
#CREATE_TIME#,
|
|
#CONTROL_APPLY_REMARK#,
|
|
#CELL_MODEL#,
|
|
#STOCK_WEIGHT#,
|
|
#STOCK_COUNT#
|
|
)
|
|
</insert>
|
|
<update id="IO_CONTROL_APPLY_UPDATE" parameterClass="IO_CONTROL_APPLY">
|
|
update IO_CONTROL_APPLY set
|
|
APPLY_TASK_STATUS=#APPLY_TASK_STATUS#,
|
|
ERROR_TEXT=#ERROR_TEXT#
|
|
where APPLY_ID=#APPLY_ID#
|
|
</update>
|
|
<delete id="IO_CONTROL_APPLY_DELETE" parameterClass="int">
|
|
delete from IO_CONTROL_APPLY
|
|
where APPLY_ID=#APPLY_ID#
|
|
</delete>
|
|
</statements>
|
|
</sqlMap>
|