|
@@ -22,21 +22,24 @@
|
|
|
<result column="EAS_CONSIGNEE_ID" jdbcType="VARCHAR" property="easConsigneeId" />
|
|
|
<result column="CONSIGNEE_CODE" jdbcType="VARCHAR" property="consigneeCode" />
|
|
|
<result column="CONSIGNEE_FAR_ID" jdbcType="DECIMAL" property="consigneeFarId" />
|
|
|
+ <result column="AREA_ID" jdbcType="DECIMAL" property="areaId" />
|
|
|
+ <result column="CONSIGNEE_SSO_ID" jdbcType="VARCHAR" property="consigneeSsoId" />
|
|
|
+ <result column="CONSIGNEE_SSO_CODE" jdbcType="VARCHAR" property="consigneeSsoCode" />
|
|
|
</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,
|
|
|
- CONSIGNEE_CODE, CONSIGNEE_FAR_ID
|
|
|
+ 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,
|
|
|
+ CONSIGNEE_CODE, CONSIGNEE_FAR_ID, AREA_ID, CONSIGNEE_SSO_ID, CONSIGNEE_SSO_CODE
|
|
|
</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, t.CONSIGNEE_CODE,
|
|
|
- t.CONSIGNEE_FAR_ID
|
|
|
+ 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, t.CONSIGNEE_CODE,
|
|
|
+ t.CONSIGNEE_FAR_ID, t.AREA_ID, t.CONSIGNEE_SSO_ID, t.CONSIGNEE_SSO_CODE
|
|
|
</sql>
|
|
|
<sql id="select">
|
|
|
SELECT <include refid="columns" /> FROM RMS_CONSIGNEE
|
|
@@ -45,7 +48,7 @@
|
|
|
SELECT <include refid="columns_alias" /> FROM RMS_CONSIGNEE t
|
|
|
</sql>
|
|
|
<sql id="where">
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="consigneeId != null">
|
|
|
and CONSIGNEE_ID = #{consigneeId}
|
|
|
</if>
|
|
@@ -106,10 +109,19 @@
|
|
|
<if test="consigneeFarId != null">
|
|
|
and CONSIGNEE_FAR_ID = #{consigneeFarId}
|
|
|
</if>
|
|
|
+ <if test="areaId != null">
|
|
|
+ and AREA_ID = #{areaId}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeSsoId != null and consigneeSsoId != ''">
|
|
|
+ and CONSIGNEE_SSO_ID = #{consigneeSsoId}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeSsoCode != null and consigneeSsoCode != ''">
|
|
|
+ and CONSIGNEE_SSO_CODE = #{consigneeSsoCode}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="consigneeId != null">
|
|
|
and CONSIGNEE_ID = #{consigneeId}
|
|
|
</if>
|
|
@@ -170,92 +182,112 @@
|
|
|
<if test="consigneeFarId != null">
|
|
|
and CONSIGNEE_FAR_ID = #{consigneeFarId}
|
|
|
</if>
|
|
|
+ <if test="areaId != null">
|
|
|
+ and AREA_ID = #{areaId}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeSsoId != null and consigneeSsoId != ''">
|
|
|
+ and CONSIGNEE_SSO_ID LIKE '%${consigneeSsoId}%'
|
|
|
+ </if>
|
|
|
+ <if test="consigneeSsoCode != null and consigneeSsoCode != ''">
|
|
|
+ and CONSIGNEE_SSO_CODE LIKE '%${consigneeSsoCode}%'
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="DECIMAL">
|
|
|
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 and consigneeContactTel != ''">
|
|
|
- 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>
|
|
|
- <if test="consigneeCode != null and consigneeCode != ''">
|
|
|
- or CONSIGNEE_CODE = #{consigneeCode}
|
|
|
- </if>
|
|
|
- <if test="consigneeFarId != null">
|
|
|
- or CONSIGNEE_FAR_ID = #{consigneeFarId}
|
|
|
- </if>
|
|
|
+ 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 and consigneeContactTel != ''">
|
|
|
+ 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>
|
|
|
+ <if test="consigneeCode != null and consigneeCode != ''">
|
|
|
+ or CONSIGNEE_CODE = #{consigneeCode}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeFarId != null">
|
|
|
+ or CONSIGNEE_FAR_ID = #{consigneeFarId}
|
|
|
+ </if>
|
|
|
+ <if test="areaId != null">
|
|
|
+ or AREA_ID = #{areaId}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeSsoId != null and consigneeSsoId != ''">
|
|
|
+ or CONSIGNEE_SSO_ID = #{consigneeSsoId}
|
|
|
+ </if>
|
|
|
+ <if test="consigneeSsoCode != null and consigneeSsoCode != ''">
|
|
|
+ or CONSIGNEE_SSO_CODE = #{consigneeSsoCode}
|
|
|
+ </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,
|
|
|
- CONSIGNEE_CODE, CONSIGNEE_FAR_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=VARCHAR},
|
|
|
- #{consigneeExchangeDelivery,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR},
|
|
|
- #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{easConsigneeId,jdbcType=VARCHAR},
|
|
|
- #{consigneeCode,jdbcType=VARCHAR}, #{consigneeFarId,jdbcType=DECIMAL})
|
|
|
+ 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,
|
|
|
+ CONSIGNEE_CODE, CONSIGNEE_FAR_ID, AREA_ID,
|
|
|
+ CONSIGNEE_SSO_ID, CONSIGNEE_SSO_CODE)
|
|
|
+ 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=VARCHAR},
|
|
|
+ #{consigneeExchangeDelivery,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR},
|
|
|
+ #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{easConsigneeId,jdbcType=VARCHAR},
|
|
|
+ #{consigneeCode,jdbcType=VARCHAR}, #{consigneeFarId,jdbcType=DECIMAL}, #{areaId,jdbcType=DECIMAL},
|
|
|
+ #{consigneeSsoId,jdbcType=VARCHAR}, #{consigneeSsoCode,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsConsignee">
|
|
|
insert into RMS_CONSIGNEE
|
|
@@ -320,6 +352,15 @@
|
|
|
<if test="consigneeFarId != null">
|
|
|
CONSIGNEE_FAR_ID,
|
|
|
</if>
|
|
|
+ <if test="areaId != null">
|
|
|
+ AREA_ID,
|
|
|
+ </if>
|
|
|
+ <if test="consigneeSsoId != null">
|
|
|
+ CONSIGNEE_SSO_ID,
|
|
|
+ </if>
|
|
|
+ <if test="consigneeSsoCode != null">
|
|
|
+ CONSIGNEE_SSO_CODE,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="consigneeId != null">
|
|
@@ -382,29 +423,41 @@
|
|
|
<if test="consigneeFarId != null">
|
|
|
#{consigneeFarId,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="areaId != null">
|
|
|
+ #{areaId,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeSsoId != null">
|
|
|
+ #{consigneeSsoId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeSsoCode != null">
|
|
|
+ #{consigneeSsoCode,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=VARCHAR},
|
|
|
- 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},
|
|
|
- CONSIGNEE_CODE = #{consigneeCode,jdbcType=VARCHAR},
|
|
|
- CONSIGNEE_FAR_ID = #{consigneeFarId,jdbcType=DECIMAL}
|
|
|
+ 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=VARCHAR},
|
|
|
+ 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},
|
|
|
+ CONSIGNEE_CODE = #{consigneeCode,jdbcType=VARCHAR},
|
|
|
+ CONSIGNEE_FAR_ID = #{consigneeFarId,jdbcType=DECIMAL},
|
|
|
+ AREA_ID = #{areaId,jdbcType=DECIMAL},
|
|
|
+ CONSIGNEE_SSO_ID = #{consigneeSsoId,jdbcType=VARCHAR},
|
|
|
+ CONSIGNEE_SSO_CODE = #{consigneeSsoCode,jdbcType=VARCHAR}
|
|
|
where CONSIGNEE_ID = #{consigneeId,jdbcType=DECIMAL}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsConsignee">
|
|
@@ -467,10 +520,19 @@
|
|
|
<if test="consigneeFarId != null">
|
|
|
CONSIGNEE_FAR_ID = #{consigneeFarId,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="areaId != null">
|
|
|
+ AREA_ID = #{areaId,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeSsoId != null">
|
|
|
+ CONSIGNEE_SSO_ID = #{consigneeSsoId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="consigneeSsoCode != null">
|
|
|
+ CONSIGNEE_SSO_CODE = #{consigneeSsoCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where CONSIGNEE_ID = #{consigneeId,jdbcType=DECIMAL}
|
|
|
</update>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
+ <select id="selectByPrimaryKey" parameterType="DECIMAL" resultMap="BaseResultMap">
|
|
|
<include refid="select" />
|
|
|
where CONSIGNEE_ID = #{consigneeId,jdbcType=DECIMAL}
|
|
|
</select>
|
|
@@ -483,124 +545,138 @@
|
|
|
<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, CONSIGNEE_CODE,
|
|
|
- CONSIGNEE_FAR_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=VARCHAR}, #{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}, #{item.consigneeCode,jdbcType=VARCHAR},
|
|
|
- #{item.consigneeFarId,jdbcType=DECIMAL} from dual
|
|
|
- </foreach> )
|
|
|
+ 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, CONSIGNEE_CODE,
|
|
|
+ CONSIGNEE_FAR_ID, AREA_ID, CONSIGNEE_SSO_ID,
|
|
|
+ CONSIGNEE_SSO_CODE)
|
|
|
+ ( <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=VARCHAR}, #{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}, #{item.consigneeCode,jdbcType=VARCHAR},
|
|
|
+ #{item.consigneeFarId,jdbcType=DECIMAL}, #{item.areaId,jdbcType=DECIMAL}, #{item.consigneeSsoId,jdbcType=VARCHAR},
|
|
|
+ #{item.consigneeSsoCode,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=VARCHAR}
|
|
|
- </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>
|
|
|
- ,CONSIGNEE_CODE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeCode,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CONSIGNEE_FAR_ID=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
- when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeFarId,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- where CONSIGNEE_ID in
|
|
|
- <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
- #{item.consigneeId,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
+ 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=VARCHAR}
|
|
|
+ </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>
|
|
|
+ ,CONSIGNEE_CODE=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeCode,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CONSIGNEE_FAR_ID=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeFarId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,AREA_ID=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.areaId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,CONSIGNEE_SSO_ID=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeSsoId,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CONSIGNEE_SSO_CODE=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CONSIGNEE_ID" separator=" ">
|
|
|
+ when #{item.consigneeId,jdbcType=DECIMAL} then #{item.consigneeSsoCode,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
|
|
|
+ where CONSIGNEE_ID in
|
|
|
<foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
#{id}
|
|
|
</foreach>
|
|
@@ -687,7 +763,7 @@
|
|
|
|
|
|
|
|
|
<select id="getConsigneeById" resultType="java.util.LinkedHashMap">
|
|
|
- SELECT
|
|
|
+ SELECT
|
|
|
RC.CONSIGNEE_ID AS "consigneeId",
|
|
|
RC.CONSIGNEE_COMPANY_NAME AS "companyName",
|
|
|
RC.CONSIGNEE_ABBREVIATION AS "consigneeAbbreviation",
|
|
@@ -696,27 +772,27 @@
|
|
|
RC.CONSIGNEE_REGISTRATION_TIME AS "consigneeRegistrationTime",
|
|
|
RC.CONSIGNEE_CONTACT_NAME AS "consigneeContactName",
|
|
|
RC.CONSIGNEE_CONTACT_TEL AS "consigneeContactTel"
|
|
|
- FROM RMS_CONSIGNEE RC
|
|
|
- WHERE RC.CONSIGNEE_ID = #{id}
|
|
|
+ FROM RMS_CONSIGNEE RC
|
|
|
+ WHERE RC.CONSIGNEE_ID = #{id}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectConsigneeId" resultType="DECIMAL" >
|
|
|
select max(RC.CONSIGNEE_ID+1) from RMS_CONSIGNEE RC
|
|
|
</select>
|
|
|
|
|
|
- <select id="getConsigneeByCompanyName" parameterType="java.lang.String" resultType="int">
|
|
|
- select count(*)
|
|
|
+ <select id="getConsigneeByCompanyName" parameterType="java.lang.String" resultType="DECIMAL">
|
|
|
+ select RC.CONSIGNEE_ID AS "consigneeId"
|
|
|
from RMS_CONSIGNEE RC
|
|
|
where RC.CONSIGNEE_COMPANY_NAME=#{companyName}
|
|
|
- and RC.DELETED!=1
|
|
|
+ and RC.DELETED!=1
|
|
|
</select>
|
|
|
|
|
|
<select id="getConsigneeFarId" resultType="java.util.Map" parameterType="java.lang.String">
|
|
|
select
|
|
|
- RC.CONSIGNEE_FAR_ID as "consigneeFarId",
|
|
|
- RC.CONSIGNEE_COMPANY_NAME as "consigneeCompanyName"
|
|
|
+ RC.CONSIGNEE_FAR_ID as "consigneeFarId",
|
|
|
+ RC.CONSIGNEE_COMPANY_NAME as "consigneeCompanyName"
|
|
|
from RMS_CONSIGNEE RC
|
|
|
where RC.CONSIGNEE_FAR_ID=RC.CONSIGNEE_ID
|
|
|
- and RC.CONSIGNEE_COMPANY_NAME like #{state}
|
|
|
+ and RC.CONSIGNEE_COMPANY_NAME like #{state}
|
|
|
</select>
|
|
|
</mapper>
|