123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448 |
- <?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.idea.oa.flow2.mapper.FlowMainPushMapper">
- <resultMap id="BaseResultMap" type="com.idea.oa.flow2.model.FlowMainPush">
- <id column="id" jdbcType="VARCHAR" property="id" />
- <result column="flow_main_id" jdbcType="VARCHAR" property="flowMainId" />
- <result column="form_id" jdbcType="VARCHAR" property="formId" />
- <result column="push_user" jdbcType="VARCHAR" property="pushUser" />
- <result column="push_user_key" jdbcType="VARCHAR" property="pushUserKey" />
- <result column="node_name" jdbcType="VARCHAR" property="nodeName" />
- <result column="push_type" jdbcType="INTEGER" property="pushType" />
- <result column="push_role" jdbcType="INTEGER" property="pushRole" />
- <result column="flow_type" jdbcType="VARCHAR" property="flowType" />
- <result column="flow_post" jdbcType="VARCHAR" property="flowPost" />
- <result column="flow_id" jdbcType="VARCHAR" property="flowId" />
- <result column="task_id" jdbcType="VARCHAR" property="taskId" />
- <result column="up_main_log_id" jdbcType="VARCHAR" property="upMainLogId" />
- <result column="status" jdbcType="INTEGER" property="status" />
- <result column="created_by" jdbcType="VARCHAR" property="createdBy" />
- <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
- <result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
- <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
- <result column="group_id" jdbcType="VARCHAR" property="groupId" />
- <result column="remark" jdbcType="VARCHAR" property="remark" />
- </resultMap>
- <sql id="Example_Where_Clause">
- <where>
- <foreach collection="oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Update_By_Example_Where_Clause">
- <where>
- <foreach collection="example.oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Base_Column_List">
- id, flow_main_id, form_id, push_user, push_user_key, node_name, push_type, push_role,
- flow_type, flow_post, flow_id, task_id, up_main_log_id, status, created_by, created_at,
- updated_by, updated_at, group_id, remark
- </sql>
- <select id="selectByExample" parameterType="com.idea.oa.flow2.model.FlowMainPushExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from flow_main_push
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null">
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from flow_main_push
- where id = #{id,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from flow_main_push
- where id = #{id,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.idea.oa.flow2.model.FlowMainPushExample">
- delete from flow_main_push
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.idea.oa.flow2.model.FlowMainPush">
- insert into flow_main_push (id, flow_main_id, form_id,
- push_user, push_user_key, node_name,
- push_type, push_role, flow_type,
- flow_post, flow_id, task_id,
- up_main_log_id, status, created_by,
- created_at, updated_by, updated_at,
- group_id, remark)
- values (#{id,jdbcType=VARCHAR}, #{flowMainId,jdbcType=VARCHAR}, #{formId,jdbcType=VARCHAR},
- #{pushUser,jdbcType=VARCHAR}, #{pushUserKey,jdbcType=VARCHAR}, #{nodeName,jdbcType=VARCHAR},
- #{pushType,jdbcType=INTEGER}, #{pushRole,jdbcType=INTEGER}, #{flowType,jdbcType=VARCHAR},
- #{flowPost,jdbcType=VARCHAR}, #{flowId,jdbcType=VARCHAR}, #{taskId,jdbcType=VARCHAR},
- #{upMainLogId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createdBy,jdbcType=VARCHAR},
- #{createdAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=VARCHAR}, #{updatedAt,jdbcType=TIMESTAMP},
- #{groupId,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.idea.oa.flow2.model.FlowMainPush">
- insert into flow_main_push
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="flowMainId != null">
- flow_main_id,
- </if>
- <if test="formId != null">
- form_id,
- </if>
- <if test="pushUser != null">
- push_user,
- </if>
- <if test="pushUserKey != null">
- push_user_key,
- </if>
- <if test="nodeName != null">
- node_name,
- </if>
- <if test="pushType != null">
- push_type,
- </if>
- <if test="pushRole != null">
- push_role,
- </if>
- <if test="flowType != null">
- flow_type,
- </if>
- <if test="flowPost != null">
- flow_post,
- </if>
- <if test="flowId != null">
- flow_id,
- </if>
- <if test="taskId != null">
- task_id,
- </if>
- <if test="upMainLogId != null">
- up_main_log_id,
- </if>
- <if test="status != null">
- status,
- </if>
- <if test="createdBy != null">
- created_by,
- </if>
- <if test="createdAt != null">
- created_at,
- </if>
- <if test="updatedBy != null">
- updated_by,
- </if>
- <if test="updatedAt != null">
- updated_at,
- </if>
- <if test="groupId != null">
- group_id,
- </if>
- <if test="remark != null">
- remark,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">
- #{id,jdbcType=VARCHAR},
- </if>
- <if test="flowMainId != null">
- #{flowMainId,jdbcType=VARCHAR},
- </if>
- <if test="formId != null">
- #{formId,jdbcType=VARCHAR},
- </if>
- <if test="pushUser != null">
- #{pushUser,jdbcType=VARCHAR},
- </if>
- <if test="pushUserKey != null">
- #{pushUserKey,jdbcType=VARCHAR},
- </if>
- <if test="nodeName != null">
- #{nodeName,jdbcType=VARCHAR},
- </if>
- <if test="pushType != null">
- #{pushType,jdbcType=INTEGER},
- </if>
- <if test="pushRole != null">
- #{pushRole,jdbcType=INTEGER},
- </if>
- <if test="flowType != null">
- #{flowType,jdbcType=VARCHAR},
- </if>
- <if test="flowPost != null">
- #{flowPost,jdbcType=VARCHAR},
- </if>
- <if test="flowId != null">
- #{flowId,jdbcType=VARCHAR},
- </if>
- <if test="taskId != null">
- #{taskId,jdbcType=VARCHAR},
- </if>
- <if test="upMainLogId != null">
- #{upMainLogId,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- #{status,jdbcType=INTEGER},
- </if>
- <if test="createdBy != null">
- #{createdBy,jdbcType=VARCHAR},
- </if>
- <if test="createdAt != null">
- #{createdAt,jdbcType=TIMESTAMP},
- </if>
- <if test="updatedBy != null">
- #{updatedBy,jdbcType=VARCHAR},
- </if>
- <if test="updatedAt != null">
- #{updatedAt,jdbcType=TIMESTAMP},
- </if>
- <if test="groupId != null">
- #{groupId,jdbcType=VARCHAR},
- </if>
- <if test="remark != null">
- #{remark,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.idea.oa.flow2.model.FlowMainPushExample" resultType="java.lang.Long">
- select count(*) from flow_main_push
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update flow_main_push
- <set>
- <if test="record.id != null">
- id = #{record.id,jdbcType=VARCHAR},
- </if>
- <if test="record.flowMainId != null">
- flow_main_id = #{record.flowMainId,jdbcType=VARCHAR},
- </if>
- <if test="record.formId != null">
- form_id = #{record.formId,jdbcType=VARCHAR},
- </if>
- <if test="record.pushUser != null">
- push_user = #{record.pushUser,jdbcType=VARCHAR},
- </if>
- <if test="record.pushUserKey != null">
- push_user_key = #{record.pushUserKey,jdbcType=VARCHAR},
- </if>
- <if test="record.nodeName != null">
- node_name = #{record.nodeName,jdbcType=VARCHAR},
- </if>
- <if test="record.pushType != null">
- push_type = #{record.pushType,jdbcType=INTEGER},
- </if>
- <if test="record.pushRole != null">
- push_role = #{record.pushRole,jdbcType=INTEGER},
- </if>
- <if test="record.flowType != null">
- flow_type = #{record.flowType,jdbcType=VARCHAR},
- </if>
- <if test="record.flowPost != null">
- flow_post = #{record.flowPost,jdbcType=VARCHAR},
- </if>
- <if test="record.flowId != null">
- flow_id = #{record.flowId,jdbcType=VARCHAR},
- </if>
- <if test="record.taskId != null">
- task_id = #{record.taskId,jdbcType=VARCHAR},
- </if>
- <if test="record.upMainLogId != null">
- up_main_log_id = #{record.upMainLogId,jdbcType=VARCHAR},
- </if>
- <if test="record.status != null">
- status = #{record.status,jdbcType=INTEGER},
- </if>
- <if test="record.createdBy != null">
- created_by = #{record.createdBy,jdbcType=VARCHAR},
- </if>
- <if test="record.createdAt != null">
- created_at = #{record.createdAt,jdbcType=TIMESTAMP},
- </if>
- <if test="record.updatedBy != null">
- updated_by = #{record.updatedBy,jdbcType=VARCHAR},
- </if>
- <if test="record.updatedAt != null">
- updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
- </if>
- <if test="record.groupId != null">
- group_id = #{record.groupId,jdbcType=VARCHAR},
- </if>
- <if test="record.remark != null">
- remark = #{record.remark,jdbcType=VARCHAR},
- </if>
- </set>
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update flow_main_push
- set id = #{record.id,jdbcType=VARCHAR},
- flow_main_id = #{record.flowMainId,jdbcType=VARCHAR},
- form_id = #{record.formId,jdbcType=VARCHAR},
- push_user = #{record.pushUser,jdbcType=VARCHAR},
- push_user_key = #{record.pushUserKey,jdbcType=VARCHAR},
- node_name = #{record.nodeName,jdbcType=VARCHAR},
- push_type = #{record.pushType,jdbcType=INTEGER},
- push_role = #{record.pushRole,jdbcType=INTEGER},
- flow_type = #{record.flowType,jdbcType=VARCHAR},
- flow_post = #{record.flowPost,jdbcType=VARCHAR},
- flow_id = #{record.flowId,jdbcType=VARCHAR},
- task_id = #{record.taskId,jdbcType=VARCHAR},
- up_main_log_id = #{record.upMainLogId,jdbcType=VARCHAR},
- status = #{record.status,jdbcType=INTEGER},
- created_by = #{record.createdBy,jdbcType=VARCHAR},
- created_at = #{record.createdAt,jdbcType=TIMESTAMP},
- updated_by = #{record.updatedBy,jdbcType=VARCHAR},
- updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
- group_id = #{record.groupId,jdbcType=VARCHAR},
- remark = #{record.remark,jdbcType=VARCHAR}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.idea.oa.flow2.model.FlowMainPush">
- update flow_main_push
- <set>
- <if test="flowMainId != null">
- flow_main_id = #{flowMainId,jdbcType=VARCHAR},
- </if>
- <if test="formId != null">
- form_id = #{formId,jdbcType=VARCHAR},
- </if>
- <if test="pushUser != null">
- push_user = #{pushUser,jdbcType=VARCHAR},
- </if>
- <if test="pushUserKey != null">
- push_user_key = #{pushUserKey,jdbcType=VARCHAR},
- </if>
- <if test="nodeName != null">
- node_name = #{nodeName,jdbcType=VARCHAR},
- </if>
- <if test="pushType != null">
- push_type = #{pushType,jdbcType=INTEGER},
- </if>
- <if test="pushRole != null">
- push_role = #{pushRole,jdbcType=INTEGER},
- </if>
- <if test="flowType != null">
- flow_type = #{flowType,jdbcType=VARCHAR},
- </if>
- <if test="flowPost != null">
- flow_post = #{flowPost,jdbcType=VARCHAR},
- </if>
- <if test="flowId != null">
- flow_id = #{flowId,jdbcType=VARCHAR},
- </if>
- <if test="taskId != null">
- task_id = #{taskId,jdbcType=VARCHAR},
- </if>
- <if test="upMainLogId != null">
- up_main_log_id = #{upMainLogId,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- status = #{status,jdbcType=INTEGER},
- </if>
- <if test="createdBy != null">
- created_by = #{createdBy,jdbcType=VARCHAR},
- </if>
- <if test="createdAt != null">
- created_at = #{createdAt,jdbcType=TIMESTAMP},
- </if>
- <if test="updatedBy != null">
- updated_by = #{updatedBy,jdbcType=VARCHAR},
- </if>
- <if test="updatedAt != null">
- updated_at = #{updatedAt,jdbcType=TIMESTAMP},
- </if>
- <if test="groupId != null">
- group_id = #{groupId,jdbcType=VARCHAR},
- </if>
- <if test="remark != null">
- remark = #{remark,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.idea.oa.flow2.model.FlowMainPush">
- update flow_main_push
- set flow_main_id = #{flowMainId,jdbcType=VARCHAR},
- form_id = #{formId,jdbcType=VARCHAR},
- push_user = #{pushUser,jdbcType=VARCHAR},
- push_user_key = #{pushUserKey,jdbcType=VARCHAR},
- node_name = #{nodeName,jdbcType=VARCHAR},
- push_type = #{pushType,jdbcType=INTEGER},
- push_role = #{pushRole,jdbcType=INTEGER},
- flow_type = #{flowType,jdbcType=VARCHAR},
- flow_post = #{flowPost,jdbcType=VARCHAR},
- flow_id = #{flowId,jdbcType=VARCHAR},
- task_id = #{taskId,jdbcType=VARCHAR},
- up_main_log_id = #{upMainLogId,jdbcType=VARCHAR},
- status = #{status,jdbcType=INTEGER},
- created_by = #{createdBy,jdbcType=VARCHAR},
- created_at = #{createdAt,jdbcType=TIMESTAMP},
- updated_by = #{updatedBy,jdbcType=VARCHAR},
- updated_at = #{updatedAt,jdbcType=TIMESTAMP},
- group_id = #{groupId,jdbcType=VARCHAR},
- remark = #{remark,jdbcType=VARCHAR}
- where id = #{id,jdbcType=VARCHAR}
- </update>
- </mapper>
|