123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494 |
- <?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.minpay.db.table.mapper.VmDeliveryInfMapper">
- <resultMap id="BaseResultMap" type="com.minpay.db.table.model.VmDeliveryInf">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- <id column="VDI_DELIVERY_ID" jdbcType="VARCHAR" property="deliveryId" />
- <result column="VDI_CHANNEL" jdbcType="VARCHAR" property="channel" />
- <result column="VDI_EQUIPMENT_ID" jdbcType="VARCHAR" property="equipmentId" />
- <result column="VDI_PERSON_ID" jdbcType="VARCHAR" property="personId" />
- <result column="VDI_ORD_DET_ID" jdbcType="VARCHAR" property="ordDetId" />
- <result column="VDI_PRO_TYPE" jdbcType="VARCHAR" property="proType" />
- <result column="VDI_PRO_NAME" jdbcType="VARCHAR" property="proName" />
- <result column="VDI_PRO_PRICE" jdbcType="VARCHAR" property="proPrice" />
- <result column="VDI_PRO_NUMS" jdbcType="VARCHAR" property="proNums" />
- <result column="VDI_AMOUNT" jdbcType="VARCHAR" property="amount" />
- <result column="VDI_STATUS" jdbcType="VARCHAR" property="status" />
- <result column="VDI_CARGO_WAY" jdbcType="VARCHAR" property="cargoWay" />
- <result column="VDI_DELIVERY_NUMS" jdbcType="VARCHAR" property="deliveryNums" />
- <result column="VDI_REMARKS" jdbcType="VARCHAR" property="remarks" />
- <result column="VDI_CREATE_USER" jdbcType="VARCHAR" property="createUser" />
- <result column="VDI_CREATE_TIME" jdbcType="VARCHAR" property="createTime" />
- <result column="VDI_MODIFY_USER" jdbcType="VARCHAR" property="modifyUser" />
- <result column="VDI_MODIFY_TIME" jdbcType="VARCHAR" property="modifyTime" />
- <result column="VDI_BRANCHID" jdbcType="VARCHAR" property="branchid" />
- </resultMap>
- <sql id="Example_Where_Clause">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- <where>
- <foreach collection="oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Update_By_Example_Where_Clause">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- <where>
- <foreach collection="example.oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Base_Column_List">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- VDI_DELIVERY_ID, VDI_CHANNEL, VDI_EQUIPMENT_ID, VDI_PERSON_ID, VDI_ORD_DET_ID, VDI_PRO_TYPE,
- VDI_PRO_NAME, VDI_PRO_PRICE, VDI_PRO_NUMS, VDI_AMOUNT, VDI_STATUS, VDI_CARGO_WAY,
- VDI_DELIVERY_NUMS, VDI_REMARKS, VDI_CREATE_USER, VDI_CREATE_TIME, VDI_MODIFY_USER,
- VDI_MODIFY_TIME, VDI_BRANCHID
- </sql>
- <select id="selectByExample" parameterType="com.minpay.db.table.model.VmDeliveryInfExample" resultMap="BaseResultMap">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from vm_delivery_inf
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null">
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- select
- <include refid="Base_Column_List" />
- from vm_delivery_inf
- where VDI_DELIVERY_ID = #{deliveryId,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- delete from vm_delivery_inf
- where VDI_DELIVERY_ID = #{deliveryId,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.minpay.db.table.model.VmDeliveryInfExample">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- delete from vm_delivery_inf
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.minpay.db.table.model.VmDeliveryInf">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- insert into vm_delivery_inf (VDI_DELIVERY_ID, VDI_CHANNEL, VDI_EQUIPMENT_ID,
- VDI_PERSON_ID, VDI_ORD_DET_ID, VDI_PRO_TYPE,
- VDI_PRO_NAME, VDI_PRO_PRICE, VDI_PRO_NUMS,
- VDI_AMOUNT, VDI_STATUS, VDI_CARGO_WAY,
- VDI_DELIVERY_NUMS, VDI_REMARKS, VDI_CREATE_USER,
- VDI_CREATE_TIME, VDI_MODIFY_USER, VDI_MODIFY_TIME,
- VDI_BRANCHID)
- values (#{deliveryId,jdbcType=VARCHAR}, #{channel,jdbcType=VARCHAR}, #{equipmentId,jdbcType=VARCHAR},
- #{personId,jdbcType=VARCHAR}, #{ordDetId,jdbcType=VARCHAR}, #{proType,jdbcType=VARCHAR},
- #{proName,jdbcType=VARCHAR}, #{proPrice,jdbcType=VARCHAR}, #{proNums,jdbcType=VARCHAR},
- #{amount,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{cargoWay,jdbcType=VARCHAR},
- #{deliveryNums,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
- #{createTime,jdbcType=VARCHAR}, #{modifyUser,jdbcType=VARCHAR}, #{modifyTime,jdbcType=VARCHAR},
- #{branchid,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.minpay.db.table.model.VmDeliveryInf">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- insert into vm_delivery_inf
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="deliveryId != null">
- VDI_DELIVERY_ID,
- </if>
- <if test="channel != null">
- VDI_CHANNEL,
- </if>
- <if test="equipmentId != null">
- VDI_EQUIPMENT_ID,
- </if>
- <if test="personId != null">
- VDI_PERSON_ID,
- </if>
- <if test="ordDetId != null">
- VDI_ORD_DET_ID,
- </if>
- <if test="proType != null">
- VDI_PRO_TYPE,
- </if>
- <if test="proName != null">
- VDI_PRO_NAME,
- </if>
- <if test="proPrice != null">
- VDI_PRO_PRICE,
- </if>
- <if test="proNums != null">
- VDI_PRO_NUMS,
- </if>
- <if test="amount != null">
- VDI_AMOUNT,
- </if>
- <if test="status != null">
- VDI_STATUS,
- </if>
- <if test="cargoWay != null">
- VDI_CARGO_WAY,
- </if>
- <if test="deliveryNums != null">
- VDI_DELIVERY_NUMS,
- </if>
- <if test="remarks != null">
- VDI_REMARKS,
- </if>
- <if test="createUser != null">
- VDI_CREATE_USER,
- </if>
- <if test="createTime != null">
- VDI_CREATE_TIME,
- </if>
- <if test="modifyUser != null">
- VDI_MODIFY_USER,
- </if>
- <if test="modifyTime != null">
- VDI_MODIFY_TIME,
- </if>
- <if test="branchid != null">
- VDI_BRANCHID,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="deliveryId != null">
- #{deliveryId,jdbcType=VARCHAR},
- </if>
- <if test="channel != null">
- #{channel,jdbcType=VARCHAR},
- </if>
- <if test="equipmentId != null">
- #{equipmentId,jdbcType=VARCHAR},
- </if>
- <if test="personId != null">
- #{personId,jdbcType=VARCHAR},
- </if>
- <if test="ordDetId != null">
- #{ordDetId,jdbcType=VARCHAR},
- </if>
- <if test="proType != null">
- #{proType,jdbcType=VARCHAR},
- </if>
- <if test="proName != null">
- #{proName,jdbcType=VARCHAR},
- </if>
- <if test="proPrice != null">
- #{proPrice,jdbcType=VARCHAR},
- </if>
- <if test="proNums != null">
- #{proNums,jdbcType=VARCHAR},
- </if>
- <if test="amount != null">
- #{amount,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- #{status,jdbcType=VARCHAR},
- </if>
- <if test="cargoWay != null">
- #{cargoWay,jdbcType=VARCHAR},
- </if>
- <if test="deliveryNums != null">
- #{deliveryNums,jdbcType=VARCHAR},
- </if>
- <if test="remarks != null">
- #{remarks,jdbcType=VARCHAR},
- </if>
- <if test="createUser != null">
- #{createUser,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=VARCHAR},
- </if>
- <if test="modifyUser != null">
- #{modifyUser,jdbcType=VARCHAR},
- </if>
- <if test="modifyTime != null">
- #{modifyTime,jdbcType=VARCHAR},
- </if>
- <if test="branchid != null">
- #{branchid,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.minpay.db.table.model.VmDeliveryInfExample" resultType="java.lang.Integer">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- select count(*) from vm_delivery_inf
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- update vm_delivery_inf
- <set>
- <if test="record.deliveryId != null">
- VDI_DELIVERY_ID = #{record.deliveryId,jdbcType=VARCHAR},
- </if>
- <if test="record.channel != null">
- VDI_CHANNEL = #{record.channel,jdbcType=VARCHAR},
- </if>
- <if test="record.equipmentId != null">
- VDI_EQUIPMENT_ID = #{record.equipmentId,jdbcType=VARCHAR},
- </if>
- <if test="record.personId != null">
- VDI_PERSON_ID = #{record.personId,jdbcType=VARCHAR},
- </if>
- <if test="record.ordDetId != null">
- VDI_ORD_DET_ID = #{record.ordDetId,jdbcType=VARCHAR},
- </if>
- <if test="record.proType != null">
- VDI_PRO_TYPE = #{record.proType,jdbcType=VARCHAR},
- </if>
- <if test="record.proName != null">
- VDI_PRO_NAME = #{record.proName,jdbcType=VARCHAR},
- </if>
- <if test="record.proPrice != null">
- VDI_PRO_PRICE = #{record.proPrice,jdbcType=VARCHAR},
- </if>
- <if test="record.proNums != null">
- VDI_PRO_NUMS = #{record.proNums,jdbcType=VARCHAR},
- </if>
- <if test="record.amount != null">
- VDI_AMOUNT = #{record.amount,jdbcType=VARCHAR},
- </if>
- <if test="record.status != null">
- VDI_STATUS = #{record.status,jdbcType=VARCHAR},
- </if>
- <if test="record.cargoWay != null">
- VDI_CARGO_WAY = #{record.cargoWay,jdbcType=VARCHAR},
- </if>
- <if test="record.deliveryNums != null">
- VDI_DELIVERY_NUMS = #{record.deliveryNums,jdbcType=VARCHAR},
- </if>
- <if test="record.remarks != null">
- VDI_REMARKS = #{record.remarks,jdbcType=VARCHAR},
- </if>
- <if test="record.createUser != null">
- VDI_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
- </if>
- <if test="record.createTime != null">
- VDI_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
- </if>
- <if test="record.modifyUser != null">
- VDI_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
- </if>
- <if test="record.modifyTime != null">
- VDI_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
- </if>
- <if test="record.branchid != null">
- VDI_BRANCHID = #{record.branchid,jdbcType=VARCHAR},
- </if>
- </set>
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- update vm_delivery_inf
- set VDI_DELIVERY_ID = #{record.deliveryId,jdbcType=VARCHAR},
- VDI_CHANNEL = #{record.channel,jdbcType=VARCHAR},
- VDI_EQUIPMENT_ID = #{record.equipmentId,jdbcType=VARCHAR},
- VDI_PERSON_ID = #{record.personId,jdbcType=VARCHAR},
- VDI_ORD_DET_ID = #{record.ordDetId,jdbcType=VARCHAR},
- VDI_PRO_TYPE = #{record.proType,jdbcType=VARCHAR},
- VDI_PRO_NAME = #{record.proName,jdbcType=VARCHAR},
- VDI_PRO_PRICE = #{record.proPrice,jdbcType=VARCHAR},
- VDI_PRO_NUMS = #{record.proNums,jdbcType=VARCHAR},
- VDI_AMOUNT = #{record.amount,jdbcType=VARCHAR},
- VDI_STATUS = #{record.status,jdbcType=VARCHAR},
- VDI_CARGO_WAY = #{record.cargoWay,jdbcType=VARCHAR},
- VDI_DELIVERY_NUMS = #{record.deliveryNums,jdbcType=VARCHAR},
- VDI_REMARKS = #{record.remarks,jdbcType=VARCHAR},
- VDI_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
- VDI_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
- VDI_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
- VDI_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
- VDI_BRANCHID = #{record.branchid,jdbcType=VARCHAR}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.VmDeliveryInf">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- update vm_delivery_inf
- <set>
- <if test="channel != null">
- VDI_CHANNEL = #{channel,jdbcType=VARCHAR},
- </if>
- <if test="equipmentId != null">
- VDI_EQUIPMENT_ID = #{equipmentId,jdbcType=VARCHAR},
- </if>
- <if test="personId != null">
- VDI_PERSON_ID = #{personId,jdbcType=VARCHAR},
- </if>
- <if test="ordDetId != null">
- VDI_ORD_DET_ID = #{ordDetId,jdbcType=VARCHAR},
- </if>
- <if test="proType != null">
- VDI_PRO_TYPE = #{proType,jdbcType=VARCHAR},
- </if>
- <if test="proName != null">
- VDI_PRO_NAME = #{proName,jdbcType=VARCHAR},
- </if>
- <if test="proPrice != null">
- VDI_PRO_PRICE = #{proPrice,jdbcType=VARCHAR},
- </if>
- <if test="proNums != null">
- VDI_PRO_NUMS = #{proNums,jdbcType=VARCHAR},
- </if>
- <if test="amount != null">
- VDI_AMOUNT = #{amount,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- VDI_STATUS = #{status,jdbcType=VARCHAR},
- </if>
- <if test="cargoWay != null">
- VDI_CARGO_WAY = #{cargoWay,jdbcType=VARCHAR},
- </if>
- <if test="deliveryNums != null">
- VDI_DELIVERY_NUMS = #{deliveryNums,jdbcType=VARCHAR},
- </if>
- <if test="remarks != null">
- VDI_REMARKS = #{remarks,jdbcType=VARCHAR},
- </if>
- <if test="createUser != null">
- VDI_CREATE_USER = #{createUser,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- VDI_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
- </if>
- <if test="modifyUser != null">
- VDI_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
- </if>
- <if test="modifyTime != null">
- VDI_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
- </if>
- <if test="branchid != null">
- VDI_BRANCHID = #{branchid,jdbcType=VARCHAR},
- </if>
- </set>
- where VDI_DELIVERY_ID = #{deliveryId,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.VmDeliveryInf">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- update vm_delivery_inf
- set VDI_CHANNEL = #{channel,jdbcType=VARCHAR},
- VDI_EQUIPMENT_ID = #{equipmentId,jdbcType=VARCHAR},
- VDI_PERSON_ID = #{personId,jdbcType=VARCHAR},
- VDI_ORD_DET_ID = #{ordDetId,jdbcType=VARCHAR},
- VDI_PRO_TYPE = #{proType,jdbcType=VARCHAR},
- VDI_PRO_NAME = #{proName,jdbcType=VARCHAR},
- VDI_PRO_PRICE = #{proPrice,jdbcType=VARCHAR},
- VDI_PRO_NUMS = #{proNums,jdbcType=VARCHAR},
- VDI_AMOUNT = #{amount,jdbcType=VARCHAR},
- VDI_STATUS = #{status,jdbcType=VARCHAR},
- VDI_CARGO_WAY = #{cargoWay,jdbcType=VARCHAR},
- VDI_DELIVERY_NUMS = #{deliveryNums,jdbcType=VARCHAR},
- VDI_REMARKS = #{remarks,jdbcType=VARCHAR},
- VDI_CREATE_USER = #{createUser,jdbcType=VARCHAR},
- VDI_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
- VDI_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
- VDI_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
- VDI_BRANCHID = #{branchid,jdbcType=VARCHAR}
- where VDI_DELIVERY_ID = #{deliveryId,jdbcType=VARCHAR}
- </update>
- </mapper>
|