|
@@ -41,6 +41,7 @@
|
|
|
<result column="CARRIER_BUSINESS_LICENSE" jdbcType="VARCHAR" property="carrierBusinessLicense" />
|
|
|
<result column="CARRIER_TRANSPORT_CERTIFICATE" jdbcType="VARCHAR" property="carrierTransportCertificate" />
|
|
|
<result column="CARRIER_SSO_ID" jdbcType="VARCHAR" property="carrierSsoId" />
|
|
|
+ <result column="CARRIER_SSO_CODE" jdbcType="VARCHAR" property="carrierSsoCode" />
|
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
|
CARRIER_ID, CARRIER_TRANSPORT_TYPE, CARRIER_NAME, CARRIER_ABBREVIATION, CARRIER_ADDRESS,
|
|
@@ -51,7 +52,7 @@
|
|
|
REGISTER_APTITUDES, CREDENTIAL_DESC, CONTACTS_NAME, INSERT_USERNAME, INSERT_TIME,
|
|
|
UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, CARRIER_TYPE, EAS_CARRIER_ID,
|
|
|
CARRIER_BUSINESS_ABLELICENSE, CARRIER_BUSINESS_LICENSE, CARRIER_TRANSPORT_CERTIFICATE,
|
|
|
- CARRIER_SSO_ID
|
|
|
+ CARRIER_SSO_ID, CARRIER_SSO_CODE
|
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
|
t.CARRIER_ID, t.CARRIER_TRANSPORT_TYPE, t.CARRIER_NAME, t.CARRIER_ABBREVIATION, t.CARRIER_ADDRESS,
|
|
@@ -62,7 +63,7 @@
|
|
|
t.REGISTER_ORGANIZATION, t.REGISTER_APTITUDES, t.CREDENTIAL_DESC, t.CONTACTS_NAME,
|
|
|
t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK,
|
|
|
t.DELETED, t.CARRIER_TYPE, t.EAS_CARRIER_ID, t.CARRIER_BUSINESS_ABLELICENSE, t.CARRIER_BUSINESS_LICENSE,
|
|
|
- t.CARRIER_TRANSPORT_CERTIFICATE, t.CARRIER_SSO_ID
|
|
|
+ t.CARRIER_TRANSPORT_CERTIFICATE, t.CARRIER_SSO_ID, t.CARRIER_SSO_CODE
|
|
|
</sql>
|
|
|
<sql id="select">
|
|
|
SELECT <include refid="columns" /> FROM RMS_CARRIER
|
|
@@ -71,7 +72,7 @@
|
|
|
SELECT <include refid="columns_alias" /> FROM RMS_CARRIER t
|
|
|
</sql>
|
|
|
<sql id="where">
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="carrierId != null">
|
|
|
and CARRIER_ID = #{carrierId}
|
|
|
</if>
|
|
@@ -189,10 +190,13 @@
|
|
|
<if test="carrierSsoId != null and carrierSsoId != ''">
|
|
|
and CARRIER_SSO_ID = #{carrierSsoId}
|
|
|
</if>
|
|
|
+ <if test="carrierSsoCode != null and carrierSsoCode != ''">
|
|
|
+ and CARRIER_SSO_CODE = #{carrierSsoCode}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="carrierId != null">
|
|
|
and CARRIER_ID = #{carrierId}
|
|
|
</if>
|
|
@@ -310,6 +314,9 @@
|
|
|
<if test="carrierSsoId != null and carrierSsoId != ''">
|
|
|
and CARRIER_SSO_ID LIKE '%${carrierSsoId}%'
|
|
|
</if>
|
|
|
+ <if test="carrierSsoCode != null and carrierSsoCode != ''">
|
|
|
+ and CARRIER_SSO_CODE LIKE '%${carrierSsoCode}%'
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
@@ -318,153 +325,156 @@
|
|
|
</delete>
|
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
delete from RMS_CARRIER
|
|
|
- where 1!=1
|
|
|
- <if test="carrierTransportType != null and carrierTransportType != ''">
|
|
|
- or CARRIER_TRANSPORT_TYPE = #{carrierTransportType}
|
|
|
- </if>
|
|
|
- <if test="carrierName != null and carrierName != ''">
|
|
|
- or CARRIER_NAME = #{carrierName}
|
|
|
- </if>
|
|
|
- <if test="carrierAbbreviation != null and carrierAbbreviation != ''">
|
|
|
- or CARRIER_ABBREVIATION = #{carrierAbbreviation}
|
|
|
- </if>
|
|
|
- <if test="carrierAddress != null and carrierAddress != ''">
|
|
|
- or CARRIER_ADDRESS = #{carrierAddress}
|
|
|
- </if>
|
|
|
- <if test="carrierBidAreaId != null">
|
|
|
- or CARRIER_BID_AREA_ID = #{carrierBidAreaId}
|
|
|
- </if>
|
|
|
- <if test="carrierBidTime != null">
|
|
|
- or TO_CHAR(CARRIER_BID_TIME,'yyyy-MM-dd') = '#{carrierBidTime}'
|
|
|
- </if>
|
|
|
- <if test="carrierLegalRepresentative != null and carrierLegalRepresentative != ''">
|
|
|
- or CARRIER_LEGAL_REPRESENTATIVE = #{carrierLegalRepresentative}
|
|
|
- </if>
|
|
|
- <if test="registerNo != null and registerNo != ''">
|
|
|
- or REGISTER_NO = #{registerNo}
|
|
|
- </if>
|
|
|
- <if test="carrierAgent != null and carrierAgent != ''">
|
|
|
- or CARRIER_AGENT = #{carrierAgent}
|
|
|
- </if>
|
|
|
- <if test="carrierContactNumber != null and carrierContactNumber != ''">
|
|
|
- or CARRIER_CONTACT_NUMBER = #{carrierContactNumber}
|
|
|
- </if>
|
|
|
- <if test="carrierFax != null and carrierFax != ''">
|
|
|
- or CARRIER_FAX = #{carrierFax}
|
|
|
- </if>
|
|
|
- <if test="carrierAccount != null and carrierAccount != ''">
|
|
|
- or CARRIER_ACCOUNT = #{carrierAccount}
|
|
|
- </if>
|
|
|
- <if test="carrierAccountBlank != null and carrierAccountBlank != ''">
|
|
|
- or CARRIER_ACCOUNT_BLANK = #{carrierAccountBlank}
|
|
|
- </if>
|
|
|
- <if test="carrierDutyParagraph != null and carrierDutyParagraph != ''">
|
|
|
- or CARRIER_DUTY_PARAGRAPH = #{carrierDutyParagraph}
|
|
|
- </if>
|
|
|
- <if test="carrierPostalCode != null and carrierPostalCode != ''">
|
|
|
- or CARRIER_POSTAL_CODE = #{carrierPostalCode}
|
|
|
- </if>
|
|
|
- <if test="registerCapital != null and registerCapital != ''">
|
|
|
- or REGISTER_CAPITAL = #{registerCapital}
|
|
|
- </if>
|
|
|
- <if test="businessScope != null and businessScope != ''">
|
|
|
- or BUSINESS_SCOPE = #{businessScope}
|
|
|
- </if>
|
|
|
- <if test="annualDate != null and annualDate != ''">
|
|
|
- or ANNUAL_DATE = #{annualDate}
|
|
|
- </if>
|
|
|
- <if test="companyStatusDesc != null and companyStatusDesc != ''">
|
|
|
- or COMPANY_STATUS_DESC = #{companyStatusDesc}
|
|
|
- </if>
|
|
|
- <if test="companyTypeDesc != null and companyTypeDesc != ''">
|
|
|
- or COMPANY_TYPE_DESC = #{companyTypeDesc}
|
|
|
- </if>
|
|
|
- <if test="operationPeriod != null and operationPeriod != ''">
|
|
|
- or OPERATION_PERIOD = #{operationPeriod}
|
|
|
- </if>
|
|
|
- <if test="registerDate != null">
|
|
|
- or TO_CHAR(REGISTER_DATE,'yyyy-MM-dd') = '#{registerDate}'
|
|
|
- </if>
|
|
|
- <if test="registerOrganization != null and registerOrganization != ''">
|
|
|
- or REGISTER_ORGANIZATION = #{registerOrganization}
|
|
|
- </if>
|
|
|
- <if test="registerAptitudes != null and registerAptitudes != ''">
|
|
|
- or REGISTER_APTITUDES = #{registerAptitudes}
|
|
|
- </if>
|
|
|
- <if test="credentialDesc != null and credentialDesc != ''">
|
|
|
- or CREDENTIAL_DESC = #{credentialDesc}
|
|
|
- </if>
|
|
|
- <if test="contactsName != null and contactsName != ''">
|
|
|
- or CONTACTS_NAME = #{contactsName}
|
|
|
- </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="carrierType != null and carrierType != ''">
|
|
|
- or CARRIER_TYPE = #{carrierType}
|
|
|
- </if>
|
|
|
- <if test="easCarrierId != null and easCarrierId != ''">
|
|
|
- or EAS_CARRIER_ID = #{easCarrierId}
|
|
|
- </if>
|
|
|
- <if test="carrierBusinessAblelicense != null and carrierBusinessAblelicense != ''">
|
|
|
- or CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense}
|
|
|
- </if>
|
|
|
- <if test="carrierBusinessLicense != null and carrierBusinessLicense != ''">
|
|
|
- or CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense}
|
|
|
- </if>
|
|
|
- <if test="carrierTransportCertificate != null and carrierTransportCertificate != ''">
|
|
|
- or CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate}
|
|
|
- </if>
|
|
|
- <if test="carrierSsoId != null and carrierSsoId != ''">
|
|
|
- or CARRIER_SSO_ID = #{carrierSsoId}
|
|
|
- </if>
|
|
|
+ where 1!=1
|
|
|
+ <if test="carrierTransportType != null and carrierTransportType != ''">
|
|
|
+ or CARRIER_TRANSPORT_TYPE = #{carrierTransportType}
|
|
|
+ </if>
|
|
|
+ <if test="carrierName != null and carrierName != ''">
|
|
|
+ or CARRIER_NAME = #{carrierName}
|
|
|
+ </if>
|
|
|
+ <if test="carrierAbbreviation != null and carrierAbbreviation != ''">
|
|
|
+ or CARRIER_ABBREVIATION = #{carrierAbbreviation}
|
|
|
+ </if>
|
|
|
+ <if test="carrierAddress != null and carrierAddress != ''">
|
|
|
+ or CARRIER_ADDRESS = #{carrierAddress}
|
|
|
+ </if>
|
|
|
+ <if test="carrierBidAreaId != null">
|
|
|
+ or CARRIER_BID_AREA_ID = #{carrierBidAreaId}
|
|
|
+ </if>
|
|
|
+ <if test="carrierBidTime != null">
|
|
|
+ or TO_CHAR(CARRIER_BID_TIME,'yyyy-MM-dd') = '#{carrierBidTime}'
|
|
|
+ </if>
|
|
|
+ <if test="carrierLegalRepresentative != null and carrierLegalRepresentative != ''">
|
|
|
+ or CARRIER_LEGAL_REPRESENTATIVE = #{carrierLegalRepresentative}
|
|
|
+ </if>
|
|
|
+ <if test="registerNo != null and registerNo != ''">
|
|
|
+ or REGISTER_NO = #{registerNo}
|
|
|
+ </if>
|
|
|
+ <if test="carrierAgent != null and carrierAgent != ''">
|
|
|
+ or CARRIER_AGENT = #{carrierAgent}
|
|
|
+ </if>
|
|
|
+ <if test="carrierContactNumber != null and carrierContactNumber != ''">
|
|
|
+ or CARRIER_CONTACT_NUMBER = #{carrierContactNumber}
|
|
|
+ </if>
|
|
|
+ <if test="carrierFax != null and carrierFax != ''">
|
|
|
+ or CARRIER_FAX = #{carrierFax}
|
|
|
+ </if>
|
|
|
+ <if test="carrierAccount != null and carrierAccount != ''">
|
|
|
+ or CARRIER_ACCOUNT = #{carrierAccount}
|
|
|
+ </if>
|
|
|
+ <if test="carrierAccountBlank != null and carrierAccountBlank != ''">
|
|
|
+ or CARRIER_ACCOUNT_BLANK = #{carrierAccountBlank}
|
|
|
+ </if>
|
|
|
+ <if test="carrierDutyParagraph != null and carrierDutyParagraph != ''">
|
|
|
+ or CARRIER_DUTY_PARAGRAPH = #{carrierDutyParagraph}
|
|
|
+ </if>
|
|
|
+ <if test="carrierPostalCode != null and carrierPostalCode != ''">
|
|
|
+ or CARRIER_POSTAL_CODE = #{carrierPostalCode}
|
|
|
+ </if>
|
|
|
+ <if test="registerCapital != null and registerCapital != ''">
|
|
|
+ or REGISTER_CAPITAL = #{registerCapital}
|
|
|
+ </if>
|
|
|
+ <if test="businessScope != null and businessScope != ''">
|
|
|
+ or BUSINESS_SCOPE = #{businessScope}
|
|
|
+ </if>
|
|
|
+ <if test="annualDate != null and annualDate != ''">
|
|
|
+ or ANNUAL_DATE = #{annualDate}
|
|
|
+ </if>
|
|
|
+ <if test="companyStatusDesc != null and companyStatusDesc != ''">
|
|
|
+ or COMPANY_STATUS_DESC = #{companyStatusDesc}
|
|
|
+ </if>
|
|
|
+ <if test="companyTypeDesc != null and companyTypeDesc != ''">
|
|
|
+ or COMPANY_TYPE_DESC = #{companyTypeDesc}
|
|
|
+ </if>
|
|
|
+ <if test="operationPeriod != null and operationPeriod != ''">
|
|
|
+ or OPERATION_PERIOD = #{operationPeriod}
|
|
|
+ </if>
|
|
|
+ <if test="registerDate != null">
|
|
|
+ or TO_CHAR(REGISTER_DATE,'yyyy-MM-dd') = '#{registerDate}'
|
|
|
+ </if>
|
|
|
+ <if test="registerOrganization != null and registerOrganization != ''">
|
|
|
+ or REGISTER_ORGANIZATION = #{registerOrganization}
|
|
|
+ </if>
|
|
|
+ <if test="registerAptitudes != null and registerAptitudes != ''">
|
|
|
+ or REGISTER_APTITUDES = #{registerAptitudes}
|
|
|
+ </if>
|
|
|
+ <if test="credentialDesc != null and credentialDesc != ''">
|
|
|
+ or CREDENTIAL_DESC = #{credentialDesc}
|
|
|
+ </if>
|
|
|
+ <if test="contactsName != null and contactsName != ''">
|
|
|
+ or CONTACTS_NAME = #{contactsName}
|
|
|
+ </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="carrierType != null and carrierType != ''">
|
|
|
+ or CARRIER_TYPE = #{carrierType}
|
|
|
+ </if>
|
|
|
+ <if test="easCarrierId != null and easCarrierId != ''">
|
|
|
+ or EAS_CARRIER_ID = #{easCarrierId}
|
|
|
+ </if>
|
|
|
+ <if test="carrierBusinessAblelicense != null and carrierBusinessAblelicense != ''">
|
|
|
+ or CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense}
|
|
|
+ </if>
|
|
|
+ <if test="carrierBusinessLicense != null and carrierBusinessLicense != ''">
|
|
|
+ or CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense}
|
|
|
+ </if>
|
|
|
+ <if test="carrierTransportCertificate != null and carrierTransportCertificate != ''">
|
|
|
+ or CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate}
|
|
|
+ </if>
|
|
|
+ <if test="carrierSsoId != null and carrierSsoId != ''">
|
|
|
+ or CARRIER_SSO_ID = #{carrierSsoId}
|
|
|
+ </if>
|
|
|
+ <if test="carrierSsoCode != null and carrierSsoCode != ''">
|
|
|
+ or CARRIER_SSO_CODE = #{carrierSsoCode}
|
|
|
+ </if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.RmsCarrier">
|
|
|
- insert into RMS_CARRIER (CARRIER_ID, CARRIER_TRANSPORT_TYPE,
|
|
|
- CARRIER_NAME, CARRIER_ABBREVIATION, CARRIER_ADDRESS,
|
|
|
- CARRIER_BID_AREA_ID, CARRIER_BID_TIME, CARRIER_LEGAL_REPRESENTATIVE,
|
|
|
- REGISTER_NO, CARRIER_AGENT, CARRIER_CONTACT_NUMBER,
|
|
|
- CARRIER_FAX, CARRIER_ACCOUNT, CARRIER_ACCOUNT_BLANK,
|
|
|
- CARRIER_DUTY_PARAGRAPH, CARRIER_POSTAL_CODE,
|
|
|
- REGISTER_CAPITAL, BUSINESS_SCOPE, ANNUAL_DATE,
|
|
|
- COMPANY_STATUS_DESC, COMPANY_TYPE_DESC, OPERATION_PERIOD,
|
|
|
- REGISTER_DATE, REGISTER_ORGANIZATION, REGISTER_APTITUDES,
|
|
|
- CREDENTIAL_DESC, CONTACTS_NAME, INSERT_USERNAME,
|
|
|
- INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
|
- INSERT_UPDATE_REMARK, DELETED, CARRIER_TYPE,
|
|
|
- EAS_CARRIER_ID, CARRIER_BUSINESS_ABLELICENSE,
|
|
|
- CARRIER_BUSINESS_LICENSE, CARRIER_TRANSPORT_CERTIFICATE,
|
|
|
- CARRIER_SSO_ID)
|
|
|
- values (#{carrierId,jdbcType=DECIMAL}, #{carrierTransportType,jdbcType=VARCHAR},
|
|
|
- #{carrierName,jdbcType=VARCHAR}, #{carrierAbbreviation,jdbcType=VARCHAR}, #{carrierAddress,jdbcType=VARCHAR},
|
|
|
- #{carrierBidAreaId,jdbcType=DECIMAL}, #{carrierBidTime,jdbcType=TIMESTAMP}, #{carrierLegalRepresentative,jdbcType=VARCHAR},
|
|
|
- #{registerNo,jdbcType=VARCHAR}, #{carrierAgent,jdbcType=VARCHAR}, #{carrierContactNumber,jdbcType=VARCHAR},
|
|
|
- #{carrierFax,jdbcType=VARCHAR}, #{carrierAccount,jdbcType=VARCHAR}, #{carrierAccountBlank,jdbcType=VARCHAR},
|
|
|
- #{carrierDutyParagraph,jdbcType=VARCHAR}, #{carrierPostalCode,jdbcType=VARCHAR},
|
|
|
- #{registerCapital,jdbcType=VARCHAR}, #{businessScope,jdbcType=VARCHAR}, #{annualDate,jdbcType=VARCHAR},
|
|
|
- #{companyStatusDesc,jdbcType=VARCHAR}, #{companyTypeDesc,jdbcType=VARCHAR}, #{operationPeriod,jdbcType=VARCHAR},
|
|
|
- #{registerDate,jdbcType=TIMESTAMP}, #{registerOrganization,jdbcType=VARCHAR}, #{registerAptitudes,jdbcType=VARCHAR},
|
|
|
- #{credentialDesc,jdbcType=VARCHAR}, #{contactsName,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
|
|
|
- #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{carrierType,jdbcType=VARCHAR},
|
|
|
- #{easCarrierId,jdbcType=VARCHAR}, #{carrierBusinessAblelicense,jdbcType=VARCHAR},
|
|
|
- #{carrierBusinessLicense,jdbcType=VARCHAR}, #{carrierTransportCertificate,jdbcType=VARCHAR},
|
|
|
- #{carrierSsoId,jdbcType=VARCHAR})
|
|
|
+ insert into RMS_CARRIER (CARRIER_ID, CARRIER_TRANSPORT_TYPE,
|
|
|
+ CARRIER_NAME, CARRIER_ABBREVIATION, CARRIER_ADDRESS,
|
|
|
+ CARRIER_BID_AREA_ID, CARRIER_BID_TIME, CARRIER_LEGAL_REPRESENTATIVE,
|
|
|
+ REGISTER_NO, CARRIER_AGENT, CARRIER_CONTACT_NUMBER,
|
|
|
+ CARRIER_FAX, CARRIER_ACCOUNT, CARRIER_ACCOUNT_BLANK,
|
|
|
+ CARRIER_DUTY_PARAGRAPH, CARRIER_POSTAL_CODE,
|
|
|
+ REGISTER_CAPITAL, BUSINESS_SCOPE, ANNUAL_DATE,
|
|
|
+ COMPANY_STATUS_DESC, COMPANY_TYPE_DESC, OPERATION_PERIOD,
|
|
|
+ REGISTER_DATE, REGISTER_ORGANIZATION, REGISTER_APTITUDES,
|
|
|
+ CREDENTIAL_DESC, CONTACTS_NAME, INSERT_USERNAME,
|
|
|
+ INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
|
+ INSERT_UPDATE_REMARK, DELETED, CARRIER_TYPE,
|
|
|
+ EAS_CARRIER_ID, CARRIER_BUSINESS_ABLELICENSE,
|
|
|
+ CARRIER_BUSINESS_LICENSE, CARRIER_TRANSPORT_CERTIFICATE,
|
|
|
+ CARRIER_SSO_ID, CARRIER_SSO_CODE)
|
|
|
+ values (#{carrierId,jdbcType=DECIMAL}, #{carrierTransportType,jdbcType=VARCHAR},
|
|
|
+ #{carrierName,jdbcType=VARCHAR}, #{carrierAbbreviation,jdbcType=VARCHAR}, #{carrierAddress,jdbcType=VARCHAR},
|
|
|
+ #{carrierBidAreaId,jdbcType=DECIMAL}, #{carrierBidTime,jdbcType=TIMESTAMP}, #{carrierLegalRepresentative,jdbcType=VARCHAR},
|
|
|
+ #{registerNo,jdbcType=VARCHAR}, #{carrierAgent,jdbcType=VARCHAR}, #{carrierContactNumber,jdbcType=VARCHAR},
|
|
|
+ #{carrierFax,jdbcType=VARCHAR}, #{carrierAccount,jdbcType=VARCHAR}, #{carrierAccountBlank,jdbcType=VARCHAR},
|
|
|
+ #{carrierDutyParagraph,jdbcType=VARCHAR}, #{carrierPostalCode,jdbcType=VARCHAR},
|
|
|
+ #{registerCapital,jdbcType=VARCHAR}, #{businessScope,jdbcType=VARCHAR}, #{annualDate,jdbcType=VARCHAR},
|
|
|
+ #{companyStatusDesc,jdbcType=VARCHAR}, #{companyTypeDesc,jdbcType=VARCHAR}, #{operationPeriod,jdbcType=VARCHAR},
|
|
|
+ #{registerDate,jdbcType=TIMESTAMP}, #{registerOrganization,jdbcType=VARCHAR}, #{registerAptitudes,jdbcType=VARCHAR},
|
|
|
+ #{credentialDesc,jdbcType=VARCHAR}, #{contactsName,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
|
|
|
+ #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{carrierType,jdbcType=VARCHAR},
|
|
|
+ #{easCarrierId,jdbcType=VARCHAR}, #{carrierBusinessAblelicense,jdbcType=VARCHAR},
|
|
|
+ #{carrierBusinessLicense,jdbcType=VARCHAR}, #{carrierTransportCertificate,jdbcType=VARCHAR},
|
|
|
+ #{carrierSsoId,jdbcType=VARCHAR}, #{carrierSsoCode,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsCarrier">
|
|
|
insert into RMS_CARRIER
|
|
@@ -586,6 +596,9 @@
|
|
|
<if test="carrierSsoId != null">
|
|
|
CARRIER_SSO_ID,
|
|
|
</if>
|
|
|
+ <if test="carrierSsoCode != null">
|
|
|
+ CARRIER_SSO_CODE,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="carrierId != null">
|
|
@@ -705,48 +718,52 @@
|
|
|
<if test="carrierSsoId != null">
|
|
|
#{carrierSsoId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="carrierSsoCode != null">
|
|
|
+ #{carrierSsoCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsCarrier">
|
|
|
update RMS_CARRIER
|
|
|
set CARRIER_TRANSPORT_TYPE = #{carrierTransportType,jdbcType=VARCHAR},
|
|
|
- CARRIER_NAME = #{carrierName,jdbcType=VARCHAR},
|
|
|
- CARRIER_ABBREVIATION = #{carrierAbbreviation,jdbcType=VARCHAR},
|
|
|
- CARRIER_ADDRESS = #{carrierAddress,jdbcType=VARCHAR},
|
|
|
- CARRIER_BID_AREA_ID = #{carrierBidAreaId,jdbcType=DECIMAL},
|
|
|
- CARRIER_BID_TIME = #{carrierBidTime,jdbcType=TIMESTAMP},
|
|
|
- CARRIER_LEGAL_REPRESENTATIVE = #{carrierLegalRepresentative,jdbcType=VARCHAR},
|
|
|
- REGISTER_NO = #{registerNo,jdbcType=VARCHAR},
|
|
|
- CARRIER_AGENT = #{carrierAgent,jdbcType=VARCHAR},
|
|
|
- CARRIER_CONTACT_NUMBER = #{carrierContactNumber,jdbcType=VARCHAR},
|
|
|
- CARRIER_FAX = #{carrierFax,jdbcType=VARCHAR},
|
|
|
- CARRIER_ACCOUNT = #{carrierAccount,jdbcType=VARCHAR},
|
|
|
- CARRIER_ACCOUNT_BLANK = #{carrierAccountBlank,jdbcType=VARCHAR},
|
|
|
- CARRIER_DUTY_PARAGRAPH = #{carrierDutyParagraph,jdbcType=VARCHAR},
|
|
|
- CARRIER_POSTAL_CODE = #{carrierPostalCode,jdbcType=VARCHAR},
|
|
|
- REGISTER_CAPITAL = #{registerCapital,jdbcType=VARCHAR},
|
|
|
- BUSINESS_SCOPE = #{businessScope,jdbcType=VARCHAR},
|
|
|
- ANNUAL_DATE = #{annualDate,jdbcType=VARCHAR},
|
|
|
- COMPANY_STATUS_DESC = #{companyStatusDesc,jdbcType=VARCHAR},
|
|
|
- COMPANY_TYPE_DESC = #{companyTypeDesc,jdbcType=VARCHAR},
|
|
|
- OPERATION_PERIOD = #{operationPeriod,jdbcType=VARCHAR},
|
|
|
- REGISTER_DATE = #{registerDate,jdbcType=TIMESTAMP},
|
|
|
- REGISTER_ORGANIZATION = #{registerOrganization,jdbcType=VARCHAR},
|
|
|
- REGISTER_APTITUDES = #{registerAptitudes,jdbcType=VARCHAR},
|
|
|
- CREDENTIAL_DESC = #{credentialDesc,jdbcType=VARCHAR},
|
|
|
- CONTACTS_NAME = #{contactsName,jdbcType=VARCHAR},
|
|
|
- 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},
|
|
|
- CARRIER_TYPE = #{carrierType,jdbcType=VARCHAR},
|
|
|
- EAS_CARRIER_ID = #{easCarrierId,jdbcType=VARCHAR},
|
|
|
- CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense,jdbcType=VARCHAR},
|
|
|
- CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense,jdbcType=VARCHAR},
|
|
|
- CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate,jdbcType=VARCHAR},
|
|
|
- CARRIER_SSO_ID = #{carrierSsoId,jdbcType=VARCHAR}
|
|
|
+ CARRIER_NAME = #{carrierName,jdbcType=VARCHAR},
|
|
|
+ CARRIER_ABBREVIATION = #{carrierAbbreviation,jdbcType=VARCHAR},
|
|
|
+ CARRIER_ADDRESS = #{carrierAddress,jdbcType=VARCHAR},
|
|
|
+ CARRIER_BID_AREA_ID = #{carrierBidAreaId,jdbcType=DECIMAL},
|
|
|
+ CARRIER_BID_TIME = #{carrierBidTime,jdbcType=TIMESTAMP},
|
|
|
+ CARRIER_LEGAL_REPRESENTATIVE = #{carrierLegalRepresentative,jdbcType=VARCHAR},
|
|
|
+ REGISTER_NO = #{registerNo,jdbcType=VARCHAR},
|
|
|
+ CARRIER_AGENT = #{carrierAgent,jdbcType=VARCHAR},
|
|
|
+ CARRIER_CONTACT_NUMBER = #{carrierContactNumber,jdbcType=VARCHAR},
|
|
|
+ CARRIER_FAX = #{carrierFax,jdbcType=VARCHAR},
|
|
|
+ CARRIER_ACCOUNT = #{carrierAccount,jdbcType=VARCHAR},
|
|
|
+ CARRIER_ACCOUNT_BLANK = #{carrierAccountBlank,jdbcType=VARCHAR},
|
|
|
+ CARRIER_DUTY_PARAGRAPH = #{carrierDutyParagraph,jdbcType=VARCHAR},
|
|
|
+ CARRIER_POSTAL_CODE = #{carrierPostalCode,jdbcType=VARCHAR},
|
|
|
+ REGISTER_CAPITAL = #{registerCapital,jdbcType=VARCHAR},
|
|
|
+ BUSINESS_SCOPE = #{businessScope,jdbcType=VARCHAR},
|
|
|
+ ANNUAL_DATE = #{annualDate,jdbcType=VARCHAR},
|
|
|
+ COMPANY_STATUS_DESC = #{companyStatusDesc,jdbcType=VARCHAR},
|
|
|
+ COMPANY_TYPE_DESC = #{companyTypeDesc,jdbcType=VARCHAR},
|
|
|
+ OPERATION_PERIOD = #{operationPeriod,jdbcType=VARCHAR},
|
|
|
+ REGISTER_DATE = #{registerDate,jdbcType=TIMESTAMP},
|
|
|
+ REGISTER_ORGANIZATION = #{registerOrganization,jdbcType=VARCHAR},
|
|
|
+ REGISTER_APTITUDES = #{registerAptitudes,jdbcType=VARCHAR},
|
|
|
+ CREDENTIAL_DESC = #{credentialDesc,jdbcType=VARCHAR},
|
|
|
+ CONTACTS_NAME = #{contactsName,jdbcType=VARCHAR},
|
|
|
+ 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},
|
|
|
+ CARRIER_TYPE = #{carrierType,jdbcType=VARCHAR},
|
|
|
+ EAS_CARRIER_ID = #{easCarrierId,jdbcType=VARCHAR},
|
|
|
+ CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense,jdbcType=VARCHAR},
|
|
|
+ CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense,jdbcType=VARCHAR},
|
|
|
+ CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate,jdbcType=VARCHAR},
|
|
|
+ CARRIER_SSO_ID = #{carrierSsoId,jdbcType=VARCHAR},
|
|
|
+ CARRIER_SSO_CODE = #{carrierSsoCode,jdbcType=VARCHAR}
|
|
|
where CARRIER_ID = #{carrierId,jdbcType=DECIMAL}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsCarrier">
|
|
@@ -866,6 +883,9 @@
|
|
|
<if test="carrierSsoId != null">
|
|
|
CARRIER_SSO_ID = #{carrierSsoId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="carrierSsoCode != null">
|
|
|
+ CARRIER_SSO_CODE = #{carrierSsoCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where CARRIER_ID = #{carrierId,jdbcType=DECIMAL}
|
|
|
</update>
|
|
@@ -882,218 +902,222 @@
|
|
|
<include refid="whereLike" />
|
|
|
</select>
|
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
|
- insert into RMS_CARRIER
|
|
|
- (CARRIER_ID,
|
|
|
- CARRIER_TRANSPORT_TYPE, CARRIER_NAME,
|
|
|
- CARRIER_ABBREVIATION, CARRIER_ADDRESS,
|
|
|
- CARRIER_BID_AREA_ID, CARRIER_BID_TIME,
|
|
|
- CARRIER_LEGAL_REPRESENTATIVE, REGISTER_NO,
|
|
|
- CARRIER_AGENT, CARRIER_CONTACT_NUMBER,
|
|
|
- CARRIER_FAX, CARRIER_ACCOUNT, CARRIER_ACCOUNT_BLANK,
|
|
|
- CARRIER_DUTY_PARAGRAPH, CARRIER_POSTAL_CODE,
|
|
|
- REGISTER_CAPITAL, BUSINESS_SCOPE,
|
|
|
- ANNUAL_DATE, COMPANY_STATUS_DESC,
|
|
|
- COMPANY_TYPE_DESC, OPERATION_PERIOD,
|
|
|
- REGISTER_DATE, REGISTER_ORGANIZATION,
|
|
|
- REGISTER_APTITUDES, CREDENTIAL_DESC,
|
|
|
- CONTACTS_NAME, INSERT_USERNAME,
|
|
|
- INSERT_TIME, UPDATE_USERNAME,
|
|
|
- UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
|
- DELETED, CARRIER_TYPE, EAS_CARRIER_ID,
|
|
|
- CARRIER_BUSINESS_ABLELICENSE, CARRIER_BUSINESS_LICENSE,
|
|
|
- CARRIER_TRANSPORT_CERTIFICATE, CARRIER_SSO_ID
|
|
|
- )
|
|
|
- ( <foreach collection="list" item="item" separator="union all">
|
|
|
- select
|
|
|
- #{item.carrierId,jdbcType=DECIMAL},
|
|
|
- #{item.carrierTransportType,jdbcType=VARCHAR}, #{item.carrierName,jdbcType=VARCHAR},
|
|
|
- #{item.carrierAbbreviation,jdbcType=VARCHAR}, #{item.carrierAddress,jdbcType=VARCHAR},
|
|
|
- #{item.carrierBidAreaId,jdbcType=DECIMAL}, #{item.carrierBidTime,jdbcType=TIMESTAMP},
|
|
|
- #{item.carrierLegalRepresentative,jdbcType=VARCHAR}, #{item.registerNo,jdbcType=VARCHAR},
|
|
|
- #{item.carrierAgent,jdbcType=VARCHAR}, #{item.carrierContactNumber,jdbcType=VARCHAR},
|
|
|
- #{item.carrierFax,jdbcType=VARCHAR}, #{item.carrierAccount,jdbcType=VARCHAR}, #{item.carrierAccountBlank,jdbcType=VARCHAR},
|
|
|
- #{item.carrierDutyParagraph,jdbcType=VARCHAR}, #{item.carrierPostalCode,jdbcType=VARCHAR},
|
|
|
- #{item.registerCapital,jdbcType=VARCHAR}, #{item.businessScope,jdbcType=VARCHAR},
|
|
|
- #{item.annualDate,jdbcType=VARCHAR}, #{item.companyStatusDesc,jdbcType=VARCHAR},
|
|
|
- #{item.companyTypeDesc,jdbcType=VARCHAR}, #{item.operationPeriod,jdbcType=VARCHAR},
|
|
|
- #{item.registerDate,jdbcType=TIMESTAMP}, #{item.registerOrganization,jdbcType=VARCHAR},
|
|
|
- #{item.registerAptitudes,jdbcType=VARCHAR}, #{item.credentialDesc,jdbcType=VARCHAR},
|
|
|
- #{item.contactsName,jdbcType=VARCHAR}, #{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.carrierType,jdbcType=VARCHAR}, #{item.easCarrierId,jdbcType=VARCHAR},
|
|
|
- #{item.carrierBusinessAblelicense,jdbcType=VARCHAR}, #{item.carrierBusinessLicense,jdbcType=VARCHAR},
|
|
|
- #{item.carrierTransportCertificate,jdbcType=VARCHAR}, #{item.carrierSsoId,jdbcType=VARCHAR}
|
|
|
- from dual
|
|
|
- </foreach> )
|
|
|
+ insert into RMS_CARRIER
|
|
|
+ (CARRIER_ID,
|
|
|
+ CARRIER_TRANSPORT_TYPE, CARRIER_NAME,
|
|
|
+ CARRIER_ABBREVIATION, CARRIER_ADDRESS,
|
|
|
+ CARRIER_BID_AREA_ID, CARRIER_BID_TIME,
|
|
|
+ CARRIER_LEGAL_REPRESENTATIVE, REGISTER_NO,
|
|
|
+ CARRIER_AGENT, CARRIER_CONTACT_NUMBER,
|
|
|
+ CARRIER_FAX, CARRIER_ACCOUNT, CARRIER_ACCOUNT_BLANK,
|
|
|
+ CARRIER_DUTY_PARAGRAPH, CARRIER_POSTAL_CODE,
|
|
|
+ REGISTER_CAPITAL, BUSINESS_SCOPE,
|
|
|
+ ANNUAL_DATE, COMPANY_STATUS_DESC,
|
|
|
+ COMPANY_TYPE_DESC, OPERATION_PERIOD,
|
|
|
+ REGISTER_DATE, REGISTER_ORGANIZATION,
|
|
|
+ REGISTER_APTITUDES, CREDENTIAL_DESC,
|
|
|
+ CONTACTS_NAME, INSERT_USERNAME,
|
|
|
+ INSERT_TIME, UPDATE_USERNAME,
|
|
|
+ UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
|
+ DELETED, CARRIER_TYPE, EAS_CARRIER_ID,
|
|
|
+ CARRIER_BUSINESS_ABLELICENSE, CARRIER_BUSINESS_LICENSE,
|
|
|
+ CARRIER_TRANSPORT_CERTIFICATE, CARRIER_SSO_ID,
|
|
|
+ CARRIER_SSO_CODE)
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
+ select
|
|
|
+ #{item.carrierId,jdbcType=DECIMAL},
|
|
|
+ #{item.carrierTransportType,jdbcType=VARCHAR}, #{item.carrierName,jdbcType=VARCHAR},
|
|
|
+ #{item.carrierAbbreviation,jdbcType=VARCHAR}, #{item.carrierAddress,jdbcType=VARCHAR},
|
|
|
+ #{item.carrierBidAreaId,jdbcType=DECIMAL}, #{item.carrierBidTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.carrierLegalRepresentative,jdbcType=VARCHAR}, #{item.registerNo,jdbcType=VARCHAR},
|
|
|
+ #{item.carrierAgent,jdbcType=VARCHAR}, #{item.carrierContactNumber,jdbcType=VARCHAR},
|
|
|
+ #{item.carrierFax,jdbcType=VARCHAR}, #{item.carrierAccount,jdbcType=VARCHAR}, #{item.carrierAccountBlank,jdbcType=VARCHAR},
|
|
|
+ #{item.carrierDutyParagraph,jdbcType=VARCHAR}, #{item.carrierPostalCode,jdbcType=VARCHAR},
|
|
|
+ #{item.registerCapital,jdbcType=VARCHAR}, #{item.businessScope,jdbcType=VARCHAR},
|
|
|
+ #{item.annualDate,jdbcType=VARCHAR}, #{item.companyStatusDesc,jdbcType=VARCHAR},
|
|
|
+ #{item.companyTypeDesc,jdbcType=VARCHAR}, #{item.operationPeriod,jdbcType=VARCHAR},
|
|
|
+ #{item.registerDate,jdbcType=TIMESTAMP}, #{item.registerOrganization,jdbcType=VARCHAR},
|
|
|
+ #{item.registerAptitudes,jdbcType=VARCHAR}, #{item.credentialDesc,jdbcType=VARCHAR},
|
|
|
+ #{item.contactsName,jdbcType=VARCHAR}, #{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.carrierType,jdbcType=VARCHAR}, #{item.easCarrierId,jdbcType=VARCHAR},
|
|
|
+ #{item.carrierBusinessAblelicense,jdbcType=VARCHAR}, #{item.carrierBusinessLicense,jdbcType=VARCHAR},
|
|
|
+ #{item.carrierTransportCertificate,jdbcType=VARCHAR}, #{item.carrierSsoId,jdbcType=VARCHAR},
|
|
|
+ #{item.carrierSsoCode,jdbcType=VARCHAR} from dual
|
|
|
+ </foreach> )
|
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
|
- update RMS_CARRIER
|
|
|
- set
|
|
|
- CARRIER_ID=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_TRANSPORT_TYPE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierTransportType,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_NAME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierName,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_ABBREVIATION=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAbbreviation,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_ADDRESS=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAddress,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_BID_AREA_ID=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBidAreaId,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_BID_TIME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBidTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_LEGAL_REPRESENTATIVE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierLegalRepresentative,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,REGISTER_NO=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_AGENT=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAgent,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_CONTACT_NUMBER=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierContactNumber,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_FAX=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierFax,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_ACCOUNT=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAccount,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_ACCOUNT_BLANK=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAccountBlank,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_DUTY_PARAGRAPH=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierDutyParagraph,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_POSTAL_CODE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierPostalCode,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,REGISTER_CAPITAL=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerCapital,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,BUSINESS_SCOPE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.businessScope,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,ANNUAL_DATE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.annualDate,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,COMPANY_STATUS_DESC=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.companyStatusDesc,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,COMPANY_TYPE_DESC=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.companyTypeDesc,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,OPERATION_PERIOD=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.operationPeriod,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,REGISTER_DATE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerDate,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,REGISTER_ORGANIZATION=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerOrganization,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,REGISTER_APTITUDES=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerAptitudes,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CREDENTIAL_DESC=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.credentialDesc,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CONTACTS_NAME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.contactsName,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,INSERT_USERNAME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,INSERT_TIME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,UPDATE_USERNAME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,UPDATE_TIME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,INSERT_UPDATE_REMARK=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,DELETED=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_TYPE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierType,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,EAS_CARRIER_ID=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.easCarrierId,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_BUSINESS_ABLELICENSE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBusinessAblelicense,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_BUSINESS_LICENSE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBusinessLicense,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_TRANSPORT_CERTIFICATE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierTransportCertificate,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CARRIER_SSO_ID=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
- when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierSsoId,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- where CARRIER_ID in
|
|
|
- <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
- #{item.carrierId,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
+ update RMS_CARRIER
|
|
|
+ set
|
|
|
+ CARRIER_ID=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_TRANSPORT_TYPE=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierTransportType,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_NAME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_ABBREVIATION=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAbbreviation,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_ADDRESS=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAddress,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_BID_AREA_ID=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBidAreaId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_BID_TIME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBidTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_LEGAL_REPRESENTATIVE=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierLegalRepresentative,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,REGISTER_NO=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_AGENT=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAgent,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_CONTACT_NUMBER=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierContactNumber,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_FAX=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierFax,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_ACCOUNT=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAccount,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_ACCOUNT_BLANK=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAccountBlank,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_DUTY_PARAGRAPH=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierDutyParagraph,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_POSTAL_CODE=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierPostalCode,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,REGISTER_CAPITAL=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerCapital,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,BUSINESS_SCOPE=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.businessScope,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,ANNUAL_DATE=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.annualDate,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,COMPANY_STATUS_DESC=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.companyStatusDesc,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,COMPANY_TYPE_DESC=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.companyTypeDesc,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,OPERATION_PERIOD=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.operationPeriod,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,REGISTER_DATE=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerDate,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,REGISTER_ORGANIZATION=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerOrganization,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,REGISTER_APTITUDES=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerAptitudes,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CREDENTIAL_DESC=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.credentialDesc,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CONTACTS_NAME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.contactsName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,INSERT_USERNAME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,INSERT_TIME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,UPDATE_USERNAME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,UPDATE_TIME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,INSERT_UPDATE_REMARK=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,DELETED=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_TYPE=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierType,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,EAS_CARRIER_ID=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.easCarrierId,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_BUSINESS_ABLELICENSE=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBusinessAblelicense,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_BUSINESS_LICENSE=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBusinessLicense,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_TRANSPORT_CERTIFICATE=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierTransportCertificate,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_SSO_ID=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierSsoId,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_SSO_CODE=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
|
|
|
+ when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierSsoCode,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ where CARRIER_ID in
|
|
|
+ <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
+ #{item.carrierId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
</update>
|
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
|
delete from RMS_CARRIER
|
|
|
- where CARRIER_ID in
|
|
|
+ where CARRIER_ID in
|
|
|
<foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
#{id}
|
|
|
</foreach>
|
|
@@ -1107,6 +1131,7 @@
|
|
|
SELECT
|
|
|
RC.CARRIER_ID AS "carrierId",
|
|
|
RC.CARRIER_NAME AS "carrierName",
|
|
|
+ RC.CARRIER_SSO_CODE AS "carrierSsoCode",
|
|
|
RC.CARRIER_TRANSPORT_CERTIFICATE AS "carrierTransportCertificate",
|
|
|
RC.CARRIER_BUSINESS_LICENSE AS "carrierBusinessLicense",
|
|
|
RC.CARRIER_BUSINESS_ABLELICENSE AS "carrierBusinessAblelicense",
|
|
@@ -1128,13 +1153,16 @@
|
|
|
RC.CARRIER_TRANSPORT_TYPE AS "carrierTransportType",
|
|
|
RC.CONTACTS_NAME AS "contactsName",
|
|
|
RC.CARRIER_CONTACT_NUMBER AS "carrierContactNumber",
|
|
|
- CONCAT(CONCAT(CONCAT(RBA.BID_AREA_PROVINCE,RBA.BID_AREA_CITY),RBA.BID_AREA_COUNTY),RBA.BID_AREA_COUNTRY) "carrierBidArea"
|
|
|
+ CONCAT(CONCAT(CONCAT(RBA.BID_AREA_PROVINCE,RBA.BID_AREA_CITY),RBA.BID_AREA_COUNTY),RBA.BID_AREA_COUNTRY)
|
|
|
+ "carrierBidArea"
|
|
|
FROM RMS_CARRIER RC
|
|
|
left join RMS_BID_AREA RBA
|
|
|
- on RBA.BID_AREA_ID = RC.CARRIER_BID_AREA_ID
|
|
|
+ on RBA.BID_AREA_ID = RC.CARRIER_BID_AREA_ID
|
|
|
WHERE RC.DELETED != 1
|
|
|
+ <if test="con != null">
|
|
|
+ AND RC.CARRIER_NAME LIKE #{con}
|
|
|
+ </if>
|
|
|
ORDER BY RC.INSERT_TIME DESC
|
|
|
-
|
|
|
)
|
|
|
<where>
|
|
|
<if test="carrierName!= null">
|
|
@@ -1326,12 +1354,12 @@
|
|
|
select RC.CARRIER_NAME as "carrierName",
|
|
|
RC.CARRIER_ID as "carrierId"
|
|
|
from RMS_CARRIER RC
|
|
|
- left join RMS_CAPACITY RCA
|
|
|
- on RC.CARRIER_ID=RCA.CARRIER_ID
|
|
|
+ left join RMS_CAPACITY RCA
|
|
|
+ on RC.CARRIER_ID=RCA.CARRIER_ID
|
|
|
where RCA.CAPACITY_ID=#{id}
|
|
|
</select>
|
|
|
|
|
|
-<!-- 通过承运商SSO主键查询承运商ID -->
|
|
|
+ <!-- 通过承运商SSO主键查询承运商ID -->
|
|
|
<select id="getCarrierIdByCarrierSSOId" parameterType="string" resultType="java.math.BigDecimal">
|
|
|
select RC.CARRIER_ID from RMS_CARRIER RC
|
|
|
where RC.CARRIER_SSO_ID = #{carrierSSOId}
|