|
@@ -0,0 +1,112 @@
|
|
|
+<?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="com.platform.dao.mapper.activiti.LocalAuditRecordMapper">
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ store.id,
|
|
|
+ store.target_id,
|
|
|
+ store.target_name,
|
|
|
+ store.target_code,
|
|
|
+ store.process_instance_id,
|
|
|
+ store.created_user_id,
|
|
|
+ store.created_user_name,
|
|
|
+ store.task_id,
|
|
|
+ store.no,
|
|
|
+ store.opinion,
|
|
|
+ store.update_user_id,
|
|
|
+ store.update_user_name,
|
|
|
+ store.self,
|
|
|
+ store.apply_time,
|
|
|
+ store.create_time,
|
|
|
+ store.update_time
|
|
|
+ </sql>
|
|
|
+ <sql id="Ref_Column_List">
|
|
|
+ store.target_id,
|
|
|
+ store.target_name,
|
|
|
+ store.target_code,
|
|
|
+ store.process_instance_id,
|
|
|
+ store.task_id,
|
|
|
+ store.no,
|
|
|
+ store.opinion,
|
|
|
+ store.self,
|
|
|
+ store.apply_time,
|
|
|
+ store.create_time,
|
|
|
+ </sql>
|
|
|
+ <sql id="List_Condition">
|
|
|
+ <if test="id != null and id != ''">
|
|
|
+ and store.id = #{id}
|
|
|
+ </if>
|
|
|
+ <if test="targetId != null and targetId != ''">
|
|
|
+ and store.target_id = #{targetId}
|
|
|
+ </if>
|
|
|
+ <if test="targetName != null and targetName != ''">
|
|
|
+ and store.target_name = #{targetName}
|
|
|
+ </if>
|
|
|
+ <if test="targetCode != null and targetCode != ''">
|
|
|
+ and store.target_code = #{targetCode}
|
|
|
+ </if>
|
|
|
+ <if test="processInstanceId != null and processInstanceId != ''">
|
|
|
+ and store.process_instance_id = #{processInstanceId}
|
|
|
+ </if>
|
|
|
+ <if test="createdUserId != null and createdUserId != ''">
|
|
|
+ and store.created_user_id = #{createdUserId}
|
|
|
+ </if>
|
|
|
+ <if test="createdUserName != null and createdUserName != ''">
|
|
|
+ and store.created_user_name = #{createdUserName}
|
|
|
+ </if>
|
|
|
+ <if test="taskid != null and taskid != ''">
|
|
|
+ and store.task_id = #{taskid}
|
|
|
+ </if>
|
|
|
+ <if test="no != null and no != ''">
|
|
|
+ and store.no = #{no}
|
|
|
+ </if>
|
|
|
+ <if test="opinion != null and opinion != ''">
|
|
|
+ and store.opinion = #{opinion}
|
|
|
+ </if>
|
|
|
+ <if test="updateUserId != null and updateUserId != ''">
|
|
|
+ and store.update_user_id = #{updateUserId}
|
|
|
+ </if>
|
|
|
+ <if test="updateUserName != null and updateUserName != ''">
|
|
|
+ and store.update_user_name = #{updateUserName}
|
|
|
+ </if>
|
|
|
+ <if test="self != null">
|
|
|
+ and store.self = #{self}
|
|
|
+ </if>
|
|
|
+ <if test="applyTimeStart != null">
|
|
|
+ and store.apply_time <![CDATA[>=]]>; #{applyTimeStart}
|
|
|
+ </if>
|
|
|
+ <if test="applyTimeEnd != null">
|
|
|
+ and store.apply_time <![CDATA[<=]]> #{applyTimeEnd}
|
|
|
+ </if>
|
|
|
+ <if test="applyTime != null">
|
|
|
+ and store.apply_time = #{applyTime}
|
|
|
+ </if>
|
|
|
+ <if test="createTimeStart != null">
|
|
|
+ and store.create_time <![CDATA[>=]]>; #{createTimeStart}
|
|
|
+ </if>
|
|
|
+ <if test="createTimeEnd != null">
|
|
|
+ and store.create_time <![CDATA[<=]]> #{createTimeEnd}
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ and store.create_time = #{createTime}
|
|
|
+ </if>
|
|
|
+ <if test="updateTimeStart != null">
|
|
|
+ and store.update_time <![CDATA[>=]]>; #{updateTimeStart}
|
|
|
+ </if>
|
|
|
+ <if test="updateTimeEnd != null">
|
|
|
+ and store.update_time <![CDATA[<=]]> #{updateTimeEnd}
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ and store.update_time = #{updateTime}
|
|
|
+ </if>
|
|
|
+ <if test="keyword != null and keyword != ''">
|
|
|
+ and store.no like concat(concat('%',#{keyword}),'%')
|
|
|
+ </if>
|
|
|
+ </sql>
|
|
|
+ <select id="selectList" parameterType="com.platform.dao.dto.activiti.LocalAuditRecordDTO"
|
|
|
+ resultType="com.platform.dao.vo.query.activiti.LocalAuditRecordVO">
|
|
|
+ select store.*,data.status,data.created_user_name as userName from t_local_audit_record as store join t_custom_field_template_data data on store.target_id = data.id
|
|
|
+ <where>
|
|
|
+ <include refid="List_Condition"/>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+</mapper>
|