|
@@ -0,0 +1,320 @@
|
|
|
+<?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.ghsc.partybuild.mapper.PfReportsystemMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.ghsc.partybuild.model.PfReportsystem">
|
|
|
+ <id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
+ <result column="zt" jdbcType="VARCHAR" property="zt" />
|
|
|
+ <result column="dx" jdbcType="VARCHAR" property="dx" />
|
|
|
+ <result column="dzzdm" jdbcType="VARCHAR" property="dzzdm" />
|
|
|
+ <result column="qssj" jdbcType="DATE" property="qssj" />
|
|
|
+ <result column="sx" jdbcType="VARCHAR" property="sx" />
|
|
|
+ <result column="fs" jdbcType="VARCHAR" property="fs" />
|
|
|
+ <result column="fkqk" jdbcType="VARCHAR" property="fkqk" />
|
|
|
+ <result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
|
|
|
+ <result column="createUserId" jdbcType="VARCHAR" property="createuserid" />
|
|
|
+ <result column="updateTime" jdbcType="TIMESTAMP" property="updatetime" />
|
|
|
+ <result column="updateUserId" jdbcType="VARCHAR" property="updateuserid" />
|
|
|
+ </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, zt, dx, dzzdm, qssj, sx, fs, fkqk, createTime, createUserId, updateTime, updateUserId
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.ghsc.partybuild.model.PfReportsystemExample" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from pf_reportsystem
|
|
|
+ <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 pf_reportsystem
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
+ delete from pf_reportsystem
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.ghsc.partybuild.model.PfReportsystemExample">
|
|
|
+ delete from pf_reportsystem
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.ghsc.partybuild.model.PfReportsystem">
|
|
|
+ insert into pf_reportsystem (id, zt, dx, dzzdm,
|
|
|
+ qssj, sx, fs, fkqk,
|
|
|
+ createTime, createUserId, updateTime,
|
|
|
+ updateUserId)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{zt,jdbcType=VARCHAR}, #{dx,jdbcType=VARCHAR}, #{dzzdm,jdbcType=VARCHAR},
|
|
|
+ #{qssj,jdbcType=DATE}, #{sx,jdbcType=VARCHAR}, #{fs,jdbcType=VARCHAR}, #{fkqk,jdbcType=VARCHAR},
|
|
|
+ #{createtime,jdbcType=TIMESTAMP}, #{createuserid,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateuserid,jdbcType=VARCHAR})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.ghsc.partybuild.model.PfReportsystem">
|
|
|
+ insert into pf_reportsystem
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ id,
|
|
|
+ </if>
|
|
|
+ <if test="zt != null">
|
|
|
+ zt,
|
|
|
+ </if>
|
|
|
+ <if test="dx != null">
|
|
|
+ dx,
|
|
|
+ </if>
|
|
|
+ <if test="dzzdm != null">
|
|
|
+ dzzdm,
|
|
|
+ </if>
|
|
|
+ <if test="qssj != null">
|
|
|
+ qssj,
|
|
|
+ </if>
|
|
|
+ <if test="sx != null">
|
|
|
+ sx,
|
|
|
+ </if>
|
|
|
+ <if test="fs != null">
|
|
|
+ fs,
|
|
|
+ </if>
|
|
|
+ <if test="fkqk != null">
|
|
|
+ fkqk,
|
|
|
+ </if>
|
|
|
+ <if test="createtime != null">
|
|
|
+ createTime,
|
|
|
+ </if>
|
|
|
+ <if test="createuserid != null">
|
|
|
+ createUserId,
|
|
|
+ </if>
|
|
|
+ <if test="updatetime != null">
|
|
|
+ updateTime,
|
|
|
+ </if>
|
|
|
+ <if test="updateuserid != null">
|
|
|
+ updateUserId,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="zt != null">
|
|
|
+ #{zt,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="dx != null">
|
|
|
+ #{dx,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="dzzdm != null">
|
|
|
+ #{dzzdm,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="qssj != null">
|
|
|
+ #{qssj,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="sx != null">
|
|
|
+ #{sx,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="fs != null">
|
|
|
+ #{fs,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="fkqk != null">
|
|
|
+ #{fkqk,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createtime != null">
|
|
|
+ #{createtime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="createuserid != null">
|
|
|
+ #{createuserid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updatetime != null">
|
|
|
+ #{updatetime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateuserid != null">
|
|
|
+ #{updateuserid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.ghsc.partybuild.model.PfReportsystemExample" resultType="java.lang.Long">
|
|
|
+ select count(*) from pf_reportsystem
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ update pf_reportsystem
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.zt != null">
|
|
|
+ zt = #{record.zt,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.dx != null">
|
|
|
+ dx = #{record.dx,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.dzzdm != null">
|
|
|
+ dzzdm = #{record.dzzdm,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.qssj != null">
|
|
|
+ qssj = #{record.qssj,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="record.sx != null">
|
|
|
+ sx = #{record.sx,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.fs != null">
|
|
|
+ fs = #{record.fs,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.fkqk != null">
|
|
|
+ fkqk = #{record.fkqk,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.createtime != null">
|
|
|
+ createTime = #{record.createtime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.createuserid != null">
|
|
|
+ createUserId = #{record.createuserid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.updatetime != null">
|
|
|
+ updateTime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.updateuserid != null">
|
|
|
+ updateUserId = #{record.updateuserid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ update pf_reportsystem
|
|
|
+ set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ zt = #{record.zt,jdbcType=VARCHAR},
|
|
|
+ dx = #{record.dx,jdbcType=VARCHAR},
|
|
|
+ dzzdm = #{record.dzzdm,jdbcType=VARCHAR},
|
|
|
+ qssj = #{record.qssj,jdbcType=DATE},
|
|
|
+ sx = #{record.sx,jdbcType=VARCHAR},
|
|
|
+ fs = #{record.fs,jdbcType=VARCHAR},
|
|
|
+ fkqk = #{record.fkqk,jdbcType=VARCHAR},
|
|
|
+ createTime = #{record.createtime,jdbcType=TIMESTAMP},
|
|
|
+ createUserId = #{record.createuserid,jdbcType=VARCHAR},
|
|
|
+ updateTime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
|
+ updateUserId = #{record.updateuserid,jdbcType=VARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.ghsc.partybuild.model.PfReportsystem">
|
|
|
+ update pf_reportsystem
|
|
|
+ <set>
|
|
|
+ <if test="zt != null">
|
|
|
+ zt = #{zt,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="dx != null">
|
|
|
+ dx = #{dx,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="dzzdm != null">
|
|
|
+ dzzdm = #{dzzdm,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="qssj != null">
|
|
|
+ qssj = #{qssj,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="sx != null">
|
|
|
+ sx = #{sx,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="fs != null">
|
|
|
+ fs = #{fs,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="fkqk != null">
|
|
|
+ fkqk = #{fkqk,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createtime != null">
|
|
|
+ createTime = #{createtime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="createuserid != null">
|
|
|
+ createUserId = #{createuserid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updatetime != null">
|
|
|
+ updateTime = #{updatetime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateuserid != null">
|
|
|
+ updateUserId = #{updateuserid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.ghsc.partybuild.model.PfReportsystem">
|
|
|
+ update pf_reportsystem
|
|
|
+ set zt = #{zt,jdbcType=VARCHAR},
|
|
|
+ dx = #{dx,jdbcType=VARCHAR},
|
|
|
+ dzzdm = #{dzzdm,jdbcType=VARCHAR},
|
|
|
+ qssj = #{qssj,jdbcType=DATE},
|
|
|
+ sx = #{sx,jdbcType=VARCHAR},
|
|
|
+ fs = #{fs,jdbcType=VARCHAR},
|
|
|
+ fkqk = #{fkqk,jdbcType=VARCHAR},
|
|
|
+ createTime = #{createtime,jdbcType=TIMESTAMP},
|
|
|
+ createUserId = #{createuserid,jdbcType=VARCHAR},
|
|
|
+ updateTime = #{updatetime,jdbcType=TIMESTAMP},
|
|
|
+ updateUserId = #{updateuserid,jdbcType=VARCHAR}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+</mapper>
|