All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mapper.hist-order.xml Maven / Gradle / Ivy

There is a newer version: 2.5.1
Show newest version
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
  PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="HistoryOrder">
    <insert id="SAVE" parameterType="historyorder">
    	insert into wf_hist_order (id,process_Id,creator,create_Time,parent_Id,order_State,expire_Time,end_Time,order_No,variable)
    	values (#{id, jdbcType=VARCHAR},#{processId, jdbcType=VARCHAR},#{creator, jdbcType=VARCHAR},#{createTime, jdbcType=VARCHAR},#{parentId, jdbcType=VARCHAR},
    	#{orderState, jdbcType=NUMERIC},#{expireTime, jdbcType=VARCHAR},#{endTime, jdbcType=VARCHAR},#{orderNo, jdbcType=VARCHAR},#{variable, jdbcType=VARCHAR})
    </insert>
    <update id="UPDATE" parameterType="historyorder">
    	update wf_hist_order set order_State = #{orderState, jdbcType=NUMERIC}, end_Time = #{endTime, jdbcType=VARCHAR} where id = #{id, jdbcType=VARCHAR}
    </update>
    <select id="SELECTONE" parameterType="string" resultType="historyorder">
    	select 
    		id,
    		process_Id as processId,
    		order_State as orderState,
    		creator,
    		create_Time as createTime,
    		parent_Id as parentId,
    		expire_Time as expireTime,
    		end_Time as endTime,
    		priority,
    		order_No as orderNo,
    		variable
    	from wf_hist_order 
    	where id = #{id, jdbcType=VARCHAR}
    </select>
    <select id="SELECTLIST" resultType="order">
     	select 
    		id,
    		process_Id as processId,
    		order_State as orderState,
    		creator,
    		create_Time as createTime,
    		parent_Id as parentId,
    		expire_Time as expireTime,
    		end_Time as endTime,
    		priority,
    		order_No as orderNo,
    		variable
    	from wf_hist_order 
    </select>
</mapper>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy