123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465 |
- <?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.FlowMainLogMapper">
- <resultMap id="BaseResultMap" type="com.idea.oa.flow2.model.FlowMainLog">
- <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="audit_user" jdbcType="VARCHAR" property="auditUser" />
- <result column="audit_content" jdbcType="VARCHAR" property="auditContent" />
- <result column="audit_result" jdbcType="VARCHAR" property="auditResult" />
- <result column="audit_type" jdbcType="VARCHAR" property="auditType" />
- <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="next_persons" jdbcType="VARCHAR" property="nextPersons" />
- <result column="up_main_log_id" jdbcType="VARCHAR" property="upMainLogId" />
- <result column="cc_list" jdbcType="VARCHAR" property="ccList" />
- <result column="push_user_key" jdbcType="VARCHAR" property="pushUserKey" />
- <result column="node_name" jdbcType="VARCHAR" property="nodeName" />
- <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="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, audit_user, audit_content, audit_result, audit_type, flow_type,
- flow_post, flow_id, task_id, next_persons, up_main_log_id, cc_list, push_user_key,
- node_name, status, created_by, created_at, group_id, remark
- </sql>
- <select id="selectByExample" parameterType="com.idea.oa.flow2.model.FlowMainLogExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from flow_main_log
- <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_log
- where id = #{id,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from flow_main_log
- where id = #{id,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.idea.oa.flow2.model.FlowMainLogExample">
- delete from flow_main_log
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.idea.oa.flow2.model.FlowMainLog">
- insert into flow_main_log (id, flow_main_id, form_id,
- audit_user, audit_content, audit_result,
- audit_type, flow_type, flow_post,
- flow_id, task_id, next_persons,
- up_main_log_id, cc_list, push_user_key,
- node_name, status, created_by,
- created_at, group_id, remark
- )
- values (#{id,jdbcType=VARCHAR}, #{flowMainId,jdbcType=VARCHAR}, #{formId,jdbcType=VARCHAR},
- #{auditUser,jdbcType=VARCHAR}, #{auditContent,jdbcType=VARCHAR}, #{auditResult,jdbcType=VARCHAR},
- #{auditType,jdbcType=VARCHAR}, #{flowType,jdbcType=VARCHAR}, #{flowPost,jdbcType=VARCHAR},
- #{flowId,jdbcType=VARCHAR}, #{taskId,jdbcType=VARCHAR}, #{nextPersons,jdbcType=VARCHAR},
- #{upMainLogId,jdbcType=VARCHAR}, #{ccList,jdbcType=VARCHAR}, #{pushUserKey,jdbcType=VARCHAR},
- #{nodeName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createdBy,jdbcType=VARCHAR},
- #{createdAt,jdbcType=TIMESTAMP}, #{groupId,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.idea.oa.flow2.model.FlowMainLog">
- insert into flow_main_log
- <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="auditUser != null">
- audit_user,
- </if>
- <if test="auditContent != null">
- audit_content,
- </if>
- <if test="auditResult != null">
- audit_result,
- </if>
- <if test="auditType != null">
- audit_type,
- </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="nextPersons != null">
- next_persons,
- </if>
- <if test="upMainLogId != null">
- up_main_log_id,
- </if>
- <if test="ccList != null">
- cc_list,
- </if>
- <if test="pushUserKey != null">
- push_user_key,
- </if>
- <if test="nodeName != null">
- node_name,
- </if>
- <if test="status != null">
- status,
- </if>
- <if test="createdBy != null">
- created_by,
- </if>
- <if test="createdAt != null">
- created_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="auditUser != null">
- #{auditUser,jdbcType=VARCHAR},
- </if>
- <if test="auditContent != null">
- #{auditContent,jdbcType=VARCHAR},
- </if>
- <if test="auditResult != null">
- #{auditResult,jdbcType=VARCHAR},
- </if>
- <if test="auditType != null">
- #{auditType,jdbcType=VARCHAR},
- </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="nextPersons != null">
- #{nextPersons,jdbcType=VARCHAR},
- </if>
- <if test="upMainLogId != null">
- #{upMainLogId,jdbcType=VARCHAR},
- </if>
- <if test="ccList != null">
- #{ccList,jdbcType=VARCHAR},
- </if>
- <if test="pushUserKey != null">
- #{pushUserKey,jdbcType=VARCHAR},
- </if>
- <if test="nodeName != null">
- #{nodeName,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="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.FlowMainLogExample" resultType="java.lang.Long">
- select count(*) from flow_main_log
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update flow_main_log
- <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.auditUser != null">
- audit_user = #{record.auditUser,jdbcType=VARCHAR},
- </if>
- <if test="record.auditContent != null">
- audit_content = #{record.auditContent,jdbcType=VARCHAR},
- </if>
- <if test="record.auditResult != null">
- audit_result = #{record.auditResult,jdbcType=VARCHAR},
- </if>
- <if test="record.auditType != null">
- audit_type = #{record.auditType,jdbcType=VARCHAR},
- </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.nextPersons != null">
- next_persons = #{record.nextPersons,jdbcType=VARCHAR},
- </if>
- <if test="record.upMainLogId != null">
- up_main_log_id = #{record.upMainLogId,jdbcType=VARCHAR},
- </if>
- <if test="record.ccList != null">
- cc_list = #{record.ccList,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.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.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_log
- set id = #{record.id,jdbcType=VARCHAR},
- flow_main_id = #{record.flowMainId,jdbcType=VARCHAR},
- form_id = #{record.formId,jdbcType=VARCHAR},
- audit_user = #{record.auditUser,jdbcType=VARCHAR},
- audit_content = #{record.auditContent,jdbcType=VARCHAR},
- audit_result = #{record.auditResult,jdbcType=VARCHAR},
- audit_type = #{record.auditType,jdbcType=VARCHAR},
- flow_type = #{record.flowType,jdbcType=VARCHAR},
- flow_post = #{record.flowPost,jdbcType=VARCHAR},
- flow_id = #{record.flowId,jdbcType=VARCHAR},
- task_id = #{record.taskId,jdbcType=VARCHAR},
- next_persons = #{record.nextPersons,jdbcType=VARCHAR},
- up_main_log_id = #{record.upMainLogId,jdbcType=VARCHAR},
- cc_list = #{record.ccList,jdbcType=VARCHAR},
- push_user_key = #{record.pushUserKey,jdbcType=VARCHAR},
- node_name = #{record.nodeName,jdbcType=VARCHAR},
- status = #{record.status,jdbcType=INTEGER},
- created_by = #{record.createdBy,jdbcType=VARCHAR},
- created_at = #{record.createdAt,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.FlowMainLog">
- update flow_main_log
- <set>
- <if test="flowMainId != null">
- flow_main_id = #{flowMainId,jdbcType=VARCHAR},
- </if>
- <if test="formId != null">
- form_id = #{formId,jdbcType=VARCHAR},
- </if>
- <if test="auditUser != null">
- audit_user = #{auditUser,jdbcType=VARCHAR},
- </if>
- <if test="auditContent != null">
- audit_content = #{auditContent,jdbcType=VARCHAR},
- </if>
- <if test="auditResult != null">
- audit_result = #{auditResult,jdbcType=VARCHAR},
- </if>
- <if test="auditType != null">
- audit_type = #{auditType,jdbcType=VARCHAR},
- </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="nextPersons != null">
- next_persons = #{nextPersons,jdbcType=VARCHAR},
- </if>
- <if test="upMainLogId != null">
- up_main_log_id = #{upMainLogId,jdbcType=VARCHAR},
- </if>
- <if test="ccList != null">
- cc_list = #{ccList,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="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="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.FlowMainLog">
- update flow_main_log
- set flow_main_id = #{flowMainId,jdbcType=VARCHAR},
- form_id = #{formId,jdbcType=VARCHAR},
- audit_user = #{auditUser,jdbcType=VARCHAR},
- audit_content = #{auditContent,jdbcType=VARCHAR},
- audit_result = #{auditResult,jdbcType=VARCHAR},
- audit_type = #{auditType,jdbcType=VARCHAR},
- flow_type = #{flowType,jdbcType=VARCHAR},
- flow_post = #{flowPost,jdbcType=VARCHAR},
- flow_id = #{flowId,jdbcType=VARCHAR},
- task_id = #{taskId,jdbcType=VARCHAR},
- next_persons = #{nextPersons,jdbcType=VARCHAR},
- up_main_log_id = #{upMainLogId,jdbcType=VARCHAR},
- cc_list = #{ccList,jdbcType=VARCHAR},
- push_user_key = #{pushUserKey,jdbcType=VARCHAR},
- node_name = #{nodeName,jdbcType=VARCHAR},
- status = #{status,jdbcType=INTEGER},
- created_by = #{createdBy,jdbcType=VARCHAR},
- created_at = #{createdAt,jdbcType=TIMESTAMP},
- group_id = #{groupId,jdbcType=VARCHAR},
- remark = #{remark,jdbcType=VARCHAR}
- where id = #{id,jdbcType=VARCHAR}
- </update>
- </mapper>
|