| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?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.ruoyi.interfaces.mapper.MdAppFlowMapper">
- <resultMap type="com.ruoyi.interfaces.domain.MdAppFlow" id="MdAppFlowResult">
- <result property="flowId" column="FLOW_ID" />
- <result property="appId" column="APP_ID" />
- <result property="flowName" column="FLOW_NAME" />
- <result property="flowGraph" column="FLOW_GRAPH" />
- <result property="flowType" column="FLOW_TYPE" />
- <result property="flowNote" column="FLOW_NOTE" />
- <result property="flowStatus" column="FLOW_STATUS" />
- <result property="flowSort" column="FLOW_SORT" />
- <result property="createBy" column="CREATE_BY" />
- <result property="createTime" column="CREATE_TIME" />
- <result property="updateBy" column="UPDATE_BY" />
- <result property="updateTime" column="UPDATE_TIME" />
- </resultMap>
- <sql id="selectMdAppFlowVo">
- select FLOW_ID, APP_ID, FLOW_NAME, FLOW_GRAPH, FLOW_TYPE, FLOW_NOTE, FLOW_STATUS, FLOW_SORT, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME from md_app_flow
- </sql>
- <select id="selectMdAppFlowList" parameterType="com.ruoyi.interfaces.domain.MdAppFlow" resultMap="MdAppFlowResult">
- <include refid="selectMdAppFlowVo"/>
- <where>
- <if test="appId != null and appId != ''"> and APP_ID = #{appId}</if>
- <if test="flowName != null and flowName != ''"> and FLOW_NAME like concat('%', #{flowName}, '%')</if>
- <if test="flowGraph != null and flowGraph != ''"> and FLOW_GRAPH = #{flowGraph}</if>
- <if test="flowType != null and flowType != ''"> and FLOW_TYPE = #{flowType}</if>
- <if test="flowNote != null and flowNote != ''"> and FLOW_NOTE = #{flowNote}</if>
- <if test="flowStatus != null "> and FLOW_STATUS = #{flowStatus}</if>
- <if test="flowSort != null "> and FLOW_SORT = #{flowSort}</if>
- <if test="createBy != null and createBy != ''"> and CREATE_BY = #{createBy}</if>
- <if test="createTime != null "> and CREATE_TIME = #{createTime}</if>
- <if test="updateBy != null and updateBy != ''"> and UPDATE_BY = #{updateBy}</if>
- <if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
- </where>
- </select>
- <select id="selectMdAppFlowByFlowId" parameterType="Long" resultMap="MdAppFlowResult">
- <include refid="selectMdAppFlowVo"/>
- where FLOW_ID = #{flowId}
- </select>
- <insert id="insertMdAppFlow" parameterType="com.ruoyi.interfaces.domain.MdAppFlow" useGeneratedKeys="true" keyProperty="flowId">
- insert into md_app_flow
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="appId != null and appId != ''">APP_ID,</if>
- <if test="flowName != null and flowName != ''">FLOW_NAME,</if>
- <if test="flowGraph != null">FLOW_GRAPH,</if>
- <if test="flowType != null">FLOW_TYPE,</if>
- <if test="flowNote != null">FLOW_NOTE,</if>
- <if test="flowStatus != null">FLOW_STATUS,</if>
- <if test="flowSort != null">FLOW_SORT,</if>
- <if test="createBy != null">CREATE_BY,</if>
- <if test="createTime != null">CREATE_TIME,</if>
- <if test="updateBy != null">UPDATE_BY,</if>
- <if test="updateTime != null">UPDATE_TIME,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="appId != null and appId != ''">#{appId},</if>
- <if test="flowName != null and flowName != ''">#{flowName},</if>
- <if test="flowGraph != null">#{flowGraph},</if>
- <if test="flowType != null">#{flowType},</if>
- <if test="flowNote != null">#{flowNote},</if>
- <if test="flowStatus != null">#{flowStatus},</if>
- <if test="flowSort != null">#{flowSort},</if>
- <if test="createBy != null">#{createBy},</if>
- <if test="createTime != null">#{createTime},</if>
- <if test="updateBy != null">#{updateBy},</if>
- <if test="updateTime != null">#{updateTime},</if>
- </trim>
- </insert>
- <update id="updateMdAppFlow" parameterType="com.ruoyi.interfaces.domain.MdAppFlow">
- update md_app_flow
- <trim prefix="SET" suffixOverrides=",">
- <if test="appId != null and appId != ''">APP_ID = #{appId},</if>
- <if test="flowName != null and flowName != ''">FLOW_NAME = #{flowName},</if>
- <if test="flowGraph != null">FLOW_GRAPH = #{flowGraph},</if>
- <if test="flowType != null">FLOW_TYPE = #{flowType},</if>
- <if test="flowNote != null">FLOW_NOTE = #{flowNote},</if>
- <if test="flowStatus != null">FLOW_STATUS = #{flowStatus},</if>
- <if test="flowSort != null">FLOW_SORT = #{flowSort},</if>
- <if test="createBy != null">CREATE_BY = #{createBy},</if>
- <if test="createTime != null">CREATE_TIME = #{createTime},</if>
- <if test="updateBy != null">UPDATE_BY = #{updateBy},</if>
- <if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
- </trim>
- where FLOW_ID = #{flowId}
- </update>
- <delete id="deleteMdAppFlowByFlowId" parameterType="Long">
- delete from md_app_flow where FLOW_ID = #{flowId}
- </delete>
- <delete id="deleteMdAppFlowByFlowIds" parameterType="String">
- delete from md_app_flow where FLOW_ID in
- <foreach item="flowId" collection="array" open="(" separator="," close=")">
- #{flowId}
- </foreach>
- </delete>
- </mapper>
|