|
@@ -0,0 +1,60 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
+<!DOCTYPE mapper
|
|
|
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
+ "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+<mapper namespace="org.hswebframework.web.workflow.dao.ProcessHistoryDao">
|
|
|
+ <resultMap id="ProcessHistoryEntityResultMap" type="org.hswebframework.web.workflow.dao.entity.ProcessHistoryEntity">
|
|
|
+ <id property="id" column="u_id" javaType="string" jdbcType="VARCHAR"/>
|
|
|
+ <result property="type" column="type" javaType="String" jdbcType="VARCHAR"/>
|
|
|
+ <result property="typeText" column="type_text" javaType="String" jdbcType="VARCHAR"/>
|
|
|
+ <result property="processDefineId" column="proc_def_id" javaType="String" jdbcType="VARCHAR"/>
|
|
|
+ <result property="processInstanceId" column="proc_ins_id" javaType="String" jdbcType="VARCHAR"/>
|
|
|
+ <result property="taskId" column="task_id" javaType="String" jdbcType="VARCHAR"/>
|
|
|
+ <result property="taskDefineKey" column="task_def_key" javaType="String" jdbcType="VARCHAR"/>
|
|
|
+
|
|
|
+ <result property="taskName" column="task_name" javaType="String" jdbcType="VARCHAR"/>
|
|
|
+
|
|
|
+ <result property="businessKey" column="biz_key" javaType="String" jdbcType="VARCHAR"/>
|
|
|
+ <result property="data" column="biz_data" javaType="java.util.Map" jdbcType="CLOB"/>
|
|
|
+
|
|
|
+ <result property="createTime" column="create_time" javaType="date" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="creatorId" column="creator_id" javaType="String" jdbcType="VARCHAR"/>
|
|
|
+ <result property="creatorName" column="creator_name" javaType="String" jdbcType="VARCHAR"/>
|
|
|
+
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <!--用于动态生成sql所需的配置-->
|
|
|
+ <sql id="config">
|
|
|
+ <bind name="resultMapId" value="'ProcessHistoryEntityResultMap'"/>
|
|
|
+ <bind name="tableName" value="'s_wf_proc_his'"/>
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <insert id="insert" parameterType="org.hswebframework.web.workflow.dao.entity.ProcessHistoryEntity">
|
|
|
+ <include refid="config"/>
|
|
|
+ <include refid="BasicMapper.buildInsertSql"/>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <delete id="deleteByPk" parameterType="String">
|
|
|
+ delete from s_wf_proc_his where u_id =#{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="delete" parameterType="org.hswebframework.web.commons.entity.Entity">
|
|
|
+ <include refid="config"/>
|
|
|
+ <include refid="BasicMapper.buildDeleteSql"/>
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <update id="update" parameterType="org.hswebframework.web.commons.entity.Entity">
|
|
|
+ <include refid="config"/>
|
|
|
+ <include refid="BasicMapper.buildUpdateSql"/>
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <select id="query" parameterType="org.hswebframework.web.commons.entity.Entity" resultMap="ProcessHistoryEntityResultMap">
|
|
|
+ <include refid="config"/>
|
|
|
+ <include refid="BasicMapper.buildSelectSql"/>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="count" parameterType="org.hswebframework.web.commons.entity.Entity" resultType="int">
|
|
|
+ <include refid="config"/>
|
|
|
+ <include refid="BasicMapper.buildTotalSql"/>
|
|
|
+ </select>
|
|
|
+</mapper>
|