|
@@ -1,1268 +0,0 @@
|
|
|
-<?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.RmsCarrierMapper">
|
|
|
- <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.RmsCarrier">
|
|
|
- <id column="CARRIER_ID" jdbcType="DECIMAL" property="carrierId" />
|
|
|
- <result column="CARRIER_TRANSPORT_TYPE" jdbcType="VARCHAR" property="carrierTransportType" />
|
|
|
- <result column="CARRIER_NAME" jdbcType="VARCHAR" property="carrierName" />
|
|
|
- <result column="CARRIER_ABBREVIATION" jdbcType="VARCHAR" property="carrierAbbreviation" />
|
|
|
- <result column="CARRIER_ADDRESS" jdbcType="VARCHAR" property="carrierAddress" />
|
|
|
- <result column="CARRIER_BID_AREA_ID" jdbcType="DECIMAL" property="carrierBidAreaId" />
|
|
|
- <result column="CARRIER_BID_TIME" jdbcType="TIMESTAMP" property="carrierBidTime" />
|
|
|
- <result column="CARRIER_LEGAL_REPRESENTATIVE" jdbcType="VARCHAR" property="carrierLegalRepresentative" />
|
|
|
- <result column="REGISTER_NO" jdbcType="VARCHAR" property="registerNo" />
|
|
|
- <result column="CARRIER_AGENT" jdbcType="VARCHAR" property="carrierAgent" />
|
|
|
- <result column="CARRIER_CONTACT_NUMBER" jdbcType="VARCHAR" property="carrierContactNumber" />
|
|
|
- <result column="CARRIER_FAX" jdbcType="VARCHAR" property="carrierFax" />
|
|
|
- <result column="CARRIER_ACCOUNT" jdbcType="VARCHAR" property="carrierAccount" />
|
|
|
- <result column="CARRIER_ACCOUNT_BLANK" jdbcType="VARCHAR" property="carrierAccountBlank" />
|
|
|
- <result column="CARRIER_DUTY_PARAGRAPH" jdbcType="VARCHAR" property="carrierDutyParagraph" />
|
|
|
- <result column="CARRIER_POSTAL_CODE" jdbcType="VARCHAR" property="carrierPostalCode" />
|
|
|
- <result column="REGISTER_CAPITAL" jdbcType="VARCHAR" property="registerCapital" />
|
|
|
- <result column="BUSINESS_SCOPE" jdbcType="VARCHAR" property="businessScope" />
|
|
|
- <result column="ANNUAL_DATE" jdbcType="VARCHAR" property="annualDate" />
|
|
|
- <result column="COMPANY_STATUS_DESC" jdbcType="VARCHAR" property="companyStatusDesc" />
|
|
|
- <result column="COMPANY_TYPE_DESC" jdbcType="VARCHAR" property="companyTypeDesc" />
|
|
|
- <result column="OPERATION_PERIOD" jdbcType="VARCHAR" property="operationPeriod" />
|
|
|
- <result column="REGISTER_DATE" jdbcType="TIMESTAMP" property="registerDate" />
|
|
|
- <result column="REGISTER_ORGANIZATION" jdbcType="VARCHAR" property="registerOrganization" />
|
|
|
- <result column="REGISTER_APTITUDES" jdbcType="VARCHAR" property="registerAptitudes" />
|
|
|
- <result column="CREDENTIAL_DESC" jdbcType="VARCHAR" property="credentialDesc" />
|
|
|
- <result column="CONTACTS_NAME" jdbcType="VARCHAR" property="contactsName" />
|
|
|
- <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="CARRIER_TYPE" jdbcType="VARCHAR" property="carrierType" />
|
|
|
- <result column="CARRIER_TRANSPORT_CERTIFICATE" jdbcType="BLOB" property="carrierTransportCertificate" />
|
|
|
- <result column="CARRIER_BUSINESS_LICENSE" jdbcType="BLOB" property="carrierBusinessLicense" />
|
|
|
- <result column="CARRIER_BUSINESS_ABLELICENSE" jdbcType="BLOB" property="carrierBusinessAblelicense" />
|
|
|
- </resultMap>
|
|
|
- <sql id="columns">
|
|
|
- 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, CARRIER_TRANSPORT_CERTIFICATE,
|
|
|
- CARRIER_BUSINESS_LICENSE, CARRIER_BUSINESS_ABLELICENSE
|
|
|
- </sql>
|
|
|
- <sql id="columns_alias">
|
|
|
- t.CARRIER_ID, t.CARRIER_TRANSPORT_TYPE, t.CARRIER_NAME, t.CARRIER_ABBREVIATION, t.CARRIER_ADDRESS,
|
|
|
- t.CARRIER_BID_AREA_ID, t.CARRIER_BID_TIME, t.CARRIER_LEGAL_REPRESENTATIVE, t.REGISTER_NO,
|
|
|
- t.CARRIER_AGENT, t.CARRIER_CONTACT_NUMBER, t.CARRIER_FAX, t.CARRIER_ACCOUNT, t.CARRIER_ACCOUNT_BLANK,
|
|
|
- t.CARRIER_DUTY_PARAGRAPH, t.CARRIER_POSTAL_CODE, t.REGISTER_CAPITAL, t.BUSINESS_SCOPE,
|
|
|
- t.ANNUAL_DATE, t.COMPANY_STATUS_DESC, t.COMPANY_TYPE_DESC, t.OPERATION_PERIOD, t.REGISTER_DATE,
|
|
|
- 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.CARRIER_TRANSPORT_CERTIFICATE, t.CARRIER_BUSINESS_LICENSE,
|
|
|
- t.CARRIER_BUSINESS_ABLELICENSE
|
|
|
- </sql>
|
|
|
- <sql id="select">
|
|
|
- SELECT <include refid="columns" /> FROM RMS_CARRIER
|
|
|
- </sql>
|
|
|
- <sql id="select_alias">
|
|
|
- SELECT <include refid="columns_alias" /> FROM RMS_CARRIER t
|
|
|
- </sql>
|
|
|
- <sql id="where">
|
|
|
- <where>
|
|
|
- <if test="carrierId != null">
|
|
|
- and CARRIER_ID = #{carrierId}
|
|
|
- </if>
|
|
|
- <if test="carrierTransportType != null and carrierTransportType != ''">
|
|
|
- and CARRIER_TRANSPORT_TYPE = #{carrierTransportType}
|
|
|
- </if>
|
|
|
- <if test="carrierName != null and carrierName != ''">
|
|
|
- and CARRIER_NAME = #{carrierName}
|
|
|
- </if>
|
|
|
- <if test="carrierAbbreviation != null and carrierAbbreviation != ''">
|
|
|
- and CARRIER_ABBREVIATION = #{carrierAbbreviation}
|
|
|
- </if>
|
|
|
- <if test="carrierAddress != null and carrierAddress != ''">
|
|
|
- and CARRIER_ADDRESS = #{carrierAddress}
|
|
|
- </if>
|
|
|
- <if test="carrierBidAreaId != null">
|
|
|
- and CARRIER_BID_AREA_ID = #{carrierBidAreaId}
|
|
|
- </if>
|
|
|
- <if test="carrierBidTime != null">
|
|
|
- and TO_CHAR(CARRIER_BID_TIME,'yyyy-MM-dd') = #{carrierBidTime}
|
|
|
- </if>
|
|
|
- <if test="carrierLegalRepresentative != null and carrierLegalRepresentative != ''">
|
|
|
- and CARRIER_LEGAL_REPRESENTATIVE = #{carrierLegalRepresentative}
|
|
|
- </if>
|
|
|
- <if test="registerNo != null and registerNo != ''">
|
|
|
- and REGISTER_NO = #{registerNo}
|
|
|
- </if>
|
|
|
- <if test="carrierAgent != null and carrierAgent != ''">
|
|
|
- and CARRIER_AGENT = #{carrierAgent}
|
|
|
- </if>
|
|
|
- <if test="carrierContactNumber != null and carrierContactNumber != ''">
|
|
|
- and CARRIER_CONTACT_NUMBER = #{carrierContactNumber}
|
|
|
- </if>
|
|
|
- <if test="carrierFax != null and carrierFax != ''">
|
|
|
- and CARRIER_FAX = #{carrierFax}
|
|
|
- </if>
|
|
|
- <if test="carrierAccount != null and carrierAccount != ''">
|
|
|
- and CARRIER_ACCOUNT = #{carrierAccount}
|
|
|
- </if>
|
|
|
- <if test="carrierAccountBlank != null and carrierAccountBlank != ''">
|
|
|
- and CARRIER_ACCOUNT_BLANK = #{carrierAccountBlank}
|
|
|
- </if>
|
|
|
- <if test="carrierDutyParagraph != null and carrierDutyParagraph != ''">
|
|
|
- and CARRIER_DUTY_PARAGRAPH = #{carrierDutyParagraph}
|
|
|
- </if>
|
|
|
- <if test="carrierPostalCode != null and carrierPostalCode != ''">
|
|
|
- and CARRIER_POSTAL_CODE = #{carrierPostalCode}
|
|
|
- </if>
|
|
|
- <if test="registerCapital != null and registerCapital != ''">
|
|
|
- and REGISTER_CAPITAL = #{registerCapital}
|
|
|
- </if>
|
|
|
- <if test="businessScope != null and businessScope != ''">
|
|
|
- and BUSINESS_SCOPE = #{businessScope}
|
|
|
- </if>
|
|
|
- <if test="annualDate != null and annualDate != ''">
|
|
|
- and ANNUAL_DATE = #{annualDate}
|
|
|
- </if>
|
|
|
- <if test="companyStatusDesc != null and companyStatusDesc != ''">
|
|
|
- and COMPANY_STATUS_DESC = #{companyStatusDesc}
|
|
|
- </if>
|
|
|
- <if test="companyTypeDesc != null and companyTypeDesc != ''">
|
|
|
- and COMPANY_TYPE_DESC = #{companyTypeDesc}
|
|
|
- </if>
|
|
|
- <if test="operationPeriod != null and operationPeriod != ''">
|
|
|
- and OPERATION_PERIOD = #{operationPeriod}
|
|
|
- </if>
|
|
|
- <if test="registerDate != null">
|
|
|
- and TO_CHAR(REGISTER_DATE,'yyyy-MM-dd') = #{registerDate}
|
|
|
- </if>
|
|
|
- <if test="registerOrganization != null and registerOrganization != ''">
|
|
|
- and REGISTER_ORGANIZATION = #{registerOrganization}
|
|
|
- </if>
|
|
|
- <if test="registerAptitudes != null and registerAptitudes != ''">
|
|
|
- and REGISTER_APTITUDES = #{registerAptitudes}
|
|
|
- </if>
|
|
|
- <if test="credentialDesc != null and credentialDesc != ''">
|
|
|
- and CREDENTIAL_DESC = #{credentialDesc}
|
|
|
- </if>
|
|
|
- <if test="contactsName != null and contactsName != ''">
|
|
|
- and CONTACTS_NAME = #{contactsName}
|
|
|
- </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="carrierType != null and carrierType != ''">
|
|
|
- and CARRIER_TYPE = #{carrierType}
|
|
|
- </if>
|
|
|
- <if test="carrierTransportCertificate != null">
|
|
|
- and CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate}
|
|
|
- </if>
|
|
|
- <if test="carrierBusinessLicense != null">
|
|
|
- and CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense}
|
|
|
- </if>
|
|
|
- <if test="carrierBusinessAblelicense != null">
|
|
|
- and CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense}
|
|
|
- </if>
|
|
|
- </where>
|
|
|
- </sql>
|
|
|
- <sql id="whereLike">
|
|
|
- <where>
|
|
|
- <if test="carrierId != null">
|
|
|
- and CARRIER_ID = #{carrierId}
|
|
|
- </if>
|
|
|
- <if test="carrierTransportType != null and carrierTransportType != ''">
|
|
|
- and CARRIER_TRANSPORT_TYPE LIKE '%${carrierTransportType}%'
|
|
|
- </if>
|
|
|
- <if test="carrierName != null and carrierName != ''">
|
|
|
- and CARRIER_NAME LIKE '%${carrierName}%'
|
|
|
- </if>
|
|
|
- <if test="carrierAbbreviation != null and carrierAbbreviation != ''">
|
|
|
- and CARRIER_ABBREVIATION LIKE '%${carrierAbbreviation}%'
|
|
|
- </if>
|
|
|
- <if test="carrierAddress != null and carrierAddress != ''">
|
|
|
- and CARRIER_ADDRESS LIKE '%${carrierAddress}%'
|
|
|
- </if>
|
|
|
- <if test="carrierBidAreaId != null">
|
|
|
- and CARRIER_BID_AREA_ID = #{carrierBidAreaId}
|
|
|
- </if>
|
|
|
- <if test="carrierBidTime != null">
|
|
|
- and TO_CHAR(CARRIER_BID_TIME,'yyyy-MM-dd') = #{carrierBidTime}
|
|
|
- </if>
|
|
|
- <if test="carrierLegalRepresentative != null and carrierLegalRepresentative != ''">
|
|
|
- and CARRIER_LEGAL_REPRESENTATIVE LIKE '%${carrierLegalRepresentative}%'
|
|
|
- </if>
|
|
|
- <if test="registerNo != null and registerNo != ''">
|
|
|
- and REGISTER_NO LIKE '%${registerNo}%'
|
|
|
- </if>
|
|
|
- <if test="carrierAgent != null and carrierAgent != ''">
|
|
|
- and CARRIER_AGENT LIKE '%${carrierAgent}%'
|
|
|
- </if>
|
|
|
- <if test="carrierContactNumber != null and carrierContactNumber != ''">
|
|
|
- and CARRIER_CONTACT_NUMBER LIKE '%${carrierContactNumber}%'
|
|
|
- </if>
|
|
|
- <if test="carrierFax != null and carrierFax != ''">
|
|
|
- and CARRIER_FAX LIKE '%${carrierFax}%'
|
|
|
- </if>
|
|
|
- <if test="carrierAccount != null and carrierAccount != ''">
|
|
|
- and CARRIER_ACCOUNT LIKE '%${carrierAccount}%'
|
|
|
- </if>
|
|
|
- <if test="carrierAccountBlank != null and carrierAccountBlank != ''">
|
|
|
- and CARRIER_ACCOUNT_BLANK LIKE '%${carrierAccountBlank}%'
|
|
|
- </if>
|
|
|
- <if test="carrierDutyParagraph != null and carrierDutyParagraph != ''">
|
|
|
- and CARRIER_DUTY_PARAGRAPH LIKE '%${carrierDutyParagraph}%'
|
|
|
- </if>
|
|
|
- <if test="carrierPostalCode != null and carrierPostalCode != ''">
|
|
|
- and CARRIER_POSTAL_CODE LIKE '%${carrierPostalCode}%'
|
|
|
- </if>
|
|
|
- <if test="registerCapital != null and registerCapital != ''">
|
|
|
- and REGISTER_CAPITAL LIKE '%${registerCapital}%'
|
|
|
- </if>
|
|
|
- <if test="businessScope != null and businessScope != ''">
|
|
|
- and BUSINESS_SCOPE LIKE '%${businessScope}%'
|
|
|
- </if>
|
|
|
- <if test="annualDate != null and annualDate != ''">
|
|
|
- and ANNUAL_DATE LIKE '%${annualDate}%'
|
|
|
- </if>
|
|
|
- <if test="companyStatusDesc != null and companyStatusDesc != ''">
|
|
|
- and COMPANY_STATUS_DESC LIKE '%${companyStatusDesc}%'
|
|
|
- </if>
|
|
|
- <if test="companyTypeDesc != null and companyTypeDesc != ''">
|
|
|
- and COMPANY_TYPE_DESC LIKE '%${companyTypeDesc}%'
|
|
|
- </if>
|
|
|
- <if test="operationPeriod != null and operationPeriod != ''">
|
|
|
- and OPERATION_PERIOD LIKE '%${operationPeriod}%'
|
|
|
- </if>
|
|
|
- <if test="registerDate != null">
|
|
|
- and TO_CHAR(REGISTER_DATE,'yyyy-MM-dd') = #{registerDate}
|
|
|
- </if>
|
|
|
- <if test="registerOrganization != null and registerOrganization != ''">
|
|
|
- and REGISTER_ORGANIZATION LIKE '%${registerOrganization}%'
|
|
|
- </if>
|
|
|
- <if test="registerAptitudes != null and registerAptitudes != ''">
|
|
|
- and REGISTER_APTITUDES LIKE '%${registerAptitudes}%'
|
|
|
- </if>
|
|
|
- <if test="credentialDesc != null and credentialDesc != ''">
|
|
|
- and CREDENTIAL_DESC LIKE '%${credentialDesc}%'
|
|
|
- </if>
|
|
|
- <if test="contactsName != null and contactsName != ''">
|
|
|
- and CONTACTS_NAME LIKE '%${contactsName}%'
|
|
|
- </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="carrierType != null and carrierType != ''">
|
|
|
- and CARRIER_TYPE LIKE '%${carrierType}%'
|
|
|
- </if>
|
|
|
- <if test="carrierTransportCertificate != null">
|
|
|
- and CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate}
|
|
|
- </if>
|
|
|
- <if test="carrierBusinessLicense != null">
|
|
|
- and CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense}
|
|
|
- </if>
|
|
|
- <if test="carrierBusinessAblelicense != null">
|
|
|
- and CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense}
|
|
|
- </if>
|
|
|
- </where>
|
|
|
- </sql>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
- delete from RMS_CARRIER
|
|
|
- where CARRIER_ID = #{carrierId,jdbcType=DECIMAL}
|
|
|
- </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="carrierTransportCertificate != null">
|
|
|
- or CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate}
|
|
|
- </if>
|
|
|
- <if test="carrierBusinessLicense != null">
|
|
|
- or CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense}
|
|
|
- </if>
|
|
|
- <if test="carrierBusinessAblelicense != null">
|
|
|
- or CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense}
|
|
|
- </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,
|
|
|
- CARRIER_TRANSPORT_CERTIFICATE, CARRIER_BUSINESS_LICENSE,
|
|
|
- CARRIER_BUSINESS_ABLELICENSE)
|
|
|
- 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},
|
|
|
- #{carrierTransportCertificate,jdbcType=BLOB}, #{carrierBusinessLicense,jdbcType=BLOB},
|
|
|
- #{carrierBusinessAblelicense,jdbcType=BLOB})
|
|
|
- </insert>
|
|
|
- <insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsCarrier">
|
|
|
- insert into RMS_CARRIER
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="carrierId != null">
|
|
|
- CARRIER_ID,
|
|
|
- </if>
|
|
|
- <if test="carrierTransportType != null">
|
|
|
- CARRIER_TRANSPORT_TYPE,
|
|
|
- </if>
|
|
|
- <if test="carrierName != null">
|
|
|
- CARRIER_NAME,
|
|
|
- </if>
|
|
|
- <if test="carrierAbbreviation != null">
|
|
|
- CARRIER_ABBREVIATION,
|
|
|
- </if>
|
|
|
- <if test="carrierAddress != null">
|
|
|
- CARRIER_ADDRESS,
|
|
|
- </if>
|
|
|
- <if test="carrierBidAreaId != null">
|
|
|
- CARRIER_BID_AREA_ID,
|
|
|
- </if>
|
|
|
- <if test="carrierBidTime != null">
|
|
|
- CARRIER_BID_TIME,
|
|
|
- </if>
|
|
|
- <if test="carrierLegalRepresentative != null">
|
|
|
- CARRIER_LEGAL_REPRESENTATIVE,
|
|
|
- </if>
|
|
|
- <if test="registerNo != null">
|
|
|
- REGISTER_NO,
|
|
|
- </if>
|
|
|
- <if test="carrierAgent != null">
|
|
|
- CARRIER_AGENT,
|
|
|
- </if>
|
|
|
- <if test="carrierContactNumber != null">
|
|
|
- CARRIER_CONTACT_NUMBER,
|
|
|
- </if>
|
|
|
- <if test="carrierFax != null">
|
|
|
- CARRIER_FAX,
|
|
|
- </if>
|
|
|
- <if test="carrierAccount != null">
|
|
|
- CARRIER_ACCOUNT,
|
|
|
- </if>
|
|
|
- <if test="carrierAccountBlank != null">
|
|
|
- CARRIER_ACCOUNT_BLANK,
|
|
|
- </if>
|
|
|
- <if test="carrierDutyParagraph != null">
|
|
|
- CARRIER_DUTY_PARAGRAPH,
|
|
|
- </if>
|
|
|
- <if test="carrierPostalCode != null">
|
|
|
- CARRIER_POSTAL_CODE,
|
|
|
- </if>
|
|
|
- <if test="registerCapital != null">
|
|
|
- REGISTER_CAPITAL,
|
|
|
- </if>
|
|
|
- <if test="businessScope != null">
|
|
|
- BUSINESS_SCOPE,
|
|
|
- </if>
|
|
|
- <if test="annualDate != null">
|
|
|
- ANNUAL_DATE,
|
|
|
- </if>
|
|
|
- <if test="companyStatusDesc != null">
|
|
|
- COMPANY_STATUS_DESC,
|
|
|
- </if>
|
|
|
- <if test="companyTypeDesc != null">
|
|
|
- COMPANY_TYPE_DESC,
|
|
|
- </if>
|
|
|
- <if test="operationPeriod != null">
|
|
|
- OPERATION_PERIOD,
|
|
|
- </if>
|
|
|
- <if test="registerDate != null">
|
|
|
- REGISTER_DATE,
|
|
|
- </if>
|
|
|
- <if test="registerOrganization != null">
|
|
|
- REGISTER_ORGANIZATION,
|
|
|
- </if>
|
|
|
- <if test="registerAptitudes != null">
|
|
|
- REGISTER_APTITUDES,
|
|
|
- </if>
|
|
|
- <if test="credentialDesc != null">
|
|
|
- CREDENTIAL_DESC,
|
|
|
- </if>
|
|
|
- <if test="contactsName != null">
|
|
|
- CONTACTS_NAME,
|
|
|
- </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="carrierType != null">
|
|
|
- CARRIER_TYPE,
|
|
|
- </if>
|
|
|
- <if test="carrierTransportCertificate != null">
|
|
|
- CARRIER_TRANSPORT_CERTIFICATE,
|
|
|
- </if>
|
|
|
- <if test="carrierBusinessLicense != null">
|
|
|
- CARRIER_BUSINESS_LICENSE,
|
|
|
- </if>
|
|
|
- <if test="carrierBusinessAblelicense != null">
|
|
|
- CARRIER_BUSINESS_ABLELICENSE,
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="carrierId != null">
|
|
|
- #{carrierId,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="carrierTransportType != null">
|
|
|
- #{carrierTransportType,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierName != null">
|
|
|
- #{carrierName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierAbbreviation != null">
|
|
|
- #{carrierAbbreviation,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierAddress != null">
|
|
|
- #{carrierAddress,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierBidAreaId != null">
|
|
|
- #{carrierBidAreaId,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="carrierBidTime != null">
|
|
|
- #{carrierBidTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="carrierLegalRepresentative != null">
|
|
|
- #{carrierLegalRepresentative,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="registerNo != null">
|
|
|
- #{registerNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierAgent != null">
|
|
|
- #{carrierAgent,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierContactNumber != null">
|
|
|
- #{carrierContactNumber,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierFax != null">
|
|
|
- #{carrierFax,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierAccount != null">
|
|
|
- #{carrierAccount,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierAccountBlank != null">
|
|
|
- #{carrierAccountBlank,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierDutyParagraph != null">
|
|
|
- #{carrierDutyParagraph,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierPostalCode != null">
|
|
|
- #{carrierPostalCode,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="registerCapital != null">
|
|
|
- #{registerCapital,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="businessScope != null">
|
|
|
- #{businessScope,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="annualDate != null">
|
|
|
- #{annualDate,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="companyStatusDesc != null">
|
|
|
- #{companyStatusDesc,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="companyTypeDesc != null">
|
|
|
- #{companyTypeDesc,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="operationPeriod != null">
|
|
|
- #{operationPeriod,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="registerDate != null">
|
|
|
- #{registerDate,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="registerOrganization != null">
|
|
|
- #{registerOrganization,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="registerAptitudes != null">
|
|
|
- #{registerAptitudes,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="credentialDesc != null">
|
|
|
- #{credentialDesc,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="contactsName != null">
|
|
|
- #{contactsName,jdbcType=VARCHAR},
|
|
|
- </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="carrierType != null">
|
|
|
- #{carrierType,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierTransportCertificate != null">
|
|
|
- #{carrierTransportCertificate,jdbcType=BLOB},
|
|
|
- </if>
|
|
|
- <if test="carrierBusinessLicense != null">
|
|
|
- #{carrierBusinessLicense,jdbcType=BLOB},
|
|
|
- </if>
|
|
|
- <if test="carrierBusinessAblelicense != null">
|
|
|
- #{carrierBusinessAblelicense,jdbcType=BLOB},
|
|
|
- </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},
|
|
|
- CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate,jdbcType=BLOB},
|
|
|
- CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense,jdbcType=BLOB},
|
|
|
- CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense,jdbcType=BLOB}
|
|
|
- where CARRIER_ID = #{carrierId,jdbcType=DECIMAL}
|
|
|
- </update>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsCarrier">
|
|
|
- update RMS_CARRIER
|
|
|
- <set>
|
|
|
- <if test="carrierTransportType != null">
|
|
|
- CARRIER_TRANSPORT_TYPE = #{carrierTransportType,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierName != null">
|
|
|
- CARRIER_NAME = #{carrierName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierAbbreviation != null">
|
|
|
- CARRIER_ABBREVIATION = #{carrierAbbreviation,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierAddress != null">
|
|
|
- CARRIER_ADDRESS = #{carrierAddress,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierBidAreaId != null">
|
|
|
- CARRIER_BID_AREA_ID = #{carrierBidAreaId,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="carrierBidTime != null">
|
|
|
- CARRIER_BID_TIME = #{carrierBidTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="carrierLegalRepresentative != null">
|
|
|
- CARRIER_LEGAL_REPRESENTATIVE = #{carrierLegalRepresentative,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="registerNo != null">
|
|
|
- REGISTER_NO = #{registerNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierAgent != null">
|
|
|
- CARRIER_AGENT = #{carrierAgent,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierContactNumber != null">
|
|
|
- CARRIER_CONTACT_NUMBER = #{carrierContactNumber,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierFax != null">
|
|
|
- CARRIER_FAX = #{carrierFax,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierAccount != null">
|
|
|
- CARRIER_ACCOUNT = #{carrierAccount,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierAccountBlank != null">
|
|
|
- CARRIER_ACCOUNT_BLANK = #{carrierAccountBlank,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierDutyParagraph != null">
|
|
|
- CARRIER_DUTY_PARAGRAPH = #{carrierDutyParagraph,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierPostalCode != null">
|
|
|
- CARRIER_POSTAL_CODE = #{carrierPostalCode,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="registerCapital != null">
|
|
|
- REGISTER_CAPITAL = #{registerCapital,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="businessScope != null">
|
|
|
- BUSINESS_SCOPE = #{businessScope,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="annualDate != null">
|
|
|
- ANNUAL_DATE = #{annualDate,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="companyStatusDesc != null">
|
|
|
- COMPANY_STATUS_DESC = #{companyStatusDesc,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="companyTypeDesc != null">
|
|
|
- COMPANY_TYPE_DESC = #{companyTypeDesc,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="operationPeriod != null">
|
|
|
- OPERATION_PERIOD = #{operationPeriod,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="registerDate != null">
|
|
|
- REGISTER_DATE = #{registerDate,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="registerOrganization != null">
|
|
|
- REGISTER_ORGANIZATION = #{registerOrganization,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="registerAptitudes != null">
|
|
|
- REGISTER_APTITUDES = #{registerAptitudes,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="credentialDesc != null">
|
|
|
- CREDENTIAL_DESC = #{credentialDesc,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="contactsName != null">
|
|
|
- CONTACTS_NAME = #{contactsName,jdbcType=VARCHAR},
|
|
|
- </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="carrierType != null">
|
|
|
- CARRIER_TYPE = #{carrierType,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carrierTransportCertificate != null">
|
|
|
- CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate,jdbcType=BLOB},
|
|
|
- </if>
|
|
|
- <if test="carrierBusinessLicense != null">
|
|
|
- CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense,jdbcType=BLOB},
|
|
|
- </if>
|
|
|
- <if test="carrierBusinessAblelicense != null">
|
|
|
- CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense,jdbcType=BLOB},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- where CARRIER_ID = #{carrierId,jdbcType=DECIMAL}
|
|
|
- </update>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
- <include refid="select" />
|
|
|
- where CARRIER_ID = #{carrierId,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_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, CARRIER_TRANSPORT_CERTIFICATE,
|
|
|
- CARRIER_BUSINESS_LICENSE, CARRIER_BUSINESS_ABLELICENSE
|
|
|
- )
|
|
|
- ( <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.carrierTransportCertificate,jdbcType=BLOB},
|
|
|
- #{item.carrierBusinessLicense,jdbcType=BLOB}, #{item.carrierBusinessAblelicense,jdbcType=BLOB}
|
|
|
- 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>
|
|
|
- ,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=BLOB}
|
|
|
- </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=BLOB}
|
|
|
- </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=BLOB}
|
|
|
- </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
|
|
|
- <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
- #{id}
|
|
|
- </foreach>
|
|
|
- </delete>
|
|
|
- <!-- 友情提示!!!-->
|
|
|
- <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
- <!-- 下拉获取承运商信息-->
|
|
|
- <select id="getCarrierList" parameterType="java.util.Map" resultType="java.util.Map">
|
|
|
- SELECT * FROM
|
|
|
- (
|
|
|
- SELECT
|
|
|
- RC.CARRIER_ID AS "carrierId",
|
|
|
- RC.CARRIER_NAME AS "carrierName",
|
|
|
- RC.CARRIER_TRANSPORT_CERTIFICATE AS "carrierTransportCertificate",
|
|
|
- RC.CARRIER_BUSINESS_LICENSE AS "carrierBusinessLicense",
|
|
|
- RC.CARRIER_BUSINESS_ABLELICENSE AS "carrierBusinessAblelicense",
|
|
|
- RC.CARRIER_ABBREVIATION AS "carrierAbbreviation",
|
|
|
- RC.CARRIER_ADDRESS AS "carrierAddress",
|
|
|
- RC.REGISTER_NO AS "registerNo",
|
|
|
- RC.CARRIER_BID_AREA_ID AS "carrierBidAreaId",
|
|
|
- RC.CARRIER_LEGAL_REPRESENTATIVE AS "carrierLegalRepresentative",
|
|
|
- RC.REGISTER_CAPITAL AS "registerCapital",
|
|
|
- RC.BUSINESS_SCOPE AS "businessScope",
|
|
|
- RC.ANNUAL_DATE AS "annualDate",
|
|
|
- RC.CARRIER_TYPE AS "carrierType",
|
|
|
- RC.COMPANY_STATUS_DESC AS "companyStatusDesc",
|
|
|
- RC.COMPANY_TYPE_DESC AS "companyTypeDesc",
|
|
|
- RC.OPERATION_PERIOD AS "operationPeriod",
|
|
|
- RC.REGISTER_DATE AS "registerDate",
|
|
|
- RC.REGISTER_ORGANIZATION AS "registerOrganization",
|
|
|
- RC.REGISTER_APTITUDES AS "registerAptitudes",
|
|
|
- RC.CARRIER_TRANSPORT_TYPE AS "carrierTransportType",
|
|
|
- RC.CONTACTS_NAME AS "contactsName",
|
|
|
- RC.CARRIER_CONTACT_NUMBER AS "carrierContactNumber"
|
|
|
- FROM RMS_CARRIER RC
|
|
|
- WHERE RC.DELETED != 1
|
|
|
- ORDER BY RC.INSERT_TIME DESC
|
|
|
- )
|
|
|
- <where>
|
|
|
- <if test="carrierName!= null">
|
|
|
- and
|
|
|
- <foreach collection="carrierName" item="item" open="(" separator="," close=")">
|
|
|
- "carrierName" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="carrierTransportCertificate!= null">
|
|
|
- and
|
|
|
- <foreach collection="carrierTransportCertificate" item="item" open="(" separator="," close=")">
|
|
|
- "carrierTransportCertificate" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="carrierBusinessLicense!= null">
|
|
|
- and
|
|
|
- <foreach collection="carrierBusinessLicense" item="item" open="(" separator="," close=")">
|
|
|
- "carrierBusinessLicense" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="carrierBusinessAblelicense= null">
|
|
|
- and
|
|
|
- <foreach collection="carrierBusinessAblelicense" item="item" open="(" separator="," close=")">
|
|
|
- "carrierBusinessAblelicense" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="carrierAbbreviation!= null">
|
|
|
- and
|
|
|
- <foreach collection="carrierAbbreviation" item="item" open="(" separator="," close=")">
|
|
|
- "carrierAbbreviation" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="carrierAddress!= null">
|
|
|
- and
|
|
|
- <foreach collection="carrierAddress" item="item" open="(" separator="," close=")">
|
|
|
- "carrierAddress" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="registerNo!= null">
|
|
|
- and
|
|
|
- <foreach collection="registerNo" item="item" open="(" separator="," close=")">
|
|
|
- "registerNo" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="carrierBidAreaId!= null">
|
|
|
- and
|
|
|
- <foreach collection="carrierBidAreaId" item="item" open="(" separator="," close=")">
|
|
|
- "carrierBidAreaId" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="carrierLegalRepresentative!= null">
|
|
|
- and
|
|
|
- <foreach collection="carrierLegalRepresentative" item="item" open="(" separator="," close=")">
|
|
|
- "carrierLegalRepersentative" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="registerCapital!= null">
|
|
|
- and
|
|
|
- <foreach collection="registerCapital" item="item" open="(" separator="," close=")">
|
|
|
- "registerCapital" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="businessScope!= null">
|
|
|
- and
|
|
|
- <foreach collection="businessScope" item="item" open="(" separator="," close=")">
|
|
|
- "businessScope" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="annualDate!= null">
|
|
|
- and
|
|
|
- <foreach collection="annualDate" item="item" open="(" separator="," close=")">
|
|
|
- "ennualDate" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="companyStatusDesc!= null">
|
|
|
- and
|
|
|
- <foreach collection="companyStatusDesc" item="item" open="(" separator="," close=")">
|
|
|
- "companyStatusDesc" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="carrierType!= null">
|
|
|
- and
|
|
|
- <foreach collection="carrierType" item="item" open="(" separator="," close=")">
|
|
|
- "carrierType" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="companyTypeDesc!= null">
|
|
|
- and
|
|
|
- <foreach collection="companyTypeDesc" item="item" open="(" separator="," close=")">
|
|
|
- "companyTypeDesc" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="operationPeriod!= null">
|
|
|
- and
|
|
|
- <foreach collection="operationPeriod" item="item" open="(" separator="," close=")">
|
|
|
- "operationPeriod" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="registerDate!= null">
|
|
|
- and
|
|
|
- <foreach collection="registerDate" item="item" open="(" separator="," close=")">
|
|
|
- "registerDate" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="registerOrganization!= null">
|
|
|
- and
|
|
|
- <foreach collection="registerOrganization" item="item" open="(" separator="," close=")">
|
|
|
- "registerOrganization" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="registerAptitudes!= null">
|
|
|
- and
|
|
|
- <foreach collection="registerAptitudes" item="item" open="(" separator="," close=")">
|
|
|
- "registerAptitudes" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="carrierTransportType!= null">
|
|
|
- and
|
|
|
- <foreach collection="carrierTransportType" item="item" open="(" separator="," close=")">
|
|
|
- "carrierTransportType" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="contactsName!= null">
|
|
|
- and
|
|
|
- <foreach collection="contactsName" item="item" open="(" separator="," close=")">
|
|
|
- "contactsName" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="carrierContactNumber!= null">
|
|
|
- and
|
|
|
- <foreach collection="carrierContactNumber" item="item" open="(" separator="," close=")">
|
|
|
- "carrierContactNumber" in #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- </where>
|
|
|
- <include refid="orderBy"></include>
|
|
|
- </select>
|
|
|
- <sql id="orderBy">
|
|
|
- <if test="orderField!=null and orderField !=''">
|
|
|
- order by "${orderField}"
|
|
|
- <if test="orderType !=null and orderType !=''">
|
|
|
- ${orderType}
|
|
|
- </if>
|
|
|
- </if>
|
|
|
- </sql>
|
|
|
- <!-- 根据id值获取承运商信息-->
|
|
|
- <select id="selectCarrierById" resultType="java.util.LinkedHashMap">
|
|
|
- select
|
|
|
- RC.CARRIER_ID as "carrierId",
|
|
|
- RC.CARRIER_NAME as "carrierName",
|
|
|
- RC.CARRIER_TRANSPORT_CERTIFICATE as "carrierTransportCertificate",
|
|
|
- RC.CARRIER_BUSINESS_LICENSE as "carrierBusinessLicense",
|
|
|
- RC.CARRIER_BUSINESS_ABLELICENSE as "carrierBusinessAblelicense",
|
|
|
- RC.CARRIER_ABBREVIATION as "carrierAbbreviation",
|
|
|
- RC.CARRIER_ADDRESS as "carrierAddress",
|
|
|
- RC.REGISTER_NO as "registerNo",
|
|
|
- RC.CARRIER_BID_AREA_ID as "carrierBidAreaId",
|
|
|
- RC.CARRIER_LEGAL_REPRESENTATIVE as "carrierLegalRepresentative",
|
|
|
- RC.REGISTER_CAPITAL as "registerCapital",
|
|
|
- RC.BUSINESS_SCOPE as "businessScope",
|
|
|
- RC.ANNUAL_DATE as "annualDate",
|
|
|
- RC.CARRIER_TYPE as "carrierType",
|
|
|
- RC.COMPANY_STATUS_DESC as "companyStatusDesc",
|
|
|
- RC.COMPANY_TYPE_DESC as "companyTypeDesc",
|
|
|
- RC.OPERATION_PERIOD as "operationPeriod",
|
|
|
- RC.REGISTER_DATE as "registerDate",
|
|
|
- RC.REGISTER_ORGANIZATION as "registerOrganization",
|
|
|
- RC.REGISTER_APTITUDES as "registerAptitudes",
|
|
|
- RC.CARRIER_TRANSPORT_TYPE as "carrierTransportType",
|
|
|
- RC.CONTACTS_NAME as "contactsName",
|
|
|
- RC.CARRIER_CONTACT_NUMBER as "carrierContactNumber"
|
|
|
- from RMS_CARRIER RC
|
|
|
- where RC.CARRIER_ID=#{id}
|
|
|
- </select>
|
|
|
-
|
|
|
-<!-- 通过传入的值判断当前表是否存在相同的数量-->
|
|
|
- <select id="selectParameterCarrierName" resultType="java.lang.Integer">
|
|
|
- SELECT COUNT(*)
|
|
|
- FROM RMS_CARRIER RC
|
|
|
- WHERE RC.CARRIER_NAME = #{carrierName}
|
|
|
- AND RC.DELETED =0
|
|
|
- </select>
|
|
|
-<!-- 获取表中的最大id-->
|
|
|
- <select id="getMaxCarrierId" resultType="java.math.BigDecimal">
|
|
|
- SELECT MAX(RC.CARRIER_ID)
|
|
|
- FROM RMS_CARRIER RC
|
|
|
- </select>
|
|
|
-</mapper>
|