<?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.HiddenDangerCheckCriteriaMapper" >
|
<resultMap id="BaseResultMap" type="com.gk.firework.Domain.HiddenDangerCheckCriteria" >
|
<!-- -->
|
<id column="id" property="id" jdbcType="BIGINT" />
|
<result column="checkcriteria" property="checkcriteria" jdbcType="VARCHAR" />
|
<result column="basis" property="basis" 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, checkcriteria, basis, belongid, createtime, createby, updatetime, updateby, validflag
|
</sql>
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
<!-- -->
|
select
|
<include refid="Base_Column_List" />
|
from hiddendangercheckcriteria
|
where id = #{id,jdbcType=BIGINT}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
<!-- -->
|
delete from hiddendangercheckcriteria
|
where id = #{id,jdbcType=BIGINT}
|
</delete>
|
<insert id="insert" parameterType="com.gk.firework.Domain.HiddenDangerCheckCriteria" >
|
<!-- -->
|
insert into hiddendangercheckcriteria (id, checkcriteria, basis,
|
belongid, createtime, createby,
|
updatetime, updateby, validflag
|
)
|
values (#{id,jdbcType=BIGINT}, #{checkcriteria,jdbcType=VARCHAR}, #{basis,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.HiddenDangerCheckCriteria" >
|
<!-- -->
|
insert into hiddendangercheckcriteria
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
<if test="id != null" >
|
id,
|
</if>
|
<if test="checkcriteria != null" >
|
checkcriteria,
|
</if>
|
<if test="basis != null" >
|
basis,
|
</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="checkcriteria != null" >
|
#{checkcriteria,jdbcType=VARCHAR},
|
</if>
|
<if test="basis != null" >
|
#{basis,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.HiddenDangerCheckCriteria" >
|
<!-- -->
|
update hiddendangercheckcriteria
|
<set >
|
<if test="checkcriteria != null" >
|
checkcriteria = #{checkcriteria,jdbcType=VARCHAR},
|
</if>
|
<if test="basis != null" >
|
basis = #{basis,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.HiddenDangerCheckCriteria" >
|
<!-- -->
|
update hiddendangercheckcriteria
|
set checkcriteria = #{checkcriteria,jdbcType=VARCHAR},
|
basis = #{basis,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>
|