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

mapper.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="Order">
    <insert id="SAVE" parameterType="order">
    	insert into wf_order (id,process_Id,creator,create_Time,parent_Id,parent_Node_Name,expire_Time,last_Update_Time,last_Updator,order_No,variable,version)
    	values (#{id, jdbcType=VARCHAR},#{processId, jdbcType=VARCHAR},#{creator, jdbcType=VARCHAR},#{createTime, jdbcType=VARCHAR},#{parentId, jdbcType=VARCHAR},
    	#{parentNodeName, jdbcType=VARCHAR},#{expireTime, jdbcType=VARCHAR},#{lastUpdateTime, jdbcType=VARCHAR},#{lastUpdator, jdbcType=VARCHAR},
    	#{orderNo, jdbcType=VARCHAR},#{variable, jdbcType=VARCHAR},0)
    </insert>
    <update id="UPDATE" parameterType="order">
    	update wf_order set last_Updator=#{lastUpdator, jdbcType=VARCHAR}, last_Update_Time=#{lastUpdateTime, jdbcType=VARCHAR}, version = version + 1 
    	where id=#{id, jdbcType=VARCHAR} and version=#{version, jdbcType=NUMERIC}
    </update>
    <delete id="DELETE" parameterType="string">
    	delete from wf_order where id = #{id, jdbcType=VARCHAR}
    </delete>
    <select id="SELECTONE" parameterType="string" resultType="order">
    	select 
    		id,
    		process_Id as processId,
    		creator,
    		create_Time as createTime,
    		parent_Id as parentId,
    		parent_Node_Name as parentNodeName,
    		expire_Time as expireTime,
    		last_Update_Time as lastUpdateTime,
    		last_Updator as lastUpdator,
    		priority,
    		order_No as orderNo,
    		variable,
    		version
    	from wf_order 
    	where id = #{id, jdbcType=VARCHAR}
    </select>
    <select id="SELECTLIST" resultType="order">
    	select 
    		id,
    		process_Id as process_Id,
    		creator,
    		create_Time as create_Time,
    		parent_Id as parentId,
    		parent_Node_Name as parentNodeName,
    		expire_Time as expireTime,
    		last_Update_Time as lastUpdateTime,
    		last_Updator as lastUpdator,
    		priority,
    		order_No as orderNo,
    		variable,
    		version
    	from wf_order
    </select>
</mapper>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy