12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295 |
- <?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>
-
- </mapper>
|