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

mapper.task.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="Task">
    <insert id="SAVE" parameterType="task">
    	insert into wf_task (id,order_Id,task_Name,display_Name,task_Type,perform_Type,operator,create_Time,finish_Time,expire_Time,action_Url,parent_Task_Id,variable,version)
    	values (#{id, jdbcType=VARCHAR},#{orderId, jdbcType=VARCHAR},#{taskName, jdbcType=VARCHAR},
    	#{displayName, jdbcType=VARCHAR},#{taskType, jdbcType=NUMERIC},
    	#{performType, jdbcType=NUMERIC},#{operator, jdbcType=VARCHAR},
    	#{createTime, jdbcType=VARCHAR},#{finishTime, jdbcType=VARCHAR},
    	#{expireTime, jdbcType=VARCHAR},#{actionUrl, jdbcType=VARCHAR},
    	#{parentTaskId, jdbcType=VARCHAR},#{variable, jdbcType=VARCHAR},0)
    </insert>
    <update id="UPDATE" parameterType="task">
    	update wf_task set finish_Time=#{finishTime, jdbcType=VARCHAR}, operator=#{operator, jdbcType=VARCHAR}, version = version + 1  
    	where id=#{id, jdbcType=VARCHAR} and version=#{version, jdbcType=NUMERIC}
    </update>
    <delete id="DELETE" parameterType="string">
    	delete from wf_task where id = #{id, jdbcType=VARCHAR}
    </delete>
    <select id="SELECTONE" parameterType="string" resultType="task">
        select 
            id,
            order_Id as orderId,
            task_Name as taskName,
            display_Name as displayName,
            task_Type as taskType,
            perform_Type as performType,
            operator,
            create_Time as createTime,
            finish_Time as finishTime,
            expire_Time as expireTime,
            action_Url as actionUrl,
            parent_Task_Id as parentTaskId,
            variable,
            version
        from wf_task 
    	where id = #{id, jdbcType=VARCHAR}
    </select>
    <select id="SELECTBYPARENT" parameterType="string" resultType="task">
        select 
            id,
            order_Id as orderId,
            task_Name as taskName,
            display_Name as displayName,
            task_Type as taskType,
            perform_Type as performType,
            operator,
            create_Time as createTime,
            finish_Time as finishTime,
            expire_Time as expireTime,
            action_Url as actionUrl,
            parent_Task_Id as parentTaskId,
            variable,
            version
        from wf_task  
    	where parent_Task_Id = #{id, jdbcType=VARCHAR}
    </select>
    <select id="SELECTLIST" resultType="task">
        select 
            id,
            order_Id as orderId,
            task_Name as taskName,
            display_Name as displayName,
            task_Type as taskType,
            perform_Type as performType,
            operator,
            create_Time as createTime,
            finish_Time as finishTime,
            expire_Time as expireTime,
            action_Url as actionUrl,
            parent_Task_Id as parentTaskId,
            variable,
            version
        from wf_task  
    </select>
</mapper>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy