123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302 |
- <?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="EAS_CARRIER_ID" jdbcType="VARCHAR" property="easCarrierId" />
- <result column="CARRIER_BUSINESS_ABLELICENSE" jdbcType="VARCHAR" property="carrierBusinessAblelicense" />
- <result column="CARRIER_BUSINESS_LICENSE" jdbcType="VARCHAR" property="carrierBusinessLicense" />
- <result column="CARRIER_TRANSPORT_CERTIFICATE" jdbcType="VARCHAR" property="carrierTransportCertificate" />
- </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, EAS_CARRIER_ID,
- CARRIER_BUSINESS_ABLELICENSE, CARRIER_BUSINESS_LICENSE, CARRIER_TRANSPORT_CERTIFICATE
- </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.EAS_CARRIER_ID, t.CARRIER_BUSINESS_ABLELICENSE, t.CARRIER_BUSINESS_LICENSE,
- t.CARRIER_TRANSPORT_CERTIFICATE
- </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="easCarrierId != null and easCarrierId != ''">
- and EAS_CARRIER_ID = #{easCarrierId}
- </if>
- <if test="carrierBusinessAblelicense != null and carrierBusinessAblelicense != ''">
- and CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense}
- </if>
- <if test="carrierBusinessLicense != null and carrierBusinessLicense != ''">
- and CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense}
- </if>
- <if test="carrierTransportCertificate != null and carrierTransportCertificate != ''">
- and CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate}
- </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="easCarrierId != null and easCarrierId != ''">
- and EAS_CARRIER_ID LIKE '%${easCarrierId}%'
- </if>
- <if test="carrierBusinessAblelicense != null and carrierBusinessAblelicense != ''">
- and CARRIER_BUSINESS_ABLELICENSE LIKE '%${carrierBusinessAblelicense}%'
- </if>
- <if test="carrierBusinessLicense != null and carrierBusinessLicense != ''">
- and CARRIER_BUSINESS_LICENSE LIKE '%${carrierBusinessLicense}%'
- </if>
- <if test="carrierTransportCertificate != null and carrierTransportCertificate != ''">
- and CARRIER_TRANSPORT_CERTIFICATE LIKE '%${carrierTransportCertificate}%'
- </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="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>
- </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
- )
- 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}
- )
- </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="easCarrierId != null">
- EAS_CARRIER_ID,
- </if>
- <if test="carrierBusinessAblelicense != null">
- CARRIER_BUSINESS_ABLELICENSE,
- </if>
- <if test="carrierBusinessLicense != null">
- CARRIER_BUSINESS_LICENSE,
- </if>
- <if test="carrierTransportCertificate != null">
- CARRIER_TRANSPORT_CERTIFICATE,
- </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="easCarrierId != null">
- #{easCarrierId,jdbcType=VARCHAR},
- </if>
- <if test="carrierBusinessAblelicense != null">
- #{carrierBusinessAblelicense,jdbcType=VARCHAR},
- </if>
- <if test="carrierBusinessLicense != null">
- #{carrierBusinessLicense,jdbcType=VARCHAR},
- </if>
- <if test="carrierTransportCertificate != null">
- #{carrierTransportCertificate,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}
- 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="easCarrierId != null">
- EAS_CARRIER_ID = #{easCarrierId,jdbcType=VARCHAR},
- </if>
- <if test="carrierBusinessAblelicense != null">
- CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense,jdbcType=VARCHAR},
- </if>
- <if test="carrierBusinessLicense != null">
- CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense,jdbcType=VARCHAR},
- </if>
- <if test="carrierTransportCertificate != null">
- CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate,jdbcType=VARCHAR},
- </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, EAS_CARRIER_ID,
- CARRIER_BUSINESS_ABLELICENSE, CARRIER_BUSINESS_LICENSE,
- CARRIER_TRANSPORT_CERTIFICATE)
- ( <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} 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>
- 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>
- <select id="getCarrierNameById" resultType="java.util.Map" parameterType="java.math.BigDecimal">
- 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
- where RCA.CAPACITY_ID=#{id}
- </select>
- </mapper>
|