From 2fcd97552d16718cc7997629fd637a73a5a4483f Mon Sep 17 00:00:00 2001 From: 郑永安 <zyazyz250@sina.com> Date: 星期一, 19 六月 2023 14:44:19 +0800 Subject: [PATCH] 删除 --- src/main/java/com/gk/firework/Mapper/mybatis/TransportCarrierMapper.xml | 195 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 195 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/gk/firework/Mapper/mybatis/TransportCarrierMapper.xml b/src/main/java/com/gk/firework/Mapper/mybatis/TransportCarrierMapper.xml new file mode 100644 index 0000000..f108f57 --- /dev/null +++ b/src/main/java/com/gk/firework/Mapper/mybatis/TransportCarrierMapper.xml @@ -0,0 +1,195 @@ +<?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.TransportCarrierMapper" > + <resultMap id="BaseResultMap" type="com.gk.firework.Domain.TransportCarrier" > + <!-- --> + <id column="id" property="id" jdbcType="BIGINT" /> + <result column="companyname" property="companyname" jdbcType="VARCHAR" /> + <result column="number" property="number" jdbcType="VARCHAR" /> + <result column="address" property="address" jdbcType="VARCHAR" /> + <result column="name" property="name" jdbcType="VARCHAR" /> + <result column="phone" property="phone" 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="validflag" property="validflag" jdbcType="BIT" /> + </resultMap> + <sql id="Base_Column_List" > + <!-- --> + id, companyname, number, address, name, phone, validtime, createby, createbyname, + updateby, updatebyname, updatetime, createtime, validflag + </sql> + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" > + <!-- --> + select + <include refid="Base_Column_List" /> + from transportcarrier + where id = #{id,jdbcType=BIGINT} + </select> + <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > + <!-- --> + delete from transportcarrier + where id = #{id,jdbcType=BIGINT} + </delete> + + <insert id="insertSelective" parameterType="com.gk.firework.Domain.TransportCarrier" > + <!-- --> + insert into transportcarrier + <trim prefix="(" suffix=")" suffixOverrides="," > + <if test="id != null" > + id, + </if> + <if test="companyname != null" > + companyname, + </if> + <if test="number != null" > + number, + </if> + <if test="address != null" > + address, + </if> + <if test="name != null" > + name, + </if> + <if test="phone != null" > + phone, + </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> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides="," > + <if test="id != null" > + #{id,jdbcType=BIGINT}, + </if> + <if test="companyname != null" > + #{companyname,jdbcType=VARCHAR}, + </if> + <if test="number != null" > + #{number,jdbcType=VARCHAR}, + </if> + <if test="address != null" > + #{address,jdbcType=VARCHAR}, + </if> + <if test="name != null" > + #{name,jdbcType=VARCHAR}, + </if> + <if test="phone != null" > + #{phone,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> + </trim> + </insert> + <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.TransportCarrier" > + <!-- --> + update transportcarrier + <set > + <if test="companyname != null" > + companyname = #{companyname,jdbcType=VARCHAR}, + </if> + <if test="number != null" > + number = #{number,jdbcType=VARCHAR}, + </if> + <if test="address != null" > + address = #{address,jdbcType=VARCHAR}, + </if> + <if test="name != null" > + name = #{name,jdbcType=VARCHAR}, + </if> + <if test="phone != null" > + phone = #{phone,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> + </set> + where id = #{id,jdbcType=BIGINT} + </update> + <update id="updateByPrimaryKey" parameterType="com.gk.firework.Domain.TransportCarrier" > + <!-- --> + update transportcarrier + set companyname = #{companyname,jdbcType=VARCHAR}, + number = #{number,jdbcType=VARCHAR}, + address = #{address,jdbcType=VARCHAR}, + name = #{name,jdbcType=VARCHAR}, + phone = #{phone,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} + where id = #{id,jdbcType=BIGINT} + </update> +</mapper> \ No newline at end of file -- Gitblit v1.9.2