<?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" >
|
<!-- Table:ubp_process_log -->
|
<mapper namespace="com.changhong.epc.demo.mapper.tenant.log.ProcessLogMapper">
|
<resultMap id="processLogMapperResultMap" type="com.changhong.epc.bean.tenant.log.ProcessLog">
|
<id property="id" column="id"/><!-- 主键id -->
|
<result property="processDefId" column="process_def_id"/><!-- 流程定义id -->
|
<result property="processInstId" column="process_inst_id"/><!-- 流程实例id -->
|
<result property="activityInstId" column="activity_inst_id"/><!-- 活动实例id -->
|
<result property="activityDefId" column="activity_def_id"/><!-- 活动定义id -->
|
<result property="workItemId" column="work_item_id"/><!-- 工作项id -->
|
<result property="activityDefName" column="activity_def_name"/><!-- 活动定义名称 -->
|
<result property="participantId" column="participant_id"/><!-- 执行人id -->
|
<result property="participantName" column="participant_name"/><!-- 执行人名称 -->
|
<result property="limitNum" column="limit_num"/><!-- 超时时间 -->
|
<result property="data" column="data"/><!-- 审批语 -->
|
<result property="level" column="level"/><!-- 记录级别 -->
|
<result property="insT" column="ins_t"/><!-- 创建时间 -->
|
<result property="updT" column="upd_t"/><!-- 修改时间 -->
|
<result property="insP" column="ins_p"/><!-- 创建人 -->
|
<result property="updP" column="upd_p"/><!-- 修改人 -->
|
<result property="dataStart" column="data_start"/><!-- 数据状态 -->
|
<result property="timeOut" column="time_out"/>
|
</resultMap>
|
<sql id="processLogSql">
|
id,
|
process_def_id,
|
process_inst_id,
|
activity_inst_id,
|
activity_def_id,
|
work_item_id,
|
activity_def_name,
|
participant_id,
|
participant_name,
|
limit_num,
|
data,
|
level,
|
ins_t,
|
upd_t,
|
ins_p,
|
upd_p,
|
data_start,
|
time_out
|
</sql>
|
|
<select id="selectByProcessLogPage" parameterType="com.changhong.epc.bean.tenant.log.ProcessLog" resultMap="processLogMapperResultMap">
|
SELECT
|
<include refid="processLogSql"/>
|
FROM ubp_process_log
|
<trim prefix="WHERE" prefixOverrides="AND | OR">
|
<if test="id != null">
|
AND id = #{id} <!-- 主键id -->
|
</if>
|
<if test="processDefId != null">
|
AND process_def_id = #{processDefId} <!-- 流程定义id -->
|
</if>
|
<if test="processInstId != null">
|
AND process_inst_id = #{processInstId} <!-- 流程实例id -->
|
</if>
|
<if test="activityInstId != null">
|
AND activity_inst_id = #{activityInstId} <!-- 活动实例id -->
|
</if>
|
<if test="activityDefId != null">
|
AND activity_def_id = #{activityDefId} <!-- 活动定义id -->
|
</if>
|
<if test="workItemId != null">
|
AND work_item_id = #{workItemId} <!-- 工作项id -->
|
</if>
|
<if test="activityDefName != null">
|
AND activity_def_name = #{activityDefName} <!-- 活动定义名称 -->
|
</if>
|
<if test="participantId != null">
|
AND participant_id = #{participantId} <!-- 执行人id -->
|
</if>
|
<if test="participantName != null">
|
AND participant_name = #{participantName} <!-- 执行人名称 -->
|
</if>
|
<if test="limitNum != null">
|
AND limit_num = #{limitNum} <!-- 超时时间 -->
|
</if>
|
<if test="data != null">
|
AND data = #{data} <!-- 审批语 -->
|
</if>
|
<if test="level != null">
|
AND level = #{level} <!-- 记录级别 -->
|
</if>
|
<if test="insT != null">
|
AND ins_t = #{insT} <!-- 创建时间 -->
|
</if>
|
<if test="updT != null">
|
AND upd_t = #{updT} <!-- 修改时间 -->
|
</if>
|
<if test="insP != null">
|
AND ins_p = #{insP} <!-- 创建人 -->
|
</if>
|
<if test="updP != null">
|
AND upd_p = #{updP} <!-- 修改人 -->
|
</if>
|
<if test="dataStart != null">
|
AND data_start = #{dataStart} <!-- 数据状态 -->
|
</if>
|
</trim>
|
</select>
|
</mapper>
|