|
@@ -1,563 +1,560 @@
|
|
|
<?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.steerinfo.dil.mapper.RmsConsigneeMapper">
|
|
|
- <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.RmsConsignee">
|
|
|
- <id column="CONSIGNEE_ID" jdbcType="DECIMAL" property="consigneeId"/>
|
|
|
- <result column="CONSIGNEE_COMPANY_NAME" jdbcType="VARCHAR" property="consigneeCompanyName"/>
|
|
|
- <result column="CONSIGNEE_ABBREVIATION" jdbcType="VARCHAR" property="consigneeAbbreviation"/>
|
|
|
- <result column="CONSIGNEE_REGISTERED_ADDRESS" jdbcType="VARCHAR" property="consigneeRegisteredAddress"/>
|
|
|
- <result column="CONSIGNEE_RECEIVE_ADDRESS" jdbcType="VARCHAR" property="consigneeReceiveAddress"/>
|
|
|
- <result column="CONSIGNEE_REGISTRATION_TIME" jdbcType="TIMESTAMP" property="consigneeRegistrationTime"/>
|
|
|
- <result column="CONSIGNEE_CONTACT_NAME" jdbcType="VARCHAR" property="consigneeContactName"/>
|
|
|
- <result column="CONSIGNEE_WARRANTY_AMOUNT" jdbcType="DECIMAL" property="consigneeWarrantyAmount"/>
|
|
|
- <result column="CONSIGNEE_WARRANTY_WEIGHT" jdbcType="VARCHAR" property="consigneeWarrantyWeight"/>
|
|
|
- <result column="CONSIGNEE_CONTACT_TEL" jdbcType="CHAR" property="consigneeContactTel"/>
|
|
|
- <result column="CONSIGNEE_EXCHANGE_DELIVERY" jdbcType="DECIMAL" property="consigneeExchangeDelivery"/>
|
|
|
- <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername"/>
|
|
|
- <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime"/>
|
|
|
- <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername"/>
|
|
|
- <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
|
- <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark"/>
|
|
|
- <result column="DELETED" jdbcType="DECIMAL" property="deleted"/>
|
|
|
- <result column="EAS_CONSIGNEE_ID" jdbcType="DECIMAL" property="easConsigneeId"/>
|
|
|
- </resultMap>
|
|
|
- <sql id="columns">
|
|
|
- CONSIGNEE_ID, CONSIGNEE_COMPANY_NAME, CONSIGNEE_ABBREVIATION, CONSIGNEE_REGISTERED_ADDRESS,
|
|
|
+ <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.RmsConsignee">
|
|
|
+ <id column="CONSIGNEE_ID" jdbcType="DECIMAL" property="consigneeId" />
|
|
|
+ <result column="CONSIGNEE_COMPANY_NAME" jdbcType="VARCHAR" property="consigneeCompanyName" />
|
|
|
+ <result column="CONSIGNEE_ABBREVIATION" jdbcType="VARCHAR" property="consigneeAbbreviation" />
|
|
|
+ <result column="CONSIGNEE_REGISTERED_ADDRESS" jdbcType="VARCHAR" property="consigneeRegisteredAddress" />
|
|
|
+ <result column="CONSIGNEE_RECEIVE_ADDRESS" jdbcType="VARCHAR" property="consigneeReceiveAddress" />
|
|
|
+ <result column="CONSIGNEE_REGISTRATION_TIME" jdbcType="TIMESTAMP" property="consigneeRegistrationTime" />
|
|
|
+ <result column="CONSIGNEE_CONTACT_NAME" jdbcType="VARCHAR" property="consigneeContactName" />
|
|
|
+ <result column="CONSIGNEE_WARRANTY_AMOUNT" jdbcType="DECIMAL" property="consigneeWarrantyAmount" />
|
|
|
+ <result column="CONSIGNEE_WARRANTY_WEIGHT" jdbcType="VARCHAR" property="consigneeWarrantyWeight" />
|
|
|
+ <result column="CONSIGNEE_CONTACT_TEL" jdbcType="CHAR" property="consigneeContactTel" />
|
|
|
+ <result column="CONSIGNEE_EXCHANGE_DELIVERY" jdbcType="DECIMAL" property="consigneeExchangeDelivery" />
|
|
|
+ <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
|
|
|
+ <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
|
|
|
+ <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />
|
|
|
+ <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
+ <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />
|
|
|
+ <result column="DELETED" jdbcType="DECIMAL" property="deleted" />
|
|
|
+ <result column="EAS_CONSIGNEE_ID" jdbcType="VARCHAR" property="easConsigneeId" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="columns">
|
|
|
+ CONSIGNEE_ID, CONSIGNEE_COMPANY_NAME, CONSIGNEE_ABBREVIATION, CONSIGNEE_REGISTERED_ADDRESS,
|
|
|
CONSIGNEE_RECEIVE_ADDRESS, CONSIGNEE_REGISTRATION_TIME, CONSIGNEE_CONTACT_NAME, CONSIGNEE_WARRANTY_AMOUNT,
|
|
|
CONSIGNEE_WARRANTY_WEIGHT, CONSIGNEE_CONTACT_TEL, CONSIGNEE_EXCHANGE_DELIVERY, INSERT_USERNAME,
|
|
|
INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, EAS_CONSIGNEE_ID
|
|
|
- </sql>
|
|
|
- <sql id="columns_alias">
|
|
|
- t.CONSIGNEE_ID, t.CONSIGNEE_COMPANY_NAME, t.CONSIGNEE_ABBREVIATION, t.CONSIGNEE_REGISTERED_ADDRESS,
|
|
|
+ </sql>
|
|
|
+ <sql id="columns_alias">
|
|
|
+ t.CONSIGNEE_ID, t.CONSIGNEE_COMPANY_NAME, t.CONSIGNEE_ABBREVIATION, t.CONSIGNEE_REGISTERED_ADDRESS,
|
|
|
t.CONSIGNEE_RECEIVE_ADDRESS, t.CONSIGNEE_REGISTRATION_TIME, t.CONSIGNEE_CONTACT_NAME,
|
|
|
t.CONSIGNEE_WARRANTY_AMOUNT, t.CONSIGNEE_WARRANTY_WEIGHT, t.CONSIGNEE_CONTACT_TEL,
|
|
|
t.CONSIGNEE_EXCHANGE_DELIVERY, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME,
|
|
|
t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED, t.EAS_CONSIGNEE_ID
|
|
|
- </sql>
|
|
|
- <sql id="select">
|
|
|
- SELECT
|
|
|
- <include refid="columns"/>
|
|
|
- FROM RMS_CONSIGNEE
|
|
|
- </sql>
|
|
|
- <sql id="select_alias">
|
|
|
- SELECT
|
|
|
- <include refid="columns_alias"/>
|
|
|
- FROM RMS_CONSIGNEE t
|
|
|
- </sql>
|
|
|
- <sql id="where">
|
|
|
- <where>
|
|
|
- <if test="consigneeId != null">
|
|
|
- and CONSIGNEE_ID = #{consigneeId}
|
|
|
- </if>
|
|
|
- <if test="consigneeCompanyName != null and consigneeCompanyName != ''">
|
|
|
- and CONSIGNEE_COMPANY_NAME = #{consigneeCompanyName}
|
|
|
- </if>
|
|
|
- <if test="consigneeAbbreviation != null and consigneeAbbreviation != ''">
|
|
|
- and CONSIGNEE_ABBREVIATION = #{consigneeAbbreviation}
|
|
|
- </if>
|
|
|
- <if test="consigneeRegisteredAddress != null and consigneeRegisteredAddress != ''">
|
|
|
- and CONSIGNEE_REGISTERED_ADDRESS = #{consigneeRegisteredAddress}
|
|
|
- </if>
|
|
|
- <if test="consigneeReceiveAddress != null and consigneeReceiveAddress != ''">
|
|
|
- and CONSIGNEE_RECEIVE_ADDRESS = #{consigneeReceiveAddress}
|
|
|
- </if>
|
|
|
- <if test="consigneeRegistrationTime != null">
|
|
|
- and TO_CHAR(CONSIGNEE_REGISTRATION_TIME,'yyyy-MM-dd') = #{consigneeRegistrationTime}
|
|
|
- </if>
|
|
|
- <if test="consigneeContactName != null and consigneeContactName != ''">
|
|
|
- and CONSIGNEE_CONTACT_NAME = #{consigneeContactName}
|
|
|
- </if>
|
|
|
- <if test="consigneeWarrantyAmount != null">
|
|
|
- and CONSIGNEE_WARRANTY_AMOUNT = #{consigneeWarrantyAmount}
|
|
|
- </if>
|
|
|
- <if test="consigneeWarrantyWeight != null and consigneeWarrantyWeight != ''">
|
|
|
- and CONSIGNEE_WARRANTY_WEIGHT = #{consigneeWarrantyWeight}
|
|
|
- </if>
|
|
|
- <if test="consigneeContactTel != null">
|
|
|
- and CONSIGNEE_CONTACT_TEL = #{consigneeContactTel}
|
|
|
- </if>
|
|
|
- <if test="consigneeExchangeDelivery != null">
|
|
|
- and CONSIGNEE_EXCHANGE_DELIVERY = #{consigneeExchangeDelivery}
|
|
|
- </if>
|
|
|
- <if test="insertUsername != null and insertUsername != ''">
|
|
|
- and INSERT_USERNAME = #{insertUsername}
|
|
|
- </if>
|
|
|
- <if test="insertTime != null">
|
|
|
- and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
|
|
|
- </if>
|
|
|
- <if test="updateUsername != null and updateUsername != ''">
|
|
|
- and UPDATE_USERNAME = #{updateUsername}
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">
|
|
|
- and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
- </if>
|
|
|
- <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
|
- and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
|
|
|
- </if>
|
|
|
- <if test="deleted != null">
|
|
|
- and DELETED = #{deleted}
|
|
|
- </if>
|
|
|
- <if test="easConsigneeId != null">
|
|
|
- and EAS_CONSIGNEE_ID = #{easConsigneeId}
|
|
|
- </if>
|
|
|
- </where>
|
|
|
- </sql>
|
|
|
- <sql id="whereLike">
|
|
|
- <where>
|
|
|
- <if test="consigneeId != null">
|
|
|
- and CONSIGNEE_ID = #{consigneeId}
|
|
|
- </if>
|
|
|
- <if test="consigneeCompanyName != null and consigneeCompanyName != ''">
|
|
|
- and CONSIGNEE_COMPANY_NAME LIKE '%${consigneeCompanyName}%'
|
|
|
- </if>
|
|
|
- <if test="consigneeAbbreviation != null and consigneeAbbreviation != ''">
|
|
|
- and CONSIGNEE_ABBREVIATION LIKE '%${consigneeAbbreviation}%'
|
|
|
- </if>
|
|
|
- <if test="consigneeRegisteredAddress != null and consigneeRegisteredAddress != ''">
|
|
|
- and CONSIGNEE_REGISTERED_ADDRESS LIKE '%${consigneeRegisteredAddress}%'
|
|
|
- </if>
|
|
|
- <if test="consigneeReceiveAddress != null and consigneeReceiveAddress != ''">
|
|
|
- and CONSIGNEE_RECEIVE_ADDRESS LIKE '%${consigneeReceiveAddress}%'
|
|
|
- </if>
|
|
|
- <if test="consigneeRegistrationTime != null">
|
|
|
- and TO_CHAR(CONSIGNEE_REGISTRATION_TIME,'yyyy-MM-dd') = #{consigneeRegistrationTime}
|
|
|
- </if>
|
|
|
- <if test="consigneeContactName != null and consigneeContactName != ''">
|
|
|
- and CONSIGNEE_CONTACT_NAME LIKE '%${consigneeContactName}%'
|
|
|
- </if>
|
|
|
- <if test="consigneeWarrantyAmount != null">
|
|
|
- and CONSIGNEE_WARRANTY_AMOUNT = #{consigneeWarrantyAmount}
|
|
|
- </if>
|
|
|
- <if test="consigneeWarrantyWeight != null and consigneeWarrantyWeight != ''">
|
|
|
- and CONSIGNEE_WARRANTY_WEIGHT LIKE '%${consigneeWarrantyWeight}%'
|
|
|
- </if>
|
|
|
- <if test="consigneeContactTel != null">
|
|
|
- and CONSIGNEE_CONTACT_TEL = #{consigneeContactTel}
|
|
|
- </if>
|
|
|
- <if test="consigneeExchangeDelivery != null">
|
|
|
- and CONSIGNEE_EXCHANGE_DELIVERY = #{consigneeExchangeDelivery}
|
|
|
- </if>
|
|
|
- <if test="insertUsername != null and insertUsername != ''">
|
|
|
- and INSERT_USERNAME LIKE '%${insertUsername}%'
|
|
|
- </if>
|
|
|
- <if test="insertTime != null">
|
|
|
- and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
|
|
|
- </if>
|
|
|
- <if test="updateUsername != null and updateUsername != ''">
|
|
|
- and UPDATE_USERNAME LIKE '%${updateUsername}%'
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">
|
|
|
- and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
- </if>
|
|
|
- <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
|
- and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
|
|
|
- </if>
|
|
|
- <if test="deleted != null">
|
|
|
- and DELETED = #{deleted}
|
|
|
- </if>
|
|
|
- <if test="easConsigneeId != null">
|
|
|
- and EAS_CONSIGNEE_ID = #{easConsigneeId}
|
|
|
- </if>
|
|
|
- </where>
|
|
|
- </sql>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
- delete
|
|
|
- from RMS_CONSIGNEE
|
|
|
- where CONSIGNEE_ID = #{consigneeId,jdbcType=DECIMAL}
|
|
|
- </delete>
|
|
|
- <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
- delete from RMS_CONSIGNEE
|
|
|
- where 1!=1
|
|
|
- <if test="consigneeCompanyName != null and consigneeCompanyName != ''">
|
|
|
- or CONSIGNEE_COMPANY_NAME = #{consigneeCompanyName}
|
|
|
- </if>
|
|
|
- <if test="consigneeAbbreviation != null and consigneeAbbreviation != ''">
|
|
|
- or CONSIGNEE_ABBREVIATION = #{consigneeAbbreviation}
|
|
|
- </if>
|
|
|
- <if test="consigneeRegisteredAddress != null and consigneeRegisteredAddress != ''">
|
|
|
- or CONSIGNEE_REGISTERED_ADDRESS = #{consigneeRegisteredAddress}
|
|
|
- </if>
|
|
|
- <if test="consigneeReceiveAddress != null and consigneeReceiveAddress != ''">
|
|
|
- or CONSIGNEE_RECEIVE_ADDRESS = #{consigneeReceiveAddress}
|
|
|
- </if>
|
|
|
- <if test="consigneeRegistrationTime != null">
|
|
|
- or TO_CHAR(CONSIGNEE_REGISTRATION_TIME,'yyyy-MM-dd') = '#{consigneeRegistrationTime}'
|
|
|
- </if>
|
|
|
- <if test="consigneeContactName != null and consigneeContactName != ''">
|
|
|
- or CONSIGNEE_CONTACT_NAME = #{consigneeContactName}
|
|
|
- </if>
|
|
|
- <if test="consigneeWarrantyAmount != null">
|
|
|
- or CONSIGNEE_WARRANTY_AMOUNT = #{consigneeWarrantyAmount}
|
|
|
- </if>
|
|
|
- <if test="consigneeWarrantyWeight != null and consigneeWarrantyWeight != ''">
|
|
|
- or CONSIGNEE_WARRANTY_WEIGHT = #{consigneeWarrantyWeight}
|
|
|
- </if>
|
|
|
- <if test="consigneeContactTel != null">
|
|
|
- or CONSIGNEE_CONTACT_TEL = #{consigneeContactTel}
|
|
|
- </if>
|
|
|
- <if test="consigneeExchangeDelivery != null">
|
|
|
- or CONSIGNEE_EXCHANGE_DELIVERY = #{consigneeExchangeDelivery}
|
|
|
- </if>
|
|
|
- <if test="insertUsername != null and insertUsername != ''">
|
|
|
- or INSERT_USERNAME = #{insertUsername}
|
|
|
- </if>
|
|
|
- <if test="insertTime != null">
|
|
|
- or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
|
|
|
- </if>
|
|
|
- <if test="updateUsername != null and updateUsername != ''">
|
|
|
- or UPDATE_USERNAME = #{updateUsername}
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">
|
|
|
- or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
|
|
|
- </if>
|
|
|
- <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
|
- or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
|
|
|
- </if>
|
|
|
- <if test="deleted != null">
|
|
|
- or DELETED = #{deleted}
|
|
|
- </if>
|
|
|
- <if test="easConsigneeId != null">
|
|
|
- or EAS_CONSIGNEE_ID = #{easConsigneeId}
|
|
|
- </if>
|
|
|
- </delete>
|
|
|
- <insert id="insert" parameterType="com.steerinfo.dil.model.RmsConsignee">
|
|
|
- insert into RMS_CONSIGNEE (CONSIGNEE_ID, CONSIGNEE_COMPANY_NAME,
|
|
|
- CONSIGNEE_ABBREVIATION, CONSIGNEE_REGISTERED_ADDRESS,
|
|
|
- CONSIGNEE_RECEIVE_ADDRESS, CONSIGNEE_REGISTRATION_TIME,
|
|
|
- CONSIGNEE_CONTACT_NAME, CONSIGNEE_WARRANTY_AMOUNT,
|
|
|
- CONSIGNEE_WARRANTY_WEIGHT, CONSIGNEE_CONTACT_TEL,
|
|
|
- CONSIGNEE_EXCHANGE_DELIVERY, INSERT_USERNAME,
|
|
|
- INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
|
- INSERT_UPDATE_REMARK, DELETED, EAS_CONSIGNEE_ID)
|
|
|
- values (#{consigneeId,jdbcType=DECIMAL}, #{consigneeCompanyName,jdbcType=VARCHAR},
|
|
|
- #{consigneeAbbreviation,jdbcType=VARCHAR}, #{consigneeRegisteredAddress,jdbcType=VARCHAR},
|
|
|
- #{consigneeReceiveAddress,jdbcType=VARCHAR}, #{consigneeRegistrationTime,jdbcType=TIMESTAMP},
|
|
|
- #{consigneeContactName,jdbcType=VARCHAR}, #{consigneeWarrantyAmount,jdbcType=DECIMAL},
|
|
|
- #{consigneeWarrantyWeight,jdbcType=VARCHAR}, #{consigneeContactTel,jdbcType=CHAR},
|
|
|
- #{consigneeExchangeDelivery,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR},
|
|
|
- #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{easConsigneeId,jdbcType=DECIMAL})
|
|
|
- </insert>
|
|
|
- <insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsConsignee">
|
|
|
- insert into RMS_CONSIGNEE
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="consigneeId != null">
|
|
|
- CONSIGNEE_ID,
|
|
|
- </if>
|
|
|
- <if test="consigneeCompanyName != null">
|
|
|
- CONSIGNEE_COMPANY_NAME,
|
|
|
- </if>
|
|
|
- <if test="consigneeAbbreviation != null">
|
|
|
- CONSIGNEE_ABBREVIATION,
|
|
|
- </if>
|
|
|
- <if test="consigneeRegisteredAddress != null">
|
|
|
- CONSIGNEE_REGISTERED_ADDRESS,
|
|
|
- </if>
|
|
|
- <if test="consigneeReceiveAddress != null">
|
|
|
- CONSIGNEE_RECEIVE_ADDRESS,
|
|
|
- </if>
|
|
|
- <if test="consigneeRegistrationTime != null">
|
|
|
- CONSIGNEE_REGISTRATION_TIME,
|
|
|
- </if>
|
|
|
- <if test="consigneeContactName != null">
|
|
|
- CONSIGNEE_CONTACT_NAME,
|
|
|
- </if>
|
|
|
- <if test="consigneeWarrantyAmount != null">
|
|
|
- CONSIGNEE_WARRANTY_AMOUNT,
|
|
|
- </if>
|
|
|
- <if test="consigneeWarrantyWeight != null">
|
|
|
- CONSIGNEE_WARRANTY_WEIGHT,
|
|
|
- </if>
|
|
|
- <if test="consigneeContactTel != null">
|
|
|
- CONSIGNEE_CONTACT_TEL,
|
|
|
- </if>
|
|
|
- <if test="consigneeExchangeDelivery != null">
|
|
|
- CONSIGNEE_EXCHANGE_DELIVERY,
|
|
|
- </if>
|
|
|
- <if test="insertUsername != null">
|
|
|
- INSERT_USERNAME,
|
|
|
- </if>
|
|
|
- <if test="insertTime != null">
|
|
|
- INSERT_TIME,
|
|
|
- </if>
|
|
|
- <if test="updateUsername != null">
|
|
|
- UPDATE_USERNAME,
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">
|
|
|
- UPDATE_TIME,
|
|
|
- </if>
|
|
|
- <if test="insertUpdateRemark != null">
|
|
|
- INSERT_UPDATE_REMARK,
|
|
|
- </if>
|
|
|
- <if test="deleted != null">
|
|
|
- DELETED,
|
|
|
- </if>
|
|
|
- <if test="easConsigneeId != null">
|
|
|
- EAS_CONSIGNEE_ID,
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="consigneeId != null">
|
|
|
- #{consigneeId,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="consigneeCompanyName != null">
|
|
|
- #{consigneeCompanyName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="consigneeAbbreviation != null">
|
|
|
- #{consigneeAbbreviation,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="consigneeRegisteredAddress != null">
|
|
|
- #{consigneeRegisteredAddress,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="consigneeReceiveAddress != null">
|
|
|
- #{consigneeReceiveAddress,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="consigneeRegistrationTime != null">
|
|
|
- #{consigneeRegistrationTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="consigneeContactName != null">
|
|
|
- #{consigneeContactName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="consigneeWarrantyAmount != null">
|
|
|
- #{consigneeWarrantyAmount,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="consigneeWarrantyWeight != null">
|
|
|
- #{consigneeWarrantyWeight,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="consigneeContactTel != null">
|
|
|
- #{consigneeContactTel,jdbcType=CHAR},
|
|
|
- </if>
|
|
|
- <if test="consigneeExchangeDelivery != null">
|
|
|
- #{consigneeExchangeDelivery,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="insertUsername != null">
|
|
|
- #{insertUsername,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="insertTime != null">
|
|
|
- #{insertTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="updateUsername != null">
|
|
|
- #{updateUsername,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">
|
|
|
- #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="insertUpdateRemark != null">
|
|
|
- #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="deleted != null">
|
|
|
- #{deleted,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="easConsigneeId != null">
|
|
|
- #{easConsigneeId,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsConsignee">
|
|
|
- update RMS_CONSIGNEE
|
|
|
- set CONSIGNEE_COMPANY_NAME = #{consigneeCompanyName,jdbcType=VARCHAR},
|
|
|
- CONSIGNEE_ABBREVIATION = #{consigneeAbbreviation,jdbcType=VARCHAR},
|
|
|
- CONSIGNEE_REGISTERED_ADDRESS = #{consigneeRegisteredAddress,jdbcType=VARCHAR},
|
|
|
- CONSIGNEE_RECEIVE_ADDRESS = #{consigneeReceiveAddress,jdbcType=VARCHAR},
|
|
|
- CONSIGNEE_REGISTRATION_TIME = #{consigneeRegistrationTime,jdbcType=TIMESTAMP},
|
|
|
- CONSIGNEE_CONTACT_NAME = #{consigneeContactName,jdbcType=VARCHAR},
|
|
|
- CONSIGNEE_WARRANTY_AMOUNT = #{consigneeWarrantyAmount,jdbcType=DECIMAL},
|
|
|
- CONSIGNEE_WARRANTY_WEIGHT = #{consigneeWarrantyWeight,jdbcType=VARCHAR},
|
|
|
- CONSIGNEE_CONTACT_TEL = #{consigneeContactTel,jdbcType=CHAR},
|
|
|
- CONSIGNEE_EXCHANGE_DELIVERY = #{consigneeExchangeDelivery,jdbcType=DECIMAL},
|
|
|
- INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
- INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
- UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
|
- UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
- DELETED = #{deleted,jdbcType=DECIMAL},
|
|
|
- EAS_CONSIGNEE_ID = #{easConsigneeId,jdbcType=DECIMAL}
|
|
|
- where CONSIGNEE_ID = #{consigneeId,jdbcType=DECIMAL}
|
|
|
- </update>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsConsignee">
|
|
|
- update RMS_CONSIGNEE
|
|
|
- <set>
|
|
|
- <if test="consigneeCompanyName != null">
|
|
|
- CONSIGNEE_COMPANY_NAME = #{consigneeCompanyName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="consigneeAbbreviation != null">
|
|
|
- CONSIGNEE_ABBREVIATION = #{consigneeAbbreviation,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="consigneeRegisteredAddress != null">
|
|
|
- CONSIGNEE_REGISTERED_ADDRESS = #{consigneeRegisteredAddress,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="consigneeReceiveAddress != null">
|
|
|
- CONSIGNEE_RECEIVE_ADDRESS = #{consigneeReceiveAddress,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="consigneeRegistrationTime != null">
|
|
|
- CONSIGNEE_REGISTRATION_TIME = #{consigneeRegistrationTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="consigneeContactName != null">
|
|
|
- CONSIGNEE_CONTACT_NAME = #{consigneeContactName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="consigneeWarrantyAmount != null">
|
|
|
- CONSIGNEE_WARRANTY_AMOUNT = #{consigneeWarrantyAmount,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="consigneeWarrantyWeight != null">
|
|
|
- CONSIGNEE_WARRANTY_WEIGHT = #{consigneeWarrantyWeight,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="consigneeContactTel != null">
|
|
|
- CONSIGNEE_CONTACT_TEL = #{consigneeContactTel,jdbcType=CHAR},
|
|
|
- </if>
|
|
|
- <if test="consigneeExchangeDelivery != null">
|
|
|
- CONSIGNEE_EXCHANGE_DELIVERY = #{consigneeExchangeDelivery,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="insertUsername != null">
|
|
|
- INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="insertTime != null">
|
|
|
- INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="updateUsername != null">
|
|
|
- UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">
|
|
|
- UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="insertUpdateRemark != null">
|
|
|
- INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="deleted != null">
|
|
|
- DELETED = #{deleted,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="easConsigneeId != null">
|
|
|
- EAS_CONSIGNEE_ID = #{easConsigneeId,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- where CONSIGNEE_ID = #{consigneeId,jdbcType=DECIMAL}
|
|
|
- </update>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
- where CONSIGNEE_ID = #{consigneeId,jdbcType=DECIMAL}
|
|
|
- </select>
|
|
|
- <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
- <include refid="where"/>
|
|
|
- </select>
|
|
|
- <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
- <include refid="whereLike"/>
|
|
|
- </select>
|
|
|
- <insert id="batchInsert" parameterType="java.util.List">
|
|
|
- insert into RMS_CONSIGNEE
|
|
|
- (CONSIGNEE_ID,
|
|
|
- CONSIGNEE_COMPANY_NAME, CONSIGNEE_ABBREVIATION,
|
|
|
- CONSIGNEE_REGISTERED_ADDRESS, CONSIGNEE_RECEIVE_ADDRESS,
|
|
|
- CONSIGNEE_REGISTRATION_TIME, CONSIGNEE_CONTACT_NAME,
|
|
|
- CONSIGNEE_WARRANTY_AMOUNT, CONSIGNEE_WARRANTY_WEIGHT,
|
|
|
- CONSIGNEE_CONTACT_TEL, CONSIGNEE_EXCHANGE_DELIVERY,
|
|
|
- INSERT_USERNAME, INSERT_TIME,
|
|
|
- UPDATE_USERNAME, UPDATE_TIME,
|
|
|
- INSERT_UPDATE_REMARK, DELETED,
|
|
|
- EAS_CONSIGNEE_ID)
|
|
|
- ( <foreach collection="list" item="item" separator="union all">
|
|
|
- select
|
|
|
- #{item.consigneeId,jdbcType=DECIMAL},
|
|
|
- #{item.consigneeCompanyName,jdbcType=VARCHAR}, #{item.consigneeAbbreviation,jdbcType=VARCHAR},
|
|
|
- #{item.consigneeRegisteredAddress,jdbcType=VARCHAR}, #{item.consigneeReceiveAddress,jdbcType=VARCHAR},
|
|
|
- #{item.consigneeRegistrationTime,jdbcType=TIMESTAMP}, #{item.consigneeContactName,jdbcType=VARCHAR},
|
|
|
- #{item.consigneeWarrantyAmount,jdbcType=DECIMAL}, #{item.consigneeWarrantyWeight,jdbcType=VARCHAR},
|
|
|
- #{item.consigneeContactTel,jdbcType=CHAR}, #{item.consigneeExchangeDelivery,jdbcType=DECIMAL},
|
|
|
- #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
|
|
|
- #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
- #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.deleted,jdbcType=DECIMAL},
|
|
|
- #{item.easConsigneeId,jdbcType=DECIMAL} from dual
|
|
|
- </foreach> )
|
|
|
- </insert>
|
|
|
- <update id="batchUpdate" parameterType="java.util.List">
|
|
|
- update RMS_CONSIGNEE
|
|
|
- set
|
|
|
- CONSIGNEE_ID=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeId,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,CONSIGNEE_COMPANY_NAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeCompanyName,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CONSIGNEE_ABBREVIATION=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeAbbreviation,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CONSIGNEE_REGISTERED_ADDRESS=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeRegisteredAddress,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CONSIGNEE_RECEIVE_ADDRESS=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeReceiveAddress,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CONSIGNEE_REGISTRATION_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeRegistrationTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,CONSIGNEE_CONTACT_NAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeContactName,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CONSIGNEE_WARRANTY_AMOUNT=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeWarrantyAmount,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,CONSIGNEE_WARRANTY_WEIGHT=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeWarrantyWeight,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CONSIGNEE_CONTACT_TEL=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeContactTel,jdbcType=CHAR}
|
|
|
- </foreach>
|
|
|
- ,CONSIGNEE_EXCHANGE_DELIVERY=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeExchangeDelivery,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,INSERT_USERNAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,INSERT_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,UPDATE_USERNAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,UPDATE_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,INSERT_UPDATE_REMARK=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,DELETED=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,EAS_CONSIGNEE_ID=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CONSIGNEE_ID" close="end">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.easConsigneeId,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- where CONSIGNEE_ID in
|
|
|
- <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
- #{item.consigneeId,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- </update>
|
|
|
- <delete id="batchDelete" parameterType="java.util.List">
|
|
|
- delete from RMS_CONSIGNEE
|
|
|
- where CONSIGNEE_ID in
|
|
|
- <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
- #{id}
|
|
|
- </foreach>
|
|
|
- </delete>
|
|
|
- <!-- 友情提示!!!-->
|
|
|
- <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
-
|
|
|
+ </sql>
|
|
|
+ <sql id="select">
|
|
|
+ SELECT <include refid="columns" /> FROM RMS_CONSIGNEE
|
|
|
+ </sql>
|
|
|
+ <sql id="select_alias">
|
|
|
+ SELECT <include refid="columns_alias" /> FROM RMS_CONSIGNEE t
|
|
|
+ </sql>
|
|
|
+ <sql id="where">
|
|
|
+ <where>
|
|
|
+ <if test="consigneeId != null">
|
|
|
+ and CONSIGNEE_ID = #{consigneeId}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeCompanyName != null and consigneeCompanyName != ''">
|
|
|
+ and CONSIGNEE_COMPANY_NAME = #{consigneeCompanyName}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeAbbreviation != null and consigneeAbbreviation != ''">
|
|
|
+ and CONSIGNEE_ABBREVIATION = #{consigneeAbbreviation}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeRegisteredAddress != null and consigneeRegisteredAddress != ''">
|
|
|
+ and CONSIGNEE_REGISTERED_ADDRESS = #{consigneeRegisteredAddress}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeReceiveAddress != null and consigneeReceiveAddress != ''">
|
|
|
+ and CONSIGNEE_RECEIVE_ADDRESS = #{consigneeReceiveAddress}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeRegistrationTime != null">
|
|
|
+ and TO_CHAR(CONSIGNEE_REGISTRATION_TIME,'yyyy-MM-dd') = #{consigneeRegistrationTime}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeContactName != null and consigneeContactName != ''">
|
|
|
+ and CONSIGNEE_CONTACT_NAME = #{consigneeContactName}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeWarrantyAmount != null">
|
|
|
+ and CONSIGNEE_WARRANTY_AMOUNT = #{consigneeWarrantyAmount}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeWarrantyWeight != null and consigneeWarrantyWeight != ''">
|
|
|
+ and CONSIGNEE_WARRANTY_WEIGHT = #{consigneeWarrantyWeight}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeContactTel != null">
|
|
|
+ and CONSIGNEE_CONTACT_TEL = #{consigneeContactTel}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeExchangeDelivery != null">
|
|
|
+ and CONSIGNEE_EXCHANGE_DELIVERY = #{consigneeExchangeDelivery}
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null and insertUsername != ''">
|
|
|
+ and INSERT_USERNAME = #{insertUsername}
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
|
|
|
+ </if>
|
|
|
+ <if test="updateUsername != null and updateUsername != ''">
|
|
|
+ and UPDATE_USERNAME = #{updateUsername}
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
+ </if>
|
|
|
+ <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
|
+ and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
|
|
|
+ </if>
|
|
|
+ <if test="deleted != null">
|
|
|
+ and DELETED = #{deleted}
|
|
|
+ </if>
|
|
|
+ <if test="easConsigneeId != null and easConsigneeId != ''">
|
|
|
+ and EAS_CONSIGNEE_ID = #{easConsigneeId}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="whereLike">
|
|
|
+ <where>
|
|
|
+ <if test="consigneeId != null">
|
|
|
+ and CONSIGNEE_ID = #{consigneeId}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeCompanyName != null and consigneeCompanyName != ''">
|
|
|
+ and CONSIGNEE_COMPANY_NAME LIKE '%${consigneeCompanyName}%'
|
|
|
+ </if>
|
|
|
+ <if test="consigneeAbbreviation != null and consigneeAbbreviation != ''">
|
|
|
+ and CONSIGNEE_ABBREVIATION LIKE '%${consigneeAbbreviation}%'
|
|
|
+ </if>
|
|
|
+ <if test="consigneeRegisteredAddress != null and consigneeRegisteredAddress != ''">
|
|
|
+ and CONSIGNEE_REGISTERED_ADDRESS LIKE '%${consigneeRegisteredAddress}%'
|
|
|
+ </if>
|
|
|
+ <if test="consigneeReceiveAddress != null and consigneeReceiveAddress != ''">
|
|
|
+ and CONSIGNEE_RECEIVE_ADDRESS LIKE '%${consigneeReceiveAddress}%'
|
|
|
+ </if>
|
|
|
+ <if test="consigneeRegistrationTime != null">
|
|
|
+ and TO_CHAR(CONSIGNEE_REGISTRATION_TIME,'yyyy-MM-dd') = #{consigneeRegistrationTime}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeContactName != null and consigneeContactName != ''">
|
|
|
+ and CONSIGNEE_CONTACT_NAME LIKE '%${consigneeContactName}%'
|
|
|
+ </if>
|
|
|
+ <if test="consigneeWarrantyAmount != null">
|
|
|
+ and CONSIGNEE_WARRANTY_AMOUNT = #{consigneeWarrantyAmount}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeWarrantyWeight != null and consigneeWarrantyWeight != ''">
|
|
|
+ and CONSIGNEE_WARRANTY_WEIGHT LIKE '%${consigneeWarrantyWeight}%'
|
|
|
+ </if>
|
|
|
+ <if test="consigneeContactTel != null">
|
|
|
+ and CONSIGNEE_CONTACT_TEL = #{consigneeContactTel}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeExchangeDelivery != null">
|
|
|
+ and CONSIGNEE_EXCHANGE_DELIVERY = #{consigneeExchangeDelivery}
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null and insertUsername != ''">
|
|
|
+ and INSERT_USERNAME LIKE '%${insertUsername}%'
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
|
|
|
+ </if>
|
|
|
+ <if test="updateUsername != null and updateUsername != ''">
|
|
|
+ and UPDATE_USERNAME LIKE '%${updateUsername}%'
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
+ </if>
|
|
|
+ <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
|
+ and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
|
|
|
+ </if>
|
|
|
+ <if test="deleted != null">
|
|
|
+ and DELETED = #{deleted}
|
|
|
+ </if>
|
|
|
+ <if test="easConsigneeId != null and easConsigneeId != ''">
|
|
|
+ and EAS_CONSIGNEE_ID LIKE '%${easConsigneeId}%'
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
+ delete from RMS_CONSIGNEE
|
|
|
+ where CONSIGNEE_ID = #{consigneeId,jdbcType=DECIMAL}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
+ delete from RMS_CONSIGNEE
|
|
|
+ where 1!=1
|
|
|
+ <if test="consigneeCompanyName != null and consigneeCompanyName != ''">
|
|
|
+ or CONSIGNEE_COMPANY_NAME = #{consigneeCompanyName}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeAbbreviation != null and consigneeAbbreviation != ''">
|
|
|
+ or CONSIGNEE_ABBREVIATION = #{consigneeAbbreviation}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeRegisteredAddress != null and consigneeRegisteredAddress != ''">
|
|
|
+ or CONSIGNEE_REGISTERED_ADDRESS = #{consigneeRegisteredAddress}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeReceiveAddress != null and consigneeReceiveAddress != ''">
|
|
|
+ or CONSIGNEE_RECEIVE_ADDRESS = #{consigneeReceiveAddress}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeRegistrationTime != null">
|
|
|
+ or TO_CHAR(CONSIGNEE_REGISTRATION_TIME,'yyyy-MM-dd') = '#{consigneeRegistrationTime}'
|
|
|
+ </if>
|
|
|
+ <if test="consigneeContactName != null and consigneeContactName != ''">
|
|
|
+ or CONSIGNEE_CONTACT_NAME = #{consigneeContactName}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeWarrantyAmount != null">
|
|
|
+ or CONSIGNEE_WARRANTY_AMOUNT = #{consigneeWarrantyAmount}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeWarrantyWeight != null and consigneeWarrantyWeight != ''">
|
|
|
+ or CONSIGNEE_WARRANTY_WEIGHT = #{consigneeWarrantyWeight}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeContactTel != null">
|
|
|
+ or CONSIGNEE_CONTACT_TEL = #{consigneeContactTel}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeExchangeDelivery != null">
|
|
|
+ or CONSIGNEE_EXCHANGE_DELIVERY = #{consigneeExchangeDelivery}
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null and insertUsername != ''">
|
|
|
+ or INSERT_USERNAME = #{insertUsername}
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
|
|
|
+ </if>
|
|
|
+ <if test="updateUsername != null and updateUsername != ''">
|
|
|
+ or UPDATE_USERNAME = #{updateUsername}
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
|
|
|
+ </if>
|
|
|
+ <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
|
+ or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
|
|
|
+ </if>
|
|
|
+ <if test="deleted != null">
|
|
|
+ or DELETED = #{deleted}
|
|
|
+ </if>
|
|
|
+ <if test="easConsigneeId != null and easConsigneeId != ''">
|
|
|
+ or EAS_CONSIGNEE_ID = #{easConsigneeId}
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.steerinfo.dil.model.RmsConsignee">
|
|
|
+ insert into RMS_CONSIGNEE (CONSIGNEE_ID, CONSIGNEE_COMPANY_NAME,
|
|
|
+ CONSIGNEE_ABBREVIATION, CONSIGNEE_REGISTERED_ADDRESS,
|
|
|
+ CONSIGNEE_RECEIVE_ADDRESS, CONSIGNEE_REGISTRATION_TIME,
|
|
|
+ CONSIGNEE_CONTACT_NAME, CONSIGNEE_WARRANTY_AMOUNT,
|
|
|
+ CONSIGNEE_WARRANTY_WEIGHT, CONSIGNEE_CONTACT_TEL,
|
|
|
+ CONSIGNEE_EXCHANGE_DELIVERY, INSERT_USERNAME,
|
|
|
+ INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
|
+ INSERT_UPDATE_REMARK, DELETED, EAS_CONSIGNEE_ID
|
|
|
+ )
|
|
|
+ values (#{consigneeId,jdbcType=DECIMAL}, #{consigneeCompanyName,jdbcType=VARCHAR},
|
|
|
+ #{consigneeAbbreviation,jdbcType=VARCHAR}, #{consigneeRegisteredAddress,jdbcType=VARCHAR},
|
|
|
+ #{consigneeReceiveAddress,jdbcType=VARCHAR}, #{consigneeRegistrationTime,jdbcType=TIMESTAMP},
|
|
|
+ #{consigneeContactName,jdbcType=VARCHAR}, #{consigneeWarrantyAmount,jdbcType=DECIMAL},
|
|
|
+ #{consigneeWarrantyWeight,jdbcType=VARCHAR}, #{consigneeContactTel,jdbcType=CHAR},
|
|
|
+ #{consigneeExchangeDelivery,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR},
|
|
|
+ #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{easConsigneeId,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsConsignee">
|
|
|
+ insert into RMS_CONSIGNEE
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="consigneeId != null">
|
|
|
+ CONSIGNEE_ID,
|
|
|
+ </if>
|
|
|
+ <if test="consigneeCompanyName != null">
|
|
|
+ CONSIGNEE_COMPANY_NAME,
|
|
|
+ </if>
|
|
|
+ <if test="consigneeAbbreviation != null">
|
|
|
+ CONSIGNEE_ABBREVIATION,
|
|
|
+ </if>
|
|
|
+ <if test="consigneeRegisteredAddress != null">
|
|
|
+ CONSIGNEE_REGISTERED_ADDRESS,
|
|
|
+ </if>
|
|
|
+ <if test="consigneeReceiveAddress != null">
|
|
|
+ CONSIGNEE_RECEIVE_ADDRESS,
|
|
|
+ </if>
|
|
|
+ <if test="consigneeRegistrationTime != null">
|
|
|
+ CONSIGNEE_REGISTRATION_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="consigneeContactName != null">
|
|
|
+ CONSIGNEE_CONTACT_NAME,
|
|
|
+ </if>
|
|
|
+ <if test="consigneeWarrantyAmount != null">
|
|
|
+ CONSIGNEE_WARRANTY_AMOUNT,
|
|
|
+ </if>
|
|
|
+ <if test="consigneeWarrantyWeight != null">
|
|
|
+ CONSIGNEE_WARRANTY_WEIGHT,
|
|
|
+ </if>
|
|
|
+ <if test="consigneeContactTel != null">
|
|
|
+ CONSIGNEE_CONTACT_TEL,
|
|
|
+ </if>
|
|
|
+ <if test="consigneeExchangeDelivery != null">
|
|
|
+ CONSIGNEE_EXCHANGE_DELIVERY,
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null">
|
|
|
+ INSERT_USERNAME,
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ INSERT_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="updateUsername != null">
|
|
|
+ UPDATE_USERNAME,
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ UPDATE_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="insertUpdateRemark != null">
|
|
|
+ INSERT_UPDATE_REMARK,
|
|
|
+ </if>
|
|
|
+ <if test="deleted != null">
|
|
|
+ DELETED,
|
|
|
+ </if>
|
|
|
+ <if test="easConsigneeId != null">
|
|
|
+ EAS_CONSIGNEE_ID,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="consigneeId != null">
|
|
|
+ #{consigneeId,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeCompanyName != null">
|
|
|
+ #{consigneeCompanyName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeAbbreviation != null">
|
|
|
+ #{consigneeAbbreviation,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeRegisteredAddress != null">
|
|
|
+ #{consigneeRegisteredAddress,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeReceiveAddress != null">
|
|
|
+ #{consigneeReceiveAddress,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeRegistrationTime != null">
|
|
|
+ #{consigneeRegistrationTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeContactName != null">
|
|
|
+ #{consigneeContactName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeWarrantyAmount != null">
|
|
|
+ #{consigneeWarrantyAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeWarrantyWeight != null">
|
|
|
+ #{consigneeWarrantyWeight,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeContactTel != null">
|
|
|
+ #{consigneeContactTel,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeExchangeDelivery != null">
|
|
|
+ #{consigneeExchangeDelivery,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null">
|
|
|
+ #{insertUsername,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ #{insertTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateUsername != null">
|
|
|
+ #{updateUsername,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="insertUpdateRemark != null">
|
|
|
+ #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="deleted != null">
|
|
|
+ #{deleted,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="easConsigneeId != null">
|
|
|
+ #{easConsigneeId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsConsignee">
|
|
|
+ update RMS_CONSIGNEE
|
|
|
+ set CONSIGNEE_COMPANY_NAME = #{consigneeCompanyName,jdbcType=VARCHAR},
|
|
|
+ CONSIGNEE_ABBREVIATION = #{consigneeAbbreviation,jdbcType=VARCHAR},
|
|
|
+ CONSIGNEE_REGISTERED_ADDRESS = #{consigneeRegisteredAddress,jdbcType=VARCHAR},
|
|
|
+ CONSIGNEE_RECEIVE_ADDRESS = #{consigneeReceiveAddress,jdbcType=VARCHAR},
|
|
|
+ CONSIGNEE_REGISTRATION_TIME = #{consigneeRegistrationTime,jdbcType=TIMESTAMP},
|
|
|
+ CONSIGNEE_CONTACT_NAME = #{consigneeContactName,jdbcType=VARCHAR},
|
|
|
+ CONSIGNEE_WARRANTY_AMOUNT = #{consigneeWarrantyAmount,jdbcType=DECIMAL},
|
|
|
+ CONSIGNEE_WARRANTY_WEIGHT = #{consigneeWarrantyWeight,jdbcType=VARCHAR},
|
|
|
+ CONSIGNEE_CONTACT_TEL = #{consigneeContactTel,jdbcType=CHAR},
|
|
|
+ CONSIGNEE_EXCHANGE_DELIVERY = #{consigneeExchangeDelivery,jdbcType=DECIMAL},
|
|
|
+ INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
+ INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
+ UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
+ DELETED = #{deleted,jdbcType=DECIMAL},
|
|
|
+ EAS_CONSIGNEE_ID = #{easConsigneeId,jdbcType=VARCHAR}
|
|
|
+ where CONSIGNEE_ID = #{consigneeId,jdbcType=DECIMAL}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsConsignee">
|
|
|
+ update RMS_CONSIGNEE
|
|
|
+ <set>
|
|
|
+ <if test="consigneeCompanyName != null">
|
|
|
+ CONSIGNEE_COMPANY_NAME = #{consigneeCompanyName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeAbbreviation != null">
|
|
|
+ CONSIGNEE_ABBREVIATION = #{consigneeAbbreviation,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeRegisteredAddress != null">
|
|
|
+ CONSIGNEE_REGISTERED_ADDRESS = #{consigneeRegisteredAddress,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeReceiveAddress != null">
|
|
|
+ CONSIGNEE_RECEIVE_ADDRESS = #{consigneeReceiveAddress,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeRegistrationTime != null">
|
|
|
+ CONSIGNEE_REGISTRATION_TIME = #{consigneeRegistrationTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeContactName != null">
|
|
|
+ CONSIGNEE_CONTACT_NAME = #{consigneeContactName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeWarrantyAmount != null">
|
|
|
+ CONSIGNEE_WARRANTY_AMOUNT = #{consigneeWarrantyAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeWarrantyWeight != null">
|
|
|
+ CONSIGNEE_WARRANTY_WEIGHT = #{consigneeWarrantyWeight,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeContactTel != null">
|
|
|
+ CONSIGNEE_CONTACT_TEL = #{consigneeContactTel,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeExchangeDelivery != null">
|
|
|
+ CONSIGNEE_EXCHANGE_DELIVERY = #{consigneeExchangeDelivery,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null">
|
|
|
+ INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateUsername != null">
|
|
|
+ UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="insertUpdateRemark != null">
|
|
|
+ INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="deleted != null">
|
|
|
+ DELETED = #{deleted,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="easConsigneeId != null">
|
|
|
+ EAS_CONSIGNEE_ID = #{easConsigneeId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where CONSIGNEE_ID = #{consigneeId,jdbcType=DECIMAL}
|
|
|
+ </update>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
+ <include refid="select" />
|
|
|
+ where CONSIGNEE_ID = #{consigneeId,jdbcType=DECIMAL}
|
|
|
+ </select>
|
|
|
+ <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
+ <include refid="select" />
|
|
|
+ <include refid="where" />
|
|
|
+ </select>
|
|
|
+ <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
+ <include refid="select" />
|
|
|
+ <include refid="whereLike" />
|
|
|
+ </select>
|
|
|
+ <insert id="batchInsert" parameterType="java.util.List">
|
|
|
+ insert into RMS_CONSIGNEE
|
|
|
+ (CONSIGNEE_ID,
|
|
|
+ CONSIGNEE_COMPANY_NAME, CONSIGNEE_ABBREVIATION,
|
|
|
+ CONSIGNEE_REGISTERED_ADDRESS, CONSIGNEE_RECEIVE_ADDRESS,
|
|
|
+ CONSIGNEE_REGISTRATION_TIME, CONSIGNEE_CONTACT_NAME,
|
|
|
+ CONSIGNEE_WARRANTY_AMOUNT, CONSIGNEE_WARRANTY_WEIGHT,
|
|
|
+ CONSIGNEE_CONTACT_TEL, CONSIGNEE_EXCHANGE_DELIVERY,
|
|
|
+ INSERT_USERNAME, INSERT_TIME,
|
|
|
+ UPDATE_USERNAME, UPDATE_TIME,
|
|
|
+ INSERT_UPDATE_REMARK, DELETED,
|
|
|
+ EAS_CONSIGNEE_ID)
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
+ select
|
|
|
+ #{item.consigneeId,jdbcType=DECIMAL},
|
|
|
+ #{item.consigneeCompanyName,jdbcType=VARCHAR}, #{item.consigneeAbbreviation,jdbcType=VARCHAR},
|
|
|
+ #{item.consigneeRegisteredAddress,jdbcType=VARCHAR}, #{item.consigneeReceiveAddress,jdbcType=VARCHAR},
|
|
|
+ #{item.consigneeRegistrationTime,jdbcType=TIMESTAMP}, #{item.consigneeContactName,jdbcType=VARCHAR},
|
|
|
+ #{item.consigneeWarrantyAmount,jdbcType=DECIMAL}, #{item.consigneeWarrantyWeight,jdbcType=VARCHAR},
|
|
|
+ #{item.consigneeContactTel,jdbcType=CHAR}, #{item.consigneeExchangeDelivery,jdbcType=DECIMAL},
|
|
|
+ #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.deleted,jdbcType=DECIMAL},
|
|
|
+ #{item.easConsigneeId,jdbcType=VARCHAR} from dual
|
|
|
+ </foreach> )
|
|
|
+ </insert>
|
|
|
+ <update id="batchUpdate" parameterType="java.util.List">
|
|
|
+ update RMS_CONSIGNEE
|
|
|
+ set
|
|
|
+ CONSIGNEE_ID=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,CONSIGNEE_COMPANY_NAME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeCompanyName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CONSIGNEE_ABBREVIATION=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeAbbreviation,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CONSIGNEE_REGISTERED_ADDRESS=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeRegisteredAddress,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CONSIGNEE_RECEIVE_ADDRESS=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeReceiveAddress,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CONSIGNEE_REGISTRATION_TIME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeRegistrationTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,CONSIGNEE_CONTACT_NAME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeContactName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CONSIGNEE_WARRANTY_AMOUNT=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeWarrantyAmount,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,CONSIGNEE_WARRANTY_WEIGHT=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeWarrantyWeight,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CONSIGNEE_CONTACT_TEL=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeContactTel,jdbcType=CHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CONSIGNEE_EXCHANGE_DELIVERY=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeExchangeDelivery,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,INSERT_USERNAME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,INSERT_TIME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,UPDATE_USERNAME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,UPDATE_TIME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,INSERT_UPDATE_REMARK=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,DELETED=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,EAS_CONSIGNEE_ID=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.easConsigneeId,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ where CONSIGNEE_ID in
|
|
|
+ <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
+ #{item.consigneeId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
+ <delete id="batchDelete" parameterType="java.util.List">
|
|
|
+ delete from RMS_CONSIGNEE
|
|
|
+ where CONSIGNEE_ID in
|
|
|
+ <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+ <!-- 友情提示!!!-->
|
|
|
+ <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
|
|
|
+
|
|
|
</mapper>
|