You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
353 lines
12 KiB
XML
353 lines
12 KiB
XML
1 year ago
|
<?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.glxp.udims.business.dao.basic.SysApprovalFlowMapper">
|
||
|
<resultMap id="BaseResultMap" type="com.glxp.udims.business.entity.basic.SysApprovalFlow">
|
||
|
<!--@mbg.generated-->
|
||
|
<!--@Table sys_approval_flow-->
|
||
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
||
|
<result column="title" jdbcType="VARCHAR" property="title" />
|
||
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
||
|
<result column="status" jdbcType="INTEGER" property="status" />
|
||
|
<result column="userId" jdbcType="VARCHAR" property="userId" />
|
||
|
<result column="userName" jdbcType="VARCHAR" property="userName" />
|
||
|
<result column="createUser" jdbcType="VARCHAR" property="createUser" />
|
||
|
<result column="createTime" jdbcType="TIMESTAMP" property="createTime" />
|
||
|
<result column="updateUser" jdbcType="VARCHAR" property="updateUser" />
|
||
|
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
|
||
|
</resultMap>
|
||
|
<sql id="Base_Column_List">
|
||
|
<!--@mbg.generated-->
|
||
|
id, title, `type`, `status`, userId, userName, `createUser`, createTime, updateUser, updateTime
|
||
|
</sql>
|
||
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||
|
<!--@mbg.generated-->
|
||
|
select
|
||
|
<include refid="Base_Column_List" />
|
||
|
from sys_approval_flow
|
||
|
where id = #{id,jdbcType=VARCHAR}
|
||
|
</select>
|
||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||
|
<!--@mbg.generated-->
|
||
|
delete from sys_approval_flow
|
||
|
where id = #{id,jdbcType=VARCHAR}
|
||
|
</delete>
|
||
|
<insert id="insert" parameterType="com.glxp.udims.business.entity.basic.SysApprovalFlow">
|
||
|
<!--@mbg.generated-->
|
||
|
insert into sys_approval_flow (id, title, `type`,
|
||
|
`status`, userId, userName, `createUser`,
|
||
|
createTime, updateUser, updateTime
|
||
|
)
|
||
|
values (#{id,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
|
||
|
#{status,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR},#{userName,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
|
||
|
#{createTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}
|
||
|
)
|
||
|
</insert>
|
||
|
<insert id="insertSelective" parameterType="com.glxp.udims.business.entity.basic.SysApprovalFlow">
|
||
|
<!--@mbg.generated-->
|
||
|
insert into sys_approval_flow
|
||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||
|
<if test="id != null">
|
||
|
id,
|
||
|
</if>
|
||
|
<if test="title != null">
|
||
|
title,
|
||
|
</if>
|
||
|
<if test="type != null">
|
||
|
`type`,
|
||
|
</if>
|
||
|
<if test="status != null">
|
||
|
`status`,
|
||
|
</if>
|
||
|
<if test="userId != null">
|
||
|
userId,
|
||
|
</if>
|
||
|
<if test="userName != null">
|
||
|
userName,
|
||
|
</if>
|
||
|
<if test="createUser != null">
|
||
|
`createUser`,
|
||
|
</if>
|
||
|
<if test="createTime != null">
|
||
|
createTime,
|
||
|
</if>
|
||
|
<if test="updateUser != null">
|
||
|
updateUser,
|
||
|
</if>
|
||
|
<if test="updateTime != null">
|
||
|
updateTime,
|
||
|
</if>
|
||
|
</trim>
|
||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||
|
<if test="id != null">
|
||
|
#{id,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="title != null">
|
||
|
#{title,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="type != null">
|
||
|
#{type,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="status != null">
|
||
|
#{status,jdbcType=INTEGER},
|
||
|
</if>
|
||
|
<if test="userId != null">
|
||
|
#{userId,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="userName != null">
|
||
|
#{userName,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="createUser != null">
|
||
|
#{createUser,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="createTime != null">
|
||
|
#{createTime,jdbcType=TIMESTAMP},
|
||
|
</if>
|
||
|
<if test="updateUser != null">
|
||
|
#{updateUser,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="updateTime != null">
|
||
|
#{updateTime,jdbcType=TIMESTAMP},
|
||
|
</if>
|
||
|
</trim>
|
||
|
</insert>
|
||
|
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.udims.business.entity.basic.SysApprovalFlow">
|
||
|
<!--@mbg.generated-->
|
||
|
update sys_approval_flow
|
||
|
<set>
|
||
|
<if test="title != null">
|
||
|
title = #{title,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="type != null">
|
||
|
`type` = #{type,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="status != null">
|
||
|
`status` = #{status,jdbcType=INTEGER},
|
||
|
</if>
|
||
|
<if test="userId != null">
|
||
|
userId = #{userId,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="userName != null">
|
||
|
userName = #{userName,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="createUser != null">
|
||
|
`createUser` = #{createUser,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="createTime != null">
|
||
|
createTime = #{createTime,jdbcType=TIMESTAMP},
|
||
|
</if>
|
||
|
<if test="updateUser != null">
|
||
|
updateUser = #{updateUser,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="updateTime != null">
|
||
|
updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
||
|
</if>
|
||
|
</set>
|
||
|
where id = #{id,jdbcType=VARCHAR}
|
||
|
</update>
|
||
|
<update id="updateByPrimaryKey" parameterType="com.glxp.udims.business.entity.basic.SysApprovalFlow">
|
||
|
<!--@mbg.generated-->
|
||
|
update sys_approval_flow
|
||
|
set title = #{title,jdbcType=VARCHAR},
|
||
|
`type` = #{type,jdbcType=VARCHAR},
|
||
|
`status` = #{status,jdbcType=INTEGER},
|
||
|
userId = #{userId,jdbcType=VARCHAR},
|
||
|
userName = #{userName,jdbcType=VARCHAR},
|
||
|
`createUser` = #{createUser,jdbcType=VARCHAR},
|
||
|
createTime = #{createTime,jdbcType=TIMESTAMP},
|
||
|
updateUser = #{updateUser,jdbcType=VARCHAR},
|
||
|
updateTime = #{updateTime,jdbcType=TIMESTAMP}
|
||
|
where id = #{id,jdbcType=VARCHAR}
|
||
|
</update>
|
||
|
<update id="updateBatch" parameterType="java.util.List">
|
||
|
<!--@mbg.generated-->
|
||
|
update sys_approval_flow
|
||
|
<trim prefix="set" suffixOverrides=",">
|
||
|
<trim prefix="title = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=VARCHAR} then #{item.title,jdbcType=VARCHAR}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="`type` = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=VARCHAR} then #{item.type,jdbcType=VARCHAR}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="`status` = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=VARCHAR} then #{item.status,jdbcType=INTEGER}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="userId = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=VARCHAR} then #{item.userId,jdbcType=VARCHAR}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="userName = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=VARCHAR} then #{item.userName,jdbcType=VARCHAR}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="`createUser` = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=VARCHAR} then #{item.createUser,jdbcType=VARCHAR}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="createTime = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="updateUser = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateUser,jdbcType=VARCHAR}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
<trim prefix="updateTime = case" suffix="end,">
|
||
|
<foreach collection="list" index="index" item="item">
|
||
|
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
|
||
|
</foreach>
|
||
|
</trim>
|
||
|
</trim>
|
||
|
where id in
|
||
|
<foreach close=")" collection="list" item="item" open="(" separator=", ">
|
||
|
#{item.id,jdbcType=VARCHAR}
|
||
|
</foreach>
|
||
|
</update>
|
||
|
<insert id="batchInsert" parameterType="map">
|
||
|
<!--@mbg.generated-->
|
||
|
insert into sys_approval_flow
|
||
|
(id, title, `type`, `status`, userId, userName, `createUser`, createTime, updateUser, updateTime
|
||
|
)
|
||
|
values
|
||
|
<foreach collection="list" item="item" separator=",">
|
||
|
(#{item.id,jdbcType=VARCHAR}, #{item.title,jdbcType=VARCHAR}, #{item.type,jdbcType=VARCHAR},
|
||
|
#{item.status,jdbcType=INTEGER}, #{item.userId,jdbcType=VARCHAR},#{item.userName,jdbcType=VARCHAR}, #{item.createUser,jdbcType=VARCHAR},
|
||
|
#{item.createTime,jdbcType=TIMESTAMP}, #{item.updateUser,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}
|
||
|
)
|
||
|
</foreach>
|
||
|
</insert>
|
||
|
<insert id="insertOrUpdate" parameterType="com.glxp.udims.business.entity.basic.SysApprovalFlow">
|
||
|
<!--@mbg.generated-->
|
||
|
insert into sys_approval_flow
|
||
|
(id, title, `type`, `status`, userId, userName, `createUser`, createTime, updateUser, updateTime
|
||
|
)
|
||
|
values
|
||
|
(#{id,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
||
|
#{userId,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
||
|
#{updateUser,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP})
|
||
|
on duplicate key update
|
||
|
id = #{id,jdbcType=VARCHAR},
|
||
|
title = #{title,jdbcType=VARCHAR},
|
||
|
`type` = #{type,jdbcType=VARCHAR},
|
||
|
`status` = #{status,jdbcType=INTEGER},
|
||
|
userId = #{userId,jdbcType=VARCHAR},
|
||
|
userName = #{userName,jdbcType=VARCHAR},
|
||
|
`createUser` = #{createUser,jdbcType=VARCHAR},
|
||
|
createTime = #{createTime,jdbcType=TIMESTAMP},
|
||
|
updateUser = #{updateUser,jdbcType=VARCHAR},
|
||
|
updateTime = #{updateTime,jdbcType=TIMESTAMP}
|
||
|
</insert>
|
||
|
<insert id="insertOrUpdateSelective" parameterType="com.glxp.udims.business.entity.basic.SysApprovalFlow">
|
||
|
<!--@mbg.generated-->
|
||
|
insert into sys_approval_flow
|
||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||
|
<if test="id != null">
|
||
|
id,
|
||
|
</if>
|
||
|
<if test="title != null">
|
||
|
title,
|
||
|
</if>
|
||
|
<if test="type != null">
|
||
|
`type`,
|
||
|
</if>
|
||
|
<if test="status != null">
|
||
|
`status`,
|
||
|
</if>
|
||
|
<if test="userId != null">
|
||
|
userId,
|
||
|
</if>
|
||
|
<if test="userName != null">
|
||
|
userName,
|
||
|
</if>
|
||
|
<if test="createUser != null">
|
||
|
`createUser`,
|
||
|
</if>
|
||
|
<if test="createTime != null">
|
||
|
createTime,
|
||
|
</if>
|
||
|
<if test="updateUser != null">
|
||
|
updateUser,
|
||
|
</if>
|
||
|
<if test="updateTime != null">
|
||
|
updateTime,
|
||
|
</if>
|
||
|
</trim>
|
||
|
values
|
||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||
|
<if test="id != null">
|
||
|
#{id,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="title != null">
|
||
|
#{title,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="type != null">
|
||
|
#{type,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="status != null">
|
||
|
#{status,jdbcType=INTEGER},
|
||
|
</if>
|
||
|
<if test="userId != null">
|
||
|
#{userId,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="userName != null">
|
||
|
#{userName,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="createUser != null">
|
||
|
#{createUser,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="createTime != null">
|
||
|
#{createTime,jdbcType=TIMESTAMP},
|
||
|
</if>
|
||
|
<if test="updateUser != null">
|
||
|
#{updateUser,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="updateTime != null">
|
||
|
#{updateTime,jdbcType=TIMESTAMP},
|
||
|
</if>
|
||
|
</trim>
|
||
|
on duplicate key update
|
||
|
<trim suffixOverrides=",">
|
||
|
<if test="id != null">
|
||
|
id = #{id,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="title != null">
|
||
|
title = #{title,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="type != null">
|
||
|
`type` = #{type,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="status != null">
|
||
|
`status` = #{status,jdbcType=INTEGER},
|
||
|
</if>
|
||
|
<if test="userId != null">
|
||
|
userId = #{userId,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="userName != null">
|
||
|
userName = #{userName,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="createUser != null">
|
||
|
`createUser` = #{createUser,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="createTime != null">
|
||
|
createTime = #{createTime,jdbcType=TIMESTAMP},
|
||
|
</if>
|
||
|
<if test="updateUser != null">
|
||
|
updateUser = #{updateUser,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
<if test="updateTime != null">
|
||
|
updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
||
|
</if>
|
||
|
</trim>
|
||
|
</insert>
|
||
|
</mapper>
|