|
@@ -0,0 +1,97 @@
|
|
|
+<?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.workflow.WorkflowConditionSwitchMapper">
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ conditionSwitch
|
|
|
+ .
|
|
|
+ id
|
|
|
+ ,
|
|
|
+ conditionSwitch.created_user_id,
|
|
|
+ conditionSwitch.update_user_id,
|
|
|
+ conditionSwitch.created_time,
|
|
|
+ conditionSwitch.update_time,
|
|
|
+ conditionSwitch.created_user_name,
|
|
|
+ conditionSwitch.update_user_name,
|
|
|
+ conditionSwitch.flow_id,
|
|
|
+ conditionSwitch.node_level,
|
|
|
+ conditionSwitch.node_sort,
|
|
|
+ conditionSwitch.switch_type,
|
|
|
+ conditionSwitch.class_name,
|
|
|
+ conditionSwitch.method_name
|
|
|
+ </sql>
|
|
|
+ <sql id="Ref_Column_List">
|
|
|
+ conditionSwitch
|
|
|
+ .
|
|
|
+ flow_id
|
|
|
+ ,
|
|
|
+ conditionSwitch.node_level,
|
|
|
+ conditionSwitch.node_sort,
|
|
|
+ conditionSwitch.switch_type,
|
|
|
+ conditionSwitch.class_name,
|
|
|
+ conditionSwitch.method_name
|
|
|
+ </sql>
|
|
|
+ <sql id="List_Condition">
|
|
|
+ <if test="id != null and id != ''">
|
|
|
+ and conditionSwitch.id = #{id}
|
|
|
+ </if>
|
|
|
+ <if test="createdUserId != null and createdUserId != ''">
|
|
|
+ and conditionSwitch.created_user_id = #{createdUserId}
|
|
|
+ </if>
|
|
|
+ <if test="updateUserId != null and updateUserId != ''">
|
|
|
+ and conditionSwitch.update_user_id = #{updateUserId}
|
|
|
+ </if>
|
|
|
+ <if test="createdTimeStart != null">
|
|
|
+ and conditionSwitch.created_time <![CDATA[>=]]>; #{createdTimeStart}
|
|
|
+ </if>
|
|
|
+ <if test="createdTimeEnd != null">
|
|
|
+ and conditionSwitch.created_time <![CDATA[<=]]> #{createdTimeEnd}
|
|
|
+ </if>
|
|
|
+ <if test="createdTime != null">
|
|
|
+ and conditionSwitch.created_time = #{createdTime}
|
|
|
+ </if>
|
|
|
+ <if test="updateTimeStart != null">
|
|
|
+ and conditionSwitch.update_time <![CDATA[>=]]>; #{updateTimeStart}
|
|
|
+ </if>
|
|
|
+ <if test="updateTimeEnd != null">
|
|
|
+ and conditionSwitch.update_time <![CDATA[<=]]> #{updateTimeEnd}
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ and conditionSwitch.update_time = #{updateTime}
|
|
|
+ </if>
|
|
|
+ <if test="createdUserName != null and createdUserName != ''">
|
|
|
+ and conditionSwitch.created_user_name = #{createdUserName}
|
|
|
+ </if>
|
|
|
+ <if test="updateUserName != null and updateUserName != ''">
|
|
|
+ and conditionSwitch.update_user_name = #{updateUserName}
|
|
|
+ </if>
|
|
|
+ <if test="flowId != null and flowId != ''">
|
|
|
+ and conditionSwitch.flow_id = #{flowId}
|
|
|
+ </if>
|
|
|
+ <if test="nodeLevel != null">
|
|
|
+ and conditionSwitch.node_level = #{nodeLevel}
|
|
|
+ </if>
|
|
|
+ <if test="nodeSort != null">
|
|
|
+ and conditionSwitch.node_sort = #{nodeSort}
|
|
|
+ </if>
|
|
|
+ <if test="switchType != null and switchType != ''">
|
|
|
+ and conditionSwitch.switch_type = #{switchType}
|
|
|
+ </if>
|
|
|
+ <if test="className != null and className != ''">
|
|
|
+ and conditionSwitch.class_name = #{className}
|
|
|
+ </if>
|
|
|
+ <if test="methodName != null and methodName != ''">
|
|
|
+ and conditionSwitch.method_name = #{methodName}
|
|
|
+ </if>
|
|
|
+ <if test="keyword != null and keyword != ''">
|
|
|
+ and conditionSwitch.id like concat(concat('%',#{keyword}),'%')
|
|
|
+ </if>
|
|
|
+ </sql>
|
|
|
+ <select id="selectList" parameterType="com.platform.dao.dto.workflow.WorkflowConditionSwitchDTO"
|
|
|
+ resultType="com.platform.dao.vo.query.workflow.WorkflowConditionSwitchVO">
|
|
|
+ select conditionSwitch.*
|
|
|
+ from t_workflow_condition_switch as conditionSwitch
|
|
|
+ <where>
|
|
|
+ <include refid="List_Condition"/>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+</mapper>
|