xm包名问题
							parent
							
								
									57c1d8b144
								
							
						
					
					
						commit
						778f4424ac
					
				| @ -0,0 +1,13 @@ | |||||||
|  | package com.glxp.api.req.thrsys; | ||||||
|  | 
 | ||||||
|  | import lombok.Data; | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | @Data | ||||||
|  | public class ForThirdProductRequest { | ||||||
|  |     private String udiCode; | ||||||
|  |     private String mainId; | ||||||
|  |     private String nameCode; | ||||||
|  |     private String cpmctymc; | ||||||
|  |     private String ggxh; | ||||||
|  | } | ||||||
| @ -1,297 +1,4 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?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"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||||
| <mapper namespace="com.glxp.api.dao.basic.SysApprovalFlowConfigMapper"> | <mapper namespace="com.glxp.api.dao.basic.SysApprovalFlowConfigMapper"> | ||||||
|   <resultMap id="BaseResultMap" type="com.glxp.api.entity.basic.SysApprovalFlowConfig"> |  | ||||||
|     <!--@mbg.generated--> |  | ||||||
|     <!--@Table sys_approval_flow_config--> |  | ||||||
|     <id column="id" jdbcType="VARCHAR" property="id" /> |  | ||||||
|     <result column="type" jdbcType="VARCHAR" property="type" /> |  | ||||||
|     <result column="typeName" jdbcType="VARCHAR" property="typeName" /> |  | ||||||
|     <result column="approvalSort" jdbcType="INTEGER" property="approvalSort" /> |  | ||||||
|     <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, `type`, typeName, approvalSort, `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_config |  | ||||||
|     where id = #{id,jdbcType=VARCHAR} |  | ||||||
|   </select> |  | ||||||
|   <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> |  | ||||||
|     <!--@mbg.generated--> |  | ||||||
|     delete from sys_approval_flow_config |  | ||||||
|     where id = #{id,jdbcType=VARCHAR} |  | ||||||
|   </delete> |  | ||||||
|   <insert id="insert" parameterType="com.glxp.api.entity.basic.SysApprovalFlowConfig"> |  | ||||||
|     <!--@mbg.generated--> |  | ||||||
|     insert into sys_approval_flow_config (id, `type`, typeName, |  | ||||||
|       approvalSort, `createUser`, createTime, |  | ||||||
|       updateUser, updateTime) |  | ||||||
|     values (#{id,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{typeName,jdbcType=VARCHAR}, |  | ||||||
|       #{approvalSort,jdbcType=INTEGER}, #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |  | ||||||
|       #{updateUser,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}) |  | ||||||
|   </insert> |  | ||||||
|   <insert id="insertSelective" parameterType="com.glxp.api.entity.basic.SysApprovalFlowConfig"> |  | ||||||
|     <!--@mbg.generated--> |  | ||||||
|     insert into sys_approval_flow_config |  | ||||||
|     <trim prefix="(" suffix=")" suffixOverrides=","> |  | ||||||
|       <if test="id != null"> |  | ||||||
|         id, |  | ||||||
|       </if> |  | ||||||
|       <if test="type != null"> |  | ||||||
|         `type`, |  | ||||||
|       </if> |  | ||||||
|       <if test="typeName != null"> |  | ||||||
|         typeName, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalSort != null"> |  | ||||||
|         approvalSort, |  | ||||||
|       </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="type != null"> |  | ||||||
|         #{type,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="typeName != null"> |  | ||||||
|         #{typeName,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalSort != null"> |  | ||||||
|         #{approvalSort,jdbcType=INTEGER}, |  | ||||||
|       </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.api.entity.basic.SysApprovalFlowConfig"> |  | ||||||
|     <!--@mbg.generated--> |  | ||||||
|     update sys_approval_flow_config |  | ||||||
|     <set> |  | ||||||
|       <if test="type != null"> |  | ||||||
|         `type` = #{type,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="typeName != null"> |  | ||||||
|         typeName = #{typeName,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalSort != null"> |  | ||||||
|         approvalSort = #{approvalSort,jdbcType=INTEGER}, |  | ||||||
|       </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.api.entity.basic.SysApprovalFlowConfig"> |  | ||||||
|     <!--@mbg.generated--> |  | ||||||
|     update sys_approval_flow_config |  | ||||||
|     set `type` = #{type,jdbcType=VARCHAR}, |  | ||||||
|       typeName = #{typeName,jdbcType=VARCHAR}, |  | ||||||
|       approvalSort = #{approvalSort,jdbcType=INTEGER}, |  | ||||||
|       `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_config |  | ||||||
|     <trim prefix="set" suffixOverrides=","> |  | ||||||
|       <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="typeName = case" suffix="end,"> |  | ||||||
|         <foreach collection="list" index="index" item="item"> |  | ||||||
|           when id = #{item.id,jdbcType=VARCHAR} then #{item.typeName,jdbcType=VARCHAR} |  | ||||||
|         </foreach> |  | ||||||
|       </trim> |  | ||||||
|       <trim prefix="approvalSort = case" suffix="end,"> |  | ||||||
|         <foreach collection="list" index="index" item="item"> |  | ||||||
|           when id = #{item.id,jdbcType=VARCHAR} then #{item.approvalSort,jdbcType=INTEGER} |  | ||||||
|         </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_config |  | ||||||
|     (id, `type`, typeName, approvalSort, `createUser`, createTime, updateUser, |  | ||||||
|       updateTime) |  | ||||||
|     values |  | ||||||
|     <foreach collection="list" item="item" separator=","> |  | ||||||
|       (#{item.id,jdbcType=VARCHAR}, #{item.type,jdbcType=VARCHAR}, #{item.typeName,jdbcType=VARCHAR}, |  | ||||||
|         #{item.approvalSort,jdbcType=INTEGER}, #{item.createUser,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, |  | ||||||
|         #{item.updateUser,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}) |  | ||||||
|     </foreach> |  | ||||||
|   </insert> |  | ||||||
|   <insert id="insertOrUpdate" parameterType="com.glxp.api.entity.basic.SysApprovalFlowConfig"> |  | ||||||
|     <!--@mbg.generated--> |  | ||||||
|     insert into sys_approval_flow_config |  | ||||||
|     (id, `type`, typeName, approvalSort, `createUser`, createTime, updateUser, |  | ||||||
|       updateTime) |  | ||||||
|     values |  | ||||||
|     (#{id,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{typeName,jdbcType=VARCHAR}, |  | ||||||
|       #{approvalSort,jdbcType=INTEGER}, #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |  | ||||||
|       #{updateUser,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}) |  | ||||||
|     on duplicate key update |  | ||||||
|     id = #{id,jdbcType=VARCHAR}, |  | ||||||
|     `type` = #{type,jdbcType=VARCHAR}, |  | ||||||
|     typeName = #{typeName,jdbcType=VARCHAR}, |  | ||||||
|     approvalSort = #{approvalSort,jdbcType=INTEGER}, |  | ||||||
|     `createUser` = #{createUser,jdbcType=VARCHAR}, |  | ||||||
|     createTime = #{createTime,jdbcType=TIMESTAMP}, |  | ||||||
|     updateUser = #{updateUser,jdbcType=VARCHAR}, |  | ||||||
|     updateTime = #{updateTime,jdbcType=TIMESTAMP} |  | ||||||
|   </insert> |  | ||||||
|   <insert id="insertOrUpdateSelective" parameterType="com.glxp.api.entity.basic.SysApprovalFlowConfig"> |  | ||||||
|     <!--@mbg.generated--> |  | ||||||
|     insert into sys_approval_flow_config |  | ||||||
|     <trim prefix="(" suffix=")" suffixOverrides=","> |  | ||||||
|       <if test="id != null"> |  | ||||||
|         id, |  | ||||||
|       </if> |  | ||||||
|       <if test="type != null"> |  | ||||||
|         `type`, |  | ||||||
|       </if> |  | ||||||
|       <if test="typeName != null"> |  | ||||||
|         typeName, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalSort != null"> |  | ||||||
|         approvalSort, |  | ||||||
|       </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="type != null"> |  | ||||||
|         #{type,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="typeName != null"> |  | ||||||
|         #{typeName,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalSort != null"> |  | ||||||
|         #{approvalSort,jdbcType=INTEGER}, |  | ||||||
|       </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="type != null"> |  | ||||||
|         `type` = #{type,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="typeName != null"> |  | ||||||
|         typeName = #{typeName,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalSort != null"> |  | ||||||
|         approvalSort = #{approvalSort,jdbcType=INTEGER}, |  | ||||||
|       </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> | </mapper> | ||||||
|  | |||||||
| @ -1,352 +1,4 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?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"> | <!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"> | <mapper namespace="com.glxp.api.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> | </mapper> | ||||||
|  | |||||||
| @ -1,407 +1,4 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?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"> | <!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.SysApprovalFlowMxMapper"> | <mapper namespace="com.glxp.api.dao.basic.SysApprovalFlowMxMapper"> | ||||||
|   <resultMap id="BaseResultMap" type="com.glxp.udims.business.entity.basic.SysApprovalFlowMx"> |  | ||||||
|     <!--@mbg.generated--> |  | ||||||
|     <!--@Table sys_approval_flow_mx--> |  | ||||||
|     <id column="id" jdbcType="VARCHAR" property="id" /> |  | ||||||
|     <result column="approvalFlowId" jdbcType="VARCHAR" property="approvalFlowId" /> |  | ||||||
|     <result column="approvalUserId" jdbcType="VARCHAR" property="approvalUserId" /> |  | ||||||
|     <result column="approvalUserName" jdbcType="VARCHAR" property="approvalUserName" /> |  | ||||||
|     <result column="approvalTime" jdbcType="TIMESTAMP" property="approvalTime" /> |  | ||||||
|     <result column="approvalOpinion" jdbcType="VARCHAR" property="approvalOpinion" /> |  | ||||||
|     <result column="approvalStatus" jdbcType="INTEGER" property="approvalStatus" /> |  | ||||||
|     <result column="approvalSort" jdbcType="INTEGER" property="approvalSort" /> |  | ||||||
|     <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, approvalFlowId, approvalUserId, approvalUserName, approvalTime, approvalOpinion, approvalStatus, |  | ||||||
|     approvalSort, `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_mx |  | ||||||
|     where id = #{id,jdbcType=VARCHAR} |  | ||||||
|   </select> |  | ||||||
|   <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> |  | ||||||
|     <!--@mbg.generated--> |  | ||||||
|     delete from sys_approval_flow_mx |  | ||||||
|     where id = #{id,jdbcType=VARCHAR} |  | ||||||
|   </delete> |  | ||||||
|   <insert id="insert" parameterType="com.glxp.udims.business.entity.basic.SysApprovalFlowMx"> |  | ||||||
|     <!--@mbg.generated--> |  | ||||||
|     insert into sys_approval_flow_mx (id, approvalFlowId, approvalUserId,approvalUserName, |  | ||||||
|       approvalTime, approvalOpinion, approvalStatus, |  | ||||||
|       approvalSort, `createUser`, createTime, |  | ||||||
|       updateUser, updateTime) |  | ||||||
|     values (#{id,jdbcType=VARCHAR}, #{approvalFlowId,jdbcType=VARCHAR}, #{approvalUserId,jdbcType=VARCHAR}, #{approvalUserName,jdbcType=VARCHAR}, |  | ||||||
|       #{approvalTime,jdbcType=TIMESTAMP}, #{approvalOpinion,jdbcType=VARCHAR}, #{approvalStatus,jdbcType=INTEGER}, |  | ||||||
|       #{approvalSort,jdbcType=INTEGER}, #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |  | ||||||
|       #{updateUser,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}) |  | ||||||
|   </insert> |  | ||||||
|   <insert id="insertSelective" parameterType="com.glxp.udims.business.entity.basic.SysApprovalFlowMx"> |  | ||||||
|     <!--@mbg.generated--> |  | ||||||
|     insert into sys_approval_flow_mx |  | ||||||
|     <trim prefix="(" suffix=")" suffixOverrides=","> |  | ||||||
|       <if test="id != null"> |  | ||||||
|         id, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalFlowId != null"> |  | ||||||
|         approvalFlowId, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalUserId != null"> |  | ||||||
|         approvalUserId, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalUserName != null"> |  | ||||||
|         approvalUserName, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalTime != null"> |  | ||||||
|         approvalTime, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalOpinion != null"> |  | ||||||
|         approvalOpinion, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalStatus != null"> |  | ||||||
|         approvalStatus, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalSort != null"> |  | ||||||
|         approvalSort, |  | ||||||
|       </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="approvalFlowId != null"> |  | ||||||
|         #{approvalFlowId,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalUserId != null"> |  | ||||||
|         #{approvalUserId,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalUserName != null"> |  | ||||||
|         #{approvalUserName,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalTime != null"> |  | ||||||
|         #{approvalTime,jdbcType=TIMESTAMP}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalOpinion != null"> |  | ||||||
|         #{approvalOpinion,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalStatus != null"> |  | ||||||
|         #{approvalStatus,jdbcType=INTEGER}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalSort != null"> |  | ||||||
|         #{approvalSort,jdbcType=INTEGER}, |  | ||||||
|       </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.SysApprovalFlowMx"> |  | ||||||
|     <!--@mbg.generated--> |  | ||||||
|     update sys_approval_flow_mx |  | ||||||
|     <set> |  | ||||||
|       <if test="approvalFlowId != null"> |  | ||||||
|         approvalFlowId = #{approvalFlowId,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalUserId != null"> |  | ||||||
|         approvalUserId = #{approvalUserId,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalUserName != null"> |  | ||||||
|         approvalUserName = #{approvalUserName,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalTime != null"> |  | ||||||
|         approvalTime = #{approvalTime,jdbcType=TIMESTAMP}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalOpinion != null"> |  | ||||||
|         approvalOpinion = #{approvalOpinion,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalStatus != null"> |  | ||||||
|         approvalStatus = #{approvalStatus,jdbcType=INTEGER}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalSort != null"> |  | ||||||
|         approvalSort = #{approvalSort,jdbcType=INTEGER}, |  | ||||||
|       </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.SysApprovalFlowMx"> |  | ||||||
|     <!--@mbg.generated--> |  | ||||||
|     update sys_approval_flow_mx |  | ||||||
|     set approvalFlowId = #{approvalFlowId,jdbcType=VARCHAR}, |  | ||||||
|       approvalUserId = #{approvalUserId,jdbcType=VARCHAR}, |  | ||||||
|     approvalUserName = #{approvalUserName,jdbcType=VARCHAR}, |  | ||||||
|       approvalTime = #{approvalTime,jdbcType=TIMESTAMP}, |  | ||||||
|       approvalOpinion = #{approvalOpinion,jdbcType=VARCHAR}, |  | ||||||
|       approvalStatus = #{approvalStatus,jdbcType=INTEGER}, |  | ||||||
|       approvalSort = #{approvalSort,jdbcType=INTEGER}, |  | ||||||
|       `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_mx |  | ||||||
|     <trim prefix="set" suffixOverrides=","> |  | ||||||
|       <trim prefix="approvalFlowId = case" suffix="end,"> |  | ||||||
|         <foreach collection="list" index="index" item="item"> |  | ||||||
|           when id = #{item.id,jdbcType=VARCHAR} then #{item.approvalFlowId,jdbcType=VARCHAR} |  | ||||||
|         </foreach> |  | ||||||
|       </trim> |  | ||||||
|       <trim prefix="approvalUserId = case" suffix="end,"> |  | ||||||
|         <foreach collection="list" index="index" item="item"> |  | ||||||
|           when id = #{item.id,jdbcType=VARCHAR} then #{item.approvalUserId,jdbcType=VARCHAR} |  | ||||||
|         </foreach> |  | ||||||
|       </trim> |  | ||||||
|       <trim prefix="approvalUserName = case" suffix="end,"> |  | ||||||
|         <foreach collection="list" index="index" item="item"> |  | ||||||
|           when id = #{item.id,jdbcType=VARCHAR} then #{item.approvalUserName,jdbcType=VARCHAR} |  | ||||||
|         </foreach> |  | ||||||
|       </trim> |  | ||||||
|       <trim prefix="approvalTime = case" suffix="end,"> |  | ||||||
|         <foreach collection="list" index="index" item="item"> |  | ||||||
|           when id = #{item.id,jdbcType=VARCHAR} then #{item.approvalTime,jdbcType=TIMESTAMP} |  | ||||||
|         </foreach> |  | ||||||
|       </trim> |  | ||||||
|       <trim prefix="approvalOpinion = case" suffix="end,"> |  | ||||||
|         <foreach collection="list" index="index" item="item"> |  | ||||||
|           when id = #{item.id,jdbcType=VARCHAR} then #{item.approvalOpinion,jdbcType=VARCHAR} |  | ||||||
|         </foreach> |  | ||||||
|       </trim> |  | ||||||
|       <trim prefix="approvalStatus = case" suffix="end,"> |  | ||||||
|         <foreach collection="list" index="index" item="item"> |  | ||||||
|           when id = #{item.id,jdbcType=VARCHAR} then #{item.approvalStatus,jdbcType=INTEGER} |  | ||||||
|         </foreach> |  | ||||||
|       </trim> |  | ||||||
|       <trim prefix="approvalSort = case" suffix="end,"> |  | ||||||
|         <foreach collection="list" index="index" item="item"> |  | ||||||
|           when id = #{item.id,jdbcType=VARCHAR} then #{item.approvalSort,jdbcType=INTEGER} |  | ||||||
|         </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_mx |  | ||||||
|     (id, approvalFlowId, approvalUserId,  approvalUserName, approvalTime, approvalOpinion, approvalStatus, |  | ||||||
|       approvalSort, `createUser`, createTime, updateUser, updateTime) |  | ||||||
|     values |  | ||||||
|     <foreach collection="list" item="item" separator=","> |  | ||||||
|       (#{item.id,jdbcType=VARCHAR}, #{item.approvalFlowId,jdbcType=VARCHAR}, #{item.approvalUserId,jdbcType=VARCHAR},#{item.approvalUserName,jdbcType=VARCHAR}, |  | ||||||
|         #{item.approvalTime,jdbcType=TIMESTAMP}, #{item.approvalOpinion,jdbcType=VARCHAR}, |  | ||||||
|         #{item.approvalStatus,jdbcType=INTEGER}, #{item.approvalSort,jdbcType=INTEGER}, |  | ||||||
|         #{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.SysApprovalFlowMx"> |  | ||||||
|     <!--@mbg.generated--> |  | ||||||
|     insert into sys_approval_flow_mx |  | ||||||
|     (id, approvalFlowId, approvalUserId,approvalUserName, approvalTime, approvalOpinion, approvalStatus, |  | ||||||
|       approvalSort, `createUser`, createTime, updateUser, updateTime) |  | ||||||
|     values |  | ||||||
|     (#{id,jdbcType=VARCHAR}, #{approvalFlowId,jdbcType=VARCHAR}, #{approvalUserId,jdbcType=VARCHAR}, #{approvalUserName,jdbcType=VARCHAR}, |  | ||||||
|       #{approvalTime,jdbcType=TIMESTAMP}, #{approvalOpinion,jdbcType=VARCHAR}, #{approvalStatus,jdbcType=INTEGER}, |  | ||||||
|       #{approvalSort,jdbcType=INTEGER}, #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |  | ||||||
|       #{updateUser,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}) |  | ||||||
|     on duplicate key update |  | ||||||
|     id = #{id,jdbcType=VARCHAR}, |  | ||||||
|     approvalFlowId = #{approvalFlowId,jdbcType=VARCHAR}, |  | ||||||
|     approvalUserId = #{approvalUserId,jdbcType=VARCHAR}, |  | ||||||
|     approvalUserName = #{approvalUserName,jdbcType=VARCHAR}, |  | ||||||
|     approvalTime = #{approvalTime,jdbcType=TIMESTAMP}, |  | ||||||
|     approvalOpinion = #{approvalOpinion,jdbcType=VARCHAR}, |  | ||||||
|     approvalStatus = #{approvalStatus,jdbcType=INTEGER}, |  | ||||||
|     approvalSort = #{approvalSort,jdbcType=INTEGER}, |  | ||||||
|     `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.SysApprovalFlowMx"> |  | ||||||
|     <!--@mbg.generated--> |  | ||||||
|     insert into sys_approval_flow_mx |  | ||||||
|     <trim prefix="(" suffix=")" suffixOverrides=","> |  | ||||||
|       <if test="id != null"> |  | ||||||
|         id, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalFlowId != null"> |  | ||||||
|         approvalFlowId, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalUserId != null"> |  | ||||||
|         approvalUserId, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalUserName != null"> |  | ||||||
|         approvalUserName, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalTime != null"> |  | ||||||
|         approvalTime, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalOpinion != null"> |  | ||||||
|         approvalOpinion, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalStatus != null"> |  | ||||||
|         approvalStatus, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalSort != null"> |  | ||||||
|         approvalSort, |  | ||||||
|       </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="approvalFlowId != null"> |  | ||||||
|         #{approvalFlowId,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalUserId != null"> |  | ||||||
|         #{approvalUserId,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalUserName != null"> |  | ||||||
|         #{approvalUserName,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalTime != null"> |  | ||||||
|         #{approvalTime,jdbcType=TIMESTAMP}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalOpinion != null"> |  | ||||||
|         #{approvalOpinion,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalStatus != null"> |  | ||||||
|         #{approvalStatus,jdbcType=INTEGER}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalSort != null"> |  | ||||||
|         #{approvalSort,jdbcType=INTEGER}, |  | ||||||
|       </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="approvalFlowId != null"> |  | ||||||
|         approvalFlowId = #{approvalFlowId,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalUserId != null"> |  | ||||||
|         approvalUserId = #{approvalUserId,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalUserName != null"> |  | ||||||
|         approvalUserName = #{approvalUserName,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalTime != null"> |  | ||||||
|         approvalTime = #{approvalTime,jdbcType=TIMESTAMP}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalOpinion != null"> |  | ||||||
|         approvalOpinion = #{approvalOpinion,jdbcType=VARCHAR}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalStatus != null"> |  | ||||||
|         approvalStatus = #{approvalStatus,jdbcType=INTEGER}, |  | ||||||
|       </if> |  | ||||||
|       <if test="approvalSort != null"> |  | ||||||
|         approvalSort = #{approvalSort,jdbcType=INTEGER}, |  | ||||||
|       </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> | </mapper> | ||||||
|  | |||||||
					Loading…
					
					
				
		Reference in New Issue