对比新文件 |
| | |
| | | <?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.gk.firework.Mapper.HiddenDangerCheckTypeMapper" > |
| | | <resultMap id="BaseResultMap" type="com.gk.firework.Domain.HiddenDangerCheckType" > |
| | | <!-- --> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="checktype" property="checktype" jdbcType="VARCHAR" /> |
| | | <result column="belongid" property="belongid" jdbcType="VARCHAR" /> |
| | | <result column="createtime" property="createtime" jdbcType="TIMESTAMP" /> |
| | | <result column="createby" property="createby" jdbcType="VARCHAR" /> |
| | | <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" /> |
| | | <result column="updateby" property="updateby" jdbcType="VARCHAR" /> |
| | | <result column="validflag" property="validflag" jdbcType="BIT" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | <!-- --> |
| | | id, checktype, belongid, createtime, createby, updatetime, updateby, validflag |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" > |
| | | <!-- --> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from hiddendangerchecktype |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > |
| | | <!-- --> |
| | | delete from hiddendangerchecktype |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.gk.firework.Domain.HiddenDangerCheckType" > |
| | | <!-- --> |
| | | insert into hiddendangerchecktype (id, checktype, belongid, |
| | | createtime, createby, updatetime, |
| | | updateby, validflag) |
| | | values (#{id,jdbcType=BIGINT}, #{checktype,jdbcType=VARCHAR}, #{belongid,jdbcType=VARCHAR}, |
| | | #{createtime,jdbcType=TIMESTAMP}, #{createby,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, |
| | | #{updateby,jdbcType=VARCHAR}, #{validflag,jdbcType=BIT}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.gk.firework.Domain.HiddenDangerCheckType" > |
| | | <!-- --> |
| | | insert into hiddendangerchecktype |
| | | <trim prefix="(" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | id, |
| | | </if> |
| | | <if test="checktype != null" > |
| | | checktype, |
| | | </if> |
| | | <if test="belongid != null" > |
| | | belongid, |
| | | </if> |
| | | <if test="createtime != null" > |
| | | createtime, |
| | | </if> |
| | | <if test="createby != null" > |
| | | createby, |
| | | </if> |
| | | <if test="updatetime != null" > |
| | | updatetime, |
| | | </if> |
| | | <if test="updateby != null" > |
| | | updateby, |
| | | </if> |
| | | <if test="validflag != null" > |
| | | validflag, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | #{id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="checktype != null" > |
| | | #{checktype,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="belongid != null" > |
| | | #{belongid,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="createtime != null" > |
| | | #{createtime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="createby != null" > |
| | | #{createby,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="updatetime != null" > |
| | | #{updatetime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateby != null" > |
| | | #{updateby,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="validflag != null" > |
| | | #{validflag,jdbcType=BIT}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.HiddenDangerCheckType" > |
| | | <!-- --> |
| | | update hiddendangerchecktype |
| | | <set > |
| | | <if test="checktype != null" > |
| | | checktype = #{checktype,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="belongid != null" > |
| | | belongid = #{belongid,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="createtime != null" > |
| | | createtime = #{createtime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="createby != null" > |
| | | createby = #{createby,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="updatetime != null" > |
| | | updatetime = #{updatetime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateby != null" > |
| | | updateby = #{updateby,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="validflag != null" > |
| | | validflag = #{validflag,jdbcType=BIT}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.gk.firework.Domain.HiddenDangerCheckType" > |
| | | <!-- --> |
| | | update hiddendangerchecktype |
| | | set checktype = #{checktype,jdbcType=VARCHAR}, |
| | | belongid = #{belongid,jdbcType=VARCHAR}, |
| | | createtime = #{createtime,jdbcType=TIMESTAMP}, |
| | | createby = #{createby,jdbcType=VARCHAR}, |
| | | updatetime = #{updatetime,jdbcType=TIMESTAMP}, |
| | | updateby = #{updateby,jdbcType=VARCHAR}, |
| | | validflag = #{validflag,jdbcType=BIT} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |