对比新文件 |
| | |
| | | <?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.TransportPersonMapper" > |
| | | <resultMap id="BaseResultMap" type="com.gk.firework.Domain.TransportPerson" > |
| | | <!-- --> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="type" property="type" jdbcType="VARCHAR" /> |
| | | <result column="name" property="name" jdbcType="VARCHAR" /> |
| | | <result column="identify" property="identify" jdbcType="VARCHAR" /> |
| | | <result column="certificate" property="certificate" jdbcType="VARCHAR" /> |
| | | <result column="validtime" property="validtime" jdbcType="TIMESTAMP" /> |
| | | <result column="createby" property="createby" jdbcType="BIGINT" /> |
| | | <result column="createbyname" property="createbyname" jdbcType="VARCHAR" /> |
| | | <result column="updateby" property="updateby" jdbcType="BIGINT" /> |
| | | <result column="updatebyname" property="updatebyname" jdbcType="VARCHAR" /> |
| | | <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" /> |
| | | <result column="createtime" property="createtime" jdbcType="TIMESTAMP" /> |
| | | <result column="phone" property="phone" jdbcType="VARCHAR" /> |
| | | <result column="validflag" property="validflag" jdbcType="BIT" /> |
| | | <result column="belongid" property="belongid" jdbcType="BIGINT" /> |
| | | <result column="belongname" property="belongname" jdbcType="VARCHAR" /> |
| | | </resultMap> |
| | | |
| | | <insert id="insertSelective" parameterType="com.gk.firework.Domain.TransportPerson" > |
| | | <!-- --> |
| | | insert into transportperson |
| | | <trim prefix="(" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | id, |
| | | </if> |
| | | <if test="type != null" > |
| | | type, |
| | | </if> |
| | | <if test="name != null" > |
| | | name, |
| | | </if> |
| | | <if test="identify != null" > |
| | | identify, |
| | | </if> |
| | | <if test="certificate != null" > |
| | | certificate, |
| | | </if> |
| | | <if test="validtime != null" > |
| | | validtime, |
| | | </if> |
| | | <if test="createby != null" > |
| | | createby, |
| | | </if> |
| | | <if test="createbyname != null" > |
| | | createbyname, |
| | | </if> |
| | | <if test="updateby != null" > |
| | | updateby, |
| | | </if> |
| | | <if test="updatebyname != null" > |
| | | updatebyname, |
| | | </if> |
| | | <if test="updatetime != null" > |
| | | updatetime, |
| | | </if> |
| | | <if test="createtime != null" > |
| | | createtime, |
| | | </if> |
| | | <if test="validflag != null" > |
| | | validflag, |
| | | </if> |
| | | <if test="belongid != null" > |
| | | belongid, |
| | | </if> |
| | | <if test="belongname != null" > |
| | | belongname, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | #{id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="type != null" > |
| | | #{type,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="name != null" > |
| | | #{name,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="identify != null" > |
| | | #{identify,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="certificate != null" > |
| | | #{certificate,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="validtime != null" > |
| | | #{validtime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="createby != null" > |
| | | #{createby,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createbyname != null" > |
| | | #{createbyname,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="updateby != null" > |
| | | #{updateby,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updatebyname != null" > |
| | | #{updatebyname,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="updatetime != null" > |
| | | #{updatetime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="createtime != null" > |
| | | #{createtime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="validflag != null" > |
| | | #{validflag,jdbcType=BIT}, |
| | | </if> |
| | | <if test="belongid != null" > |
| | | #{belongid,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="belongname != null" > |
| | | #{belongname,jdbcType=VARCHAR}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.TransportPerson" > |
| | | <!-- --> |
| | | update transportperson |
| | | <set > |
| | | <if test="type != null" > |
| | | type = #{type,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="name != null" > |
| | | name = #{name,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="identify != null" > |
| | | identify = #{identify,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="certificate != null" > |
| | | certificate = #{certificate,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="validtime != null" > |
| | | validtime = #{validtime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="createby != null" > |
| | | createby = #{createby,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createbyname != null" > |
| | | createbyname = #{createbyname,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="updateby != null" > |
| | | updateby = #{updateby,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updatebyname != null" > |
| | | updatebyname = #{updatebyname,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="updatetime != null" > |
| | | updatetime = #{updatetime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="createtime != null" > |
| | | createtime = #{createtime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="validflag != null" > |
| | | validflag = #{validflag,jdbcType=BIT}, |
| | | </if> |
| | | <if test="belongid != null" > |
| | | belongid = #{belongid,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="belongname != null" > |
| | | belongname = #{belongname,jdbcType=VARCHAR}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.gk.firework.Domain.TransportPerson" > |
| | | <!-- --> |
| | | update transportperson |
| | | set type = #{type,jdbcType=VARCHAR}, |
| | | name = #{name,jdbcType=VARCHAR}, |
| | | identify = #{identify,jdbcType=VARCHAR}, |
| | | certificate = #{certificate,jdbcType=VARCHAR}, |
| | | validtime = #{validtime,jdbcType=TIMESTAMP}, |
| | | createby = #{createby,jdbcType=BIGINT}, |
| | | createbyname = #{createbyname,jdbcType=VARCHAR}, |
| | | updateby = #{updateby,jdbcType=BIGINT}, |
| | | updatebyname = #{updatebyname,jdbcType=VARCHAR}, |
| | | updatetime = #{updatetime,jdbcType=TIMESTAMP}, |
| | | createtime = #{createtime,jdbcType=TIMESTAMP}, |
| | | validflag = #{validflag,jdbcType=BIT}, |
| | | belongid = #{belongid,jdbcType=BIGINT}, |
| | | belongname = #{belongname,jdbcType=VARCHAR} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |