对比新文件 |
| | |
| | | <?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.ContractFileMapper" > |
| | | <resultMap id="BaseResultMap" type="com.gk.firework.Domain.ContractFile" > |
| | | <!-- --> |
| | | <result column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="ordercode" property="ordercode" jdbcType="VARCHAR" /> |
| | | <result column="filename" property="filename" jdbcType="VARCHAR" /> |
| | | <result column="url" property="url" jdbcType="VARCHAR" /> |
| | | <result column="validflag" property="validflag" jdbcType="BIT" /> |
| | | <result column="createtime" property="createtime" jdbcType="TIMESTAMP" /> |
| | | <result column="createby" property="createby" jdbcType="BIGINT" /> |
| | | <result column="createbyname" property="createbyname" jdbcType="VARCHAR" /> |
| | | <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" /> |
| | | <result column="updateby" property="updateby" jdbcType="BIGINT" /> |
| | | <result column="updatebyname" property="updatebyname" jdbcType="VARCHAR" /> |
| | | </resultMap> |
| | | <insert id="insert" parameterType="com.gk.firework.Domain.ContractFile" > |
| | | <!-- --> |
| | | insert into contractfile (id, ordercode, filename, |
| | | url, validflag, createtime, |
| | | createby, createbyname, updatetime, |
| | | updateby, updatebyname) |
| | | values (#{id,jdbcType=BIGINT}, #{ordercode,jdbcType=VARCHAR}, #{filename,jdbcType=VARCHAR}, |
| | | #{url,jdbcType=VARCHAR}, #{validflag,jdbcType=BIT}, #{createtime,jdbcType=TIMESTAMP}, |
| | | #{createby,jdbcType=BIGINT}, #{createbyname,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, |
| | | #{updateby,jdbcType=BIGINT}, #{updatebyname,jdbcType=VARCHAR}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.gk.firework.Domain.ContractFile" > |
| | | <!-- --> |
| | | insert into contractfile |
| | | <trim prefix="(" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | id, |
| | | </if> |
| | | <if test="ordercode != null" > |
| | | ordercode, |
| | | </if> |
| | | <if test="filename != null" > |
| | | filename, |
| | | </if> |
| | | <if test="url != null" > |
| | | url, |
| | | </if> |
| | | <if test="validflag != null" > |
| | | validflag, |
| | | </if> |
| | | <if test="createtime != null" > |
| | | createtime, |
| | | </if> |
| | | <if test="createby != null" > |
| | | createby, |
| | | </if> |
| | | <if test="createbyname != null" > |
| | | createbyname, |
| | | </if> |
| | | <if test="updatetime != null" > |
| | | updatetime, |
| | | </if> |
| | | <if test="updateby != null" > |
| | | updateby, |
| | | </if> |
| | | <if test="updatebyname != null" > |
| | | updatebyname, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | #{id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="ordercode != null" > |
| | | #{ordercode,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="filename != null" > |
| | | #{filename,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="url != null" > |
| | | #{url,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="validflag != null" > |
| | | #{validflag,jdbcType=BIT}, |
| | | </if> |
| | | <if test="createtime != null" > |
| | | #{createtime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="createby != null" > |
| | | #{createby,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createbyname != null" > |
| | | #{createbyname,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="updatetime != null" > |
| | | #{updatetime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateby != null" > |
| | | #{updateby,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updatebyname != null" > |
| | | #{updatebyname,jdbcType=VARCHAR}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | </mapper> |