12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103 |
- <?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.RmsShipperMapper">
- <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.RmsShipper">
- <id column="SHIPPER_ID" jdbcType="DECIMAL" property="shipperId" />
- <result column="SHIPPER_NAME" jdbcType="VARCHAR" property="shipperName" />
- <result column="SHIPPER_ABBREVIATION" jdbcType="VARCHAR" property="shipperAbbreviation" />
- <result column="SHIPPER_COMPANY_BRANCH" jdbcType="VARCHAR" property="shipperCompanyBranch" />
- <result column="SHIPPER_BRANCH_FACTORY" jdbcType="VARCHAR" property="shipperBranchFactory" />
- <result column="SHIPPER_FACTORY_AREA" jdbcType="VARCHAR" property="shipperFactoryArea" />
- <result column="SHIPPER_PARTITION_CODE" jdbcType="VARCHAR" property="shipperPartitionCode" />
- <result column="SHIPPER_ADDRESS" jdbcType="VARCHAR" property="shipperAddress" />
- <result column="SHIPPER_LEGAL_REPRESENTATIVE" jdbcType="VARCHAR" property="shipperLegalRepresentative" />
- <result column="SHIPPER_AGENT" jdbcType="VARCHAR" property="shipperAgent" />
- <result column="SHIPPER_CONTACT_NUMBER" jdbcType="VARCHAR" property="shipperContactNumber" />
- <result column="SHIPPER_FAX" jdbcType="VARCHAR" property="shipperFax" />
- <result column="SHIPPER_ACCOUNT" jdbcType="VARCHAR" property="shipperAccount" />
- <result column="SHIPPER_ACCOUNT_BLANK" jdbcType="VARCHAR" property="shipperAccountBlank" />
- <result column="SHIPPER_REGISTER_NO" jdbcType="VARCHAR" property="shipperRegisterNo" />
- <result column="SHIPPER_DUTY_PARAGRAPH" jdbcType="VARCHAR" property="shipperDutyParagraph" />
- <result column="SHIPPER_POSTAL_CODE" jdbcType="VARCHAR" property="shipperPostalCode" />
- <result column="SHIPPER_CONTACTS_NAME" jdbcType="VARCHAR" property="shipperContactsName" />
- <result column="SHIPPER_REGISTER_CAPITAL" jdbcType="DECIMAL" property="shipperRegisterCapital" />
- <result column="SHIPPER_BUSINESS_SCOPE" jdbcType="VARCHAR" property="shipperBusinessScope" />
- <result column="SHIPPER_ANNUAL_DATE" jdbcType="VARCHAR" property="shipperAnnualDate" />
- <result column="SHIPPER_COMPANY_STATUS_DESC" jdbcType="VARCHAR" property="shipperCompanyStatusDesc" />
- <result column="SHIPPER_OPERATION_PERIOD" jdbcType="VARCHAR" property="shipperOperationPeriod" />
- <result column="SHIPPER_REGISTER_DATE" jdbcType="TIMESTAMP" property="shipperRegisterDate" />
- <result column="SHIPPER_REGISTER_ORGANIZATION" jdbcType="VARCHAR" property="shipperRegisterOrganization" />
- <result column="SHIPPER_REGISTER_APTITUDES" jdbcType="VARCHAR" property="shipperRegisterAptitudes" />
- <result column="SHIPPER_CREDENTIAL_DESC" jdbcType="VARCHAR" property="shipperCredentialDesc" />
- <result column="MEMO" jdbcType="VARCHAR" property="memo" />
- <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="SHIPPER_APPID" jdbcType="VARCHAR" property="shipperAppid" />
- <result column="SHIPPER_SECRETKEY" jdbcType="VARCHAR" property="shipperSecretkey" />
- <result column="DELETED" jdbcType="DECIMAL" property="deleted" />
- </resultMap>
- <sql id="columns">
- SHIPPER_ID, SHIPPER_NAME, SHIPPER_ABBREVIATION, SHIPPER_COMPANY_BRANCH, SHIPPER_BRANCH_FACTORY,
- SHIPPER_FACTORY_AREA, SHIPPER_PARTITION_CODE, SHIPPER_ADDRESS, SHIPPER_LEGAL_REPRESENTATIVE,
- SHIPPER_AGENT, SHIPPER_CONTACT_NUMBER, SHIPPER_FAX, SHIPPER_ACCOUNT, SHIPPER_ACCOUNT_BLANK,
- SHIPPER_REGISTER_NO, SHIPPER_DUTY_PARAGRAPH, SHIPPER_POSTAL_CODE, SHIPPER_CONTACTS_NAME,
- SHIPPER_REGISTER_CAPITAL, SHIPPER_BUSINESS_SCOPE, SHIPPER_ANNUAL_DATE, SHIPPER_COMPANY_STATUS_DESC,
- SHIPPER_OPERATION_PERIOD, SHIPPER_REGISTER_DATE, SHIPPER_REGISTER_ORGANIZATION, SHIPPER_REGISTER_APTITUDES,
- SHIPPER_CREDENTIAL_DESC, MEMO, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
- INSERT_UPDATE_REMARK, SHIPPER_APPID, SHIPPER_SECRETKEY, DELETED
- </sql>
- <sql id="columns_alias">
- t.SHIPPER_ID, t.SHIPPER_NAME, t.SHIPPER_ABBREVIATION, t.SHIPPER_COMPANY_BRANCH, t.SHIPPER_BRANCH_FACTORY,
- t.SHIPPER_FACTORY_AREA, t.SHIPPER_PARTITION_CODE, t.SHIPPER_ADDRESS, t.SHIPPER_LEGAL_REPRESENTATIVE,
- t.SHIPPER_AGENT, t.SHIPPER_CONTACT_NUMBER, t.SHIPPER_FAX, t.SHIPPER_ACCOUNT, t.SHIPPER_ACCOUNT_BLANK,
- t.SHIPPER_REGISTER_NO, t.SHIPPER_DUTY_PARAGRAPH, t.SHIPPER_POSTAL_CODE, t.SHIPPER_CONTACTS_NAME,
- t.SHIPPER_REGISTER_CAPITAL, t.SHIPPER_BUSINESS_SCOPE, t.SHIPPER_ANNUAL_DATE, t.SHIPPER_COMPANY_STATUS_DESC,
- t.SHIPPER_OPERATION_PERIOD, t.SHIPPER_REGISTER_DATE, t.SHIPPER_REGISTER_ORGANIZATION,
- t.SHIPPER_REGISTER_APTITUDES, t.SHIPPER_CREDENTIAL_DESC, t.MEMO, t.INSERT_USERNAME,
- t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.SHIPPER_APPID,
- t.SHIPPER_SECRETKEY, t.DELETED
- </sql>
- <sql id="select">
- SELECT <include refid="columns" /> FROM RMS_SHIPPER
- </sql>
- <sql id="select_alias">
- SELECT <include refid="columns_alias" /> FROM RMS_SHIPPER t
- </sql>
- <sql id="where">
- <where>
- <if test="shipperId != null">
- and SHIPPER_ID = #{shipperId}
- </if>
- <if test="shipperName != null and shipperName != ''">
- and SHIPPER_NAME = #{shipperName}
- </if>
- <if test="shipperAbbreviation != null and shipperAbbreviation != ''">
- and SHIPPER_ABBREVIATION = #{shipperAbbreviation}
- </if>
- <if test="shipperCompanyBranch != null and shipperCompanyBranch != ''">
- and SHIPPER_COMPANY_BRANCH = #{shipperCompanyBranch}
- </if>
- <if test="shipperBranchFactory != null and shipperBranchFactory != ''">
- and SHIPPER_BRANCH_FACTORY = #{shipperBranchFactory}
- </if>
- <if test="shipperFactoryArea != null and shipperFactoryArea != ''">
- and SHIPPER_FACTORY_AREA = #{shipperFactoryArea}
- </if>
- <if test="shipperPartitionCode != null and shipperPartitionCode != ''">
- and SHIPPER_PARTITION_CODE = #{shipperPartitionCode}
- </if>
- <if test="shipperAddress != null and shipperAddress != ''">
- and SHIPPER_ADDRESS = #{shipperAddress}
- </if>
- <if test="shipperLegalRepresentative != null and shipperLegalRepresentative != ''">
- and SHIPPER_LEGAL_REPRESENTATIVE = #{shipperLegalRepresentative}
- </if>
- <if test="shipperAgent != null and shipperAgent != ''">
- and SHIPPER_AGENT = #{shipperAgent}
- </if>
- <if test="shipperContactNumber != null and shipperContactNumber != ''">
- and SHIPPER_CONTACT_NUMBER = #{shipperContactNumber}
- </if>
- <if test="shipperFax != null and shipperFax != ''">
- and SHIPPER_FAX = #{shipperFax}
- </if>
- <if test="shipperAccount != null and shipperAccount != ''">
- and SHIPPER_ACCOUNT = #{shipperAccount}
- </if>
- <if test="shipperAccountBlank != null and shipperAccountBlank != ''">
- and SHIPPER_ACCOUNT_BLANK = #{shipperAccountBlank}
- </if>
- <if test="shipperRegisterNo != null and shipperRegisterNo != ''">
- and SHIPPER_REGISTER_NO = #{shipperRegisterNo}
- </if>
- <if test="shipperDutyParagraph != null and shipperDutyParagraph != ''">
- and SHIPPER_DUTY_PARAGRAPH = #{shipperDutyParagraph}
- </if>
- <if test="shipperPostalCode != null and shipperPostalCode != ''">
- and SHIPPER_POSTAL_CODE = #{shipperPostalCode}
- </if>
- <if test="shipperContactsName != null and shipperContactsName != ''">
- and SHIPPER_CONTACTS_NAME = #{shipperContactsName}
- </if>
- <if test="shipperRegisterCapital != null">
- and SHIPPER_REGISTER_CAPITAL = #{shipperRegisterCapital}
- </if>
- <if test="shipperBusinessScope != null and shipperBusinessScope != ''">
- and SHIPPER_BUSINESS_SCOPE = #{shipperBusinessScope}
- </if>
- <if test="shipperAnnualDate != null and shipperAnnualDate != ''">
- and SHIPPER_ANNUAL_DATE = #{shipperAnnualDate}
- </if>
- <if test="shipperCompanyStatusDesc != null and shipperCompanyStatusDesc != ''">
- and SHIPPER_COMPANY_STATUS_DESC = #{shipperCompanyStatusDesc}
- </if>
- <if test="shipperOperationPeriod != null and shipperOperationPeriod != ''">
- and SHIPPER_OPERATION_PERIOD = #{shipperOperationPeriod}
- </if>
- <if test="shipperRegisterDate != null">
- and TO_CHAR(SHIPPER_REGISTER_DATE,'yyyy-MM-dd') = #{shipperRegisterDate}
- </if>
- <if test="shipperRegisterOrganization != null and shipperRegisterOrganization != ''">
- and SHIPPER_REGISTER_ORGANIZATION = #{shipperRegisterOrganization}
- </if>
- <if test="shipperRegisterAptitudes != null and shipperRegisterAptitudes != ''">
- and SHIPPER_REGISTER_APTITUDES = #{shipperRegisterAptitudes}
- </if>
- <if test="shipperCredentialDesc != null and shipperCredentialDesc != ''">
- and SHIPPER_CREDENTIAL_DESC = #{shipperCredentialDesc}
- </if>
- <if test="memo != null and memo != ''">
- and MEMO = #{memo}
- </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="shipperAppid != null and shipperAppid != ''">
- and SHIPPER_APPID = #{shipperAppid}
- </if>
- <if test="shipperSecretkey != null and shipperSecretkey != ''">
- and SHIPPER_SECRETKEY = #{shipperSecretkey}
- </if>
- <if test="deleted != null">
- and DELETED = #{deleted}
- </if>
- </where>
- </sql>
- <sql id="whereLike">
- <where>
- <if test="shipperId != null">
- and SHIPPER_ID = #{shipperId}
- </if>
- <if test="shipperName != null and shipperName != ''">
- and SHIPPER_NAME LIKE '%${shipperName}%'
- </if>
- <if test="shipperAbbreviation != null and shipperAbbreviation != ''">
- and SHIPPER_ABBREVIATION LIKE '%${shipperAbbreviation}%'
- </if>
- <if test="shipperCompanyBranch != null and shipperCompanyBranch != ''">
- and SHIPPER_COMPANY_BRANCH LIKE '%${shipperCompanyBranch}%'
- </if>
- <if test="shipperBranchFactory != null and shipperBranchFactory != ''">
- and SHIPPER_BRANCH_FACTORY LIKE '%${shipperBranchFactory}%'
- </if>
- <if test="shipperFactoryArea != null and shipperFactoryArea != ''">
- and SHIPPER_FACTORY_AREA LIKE '%${shipperFactoryArea}%'
- </if>
- <if test="shipperPartitionCode != null and shipperPartitionCode != ''">
- and SHIPPER_PARTITION_CODE LIKE '%${shipperPartitionCode}%'
- </if>
- <if test="shipperAddress != null and shipperAddress != ''">
- and SHIPPER_ADDRESS LIKE '%${shipperAddress}%'
- </if>
- <if test="shipperLegalRepresentative != null and shipperLegalRepresentative != ''">
- and SHIPPER_LEGAL_REPRESENTATIVE LIKE '%${shipperLegalRepresentative}%'
- </if>
- <if test="shipperAgent != null and shipperAgent != ''">
- and SHIPPER_AGENT LIKE '%${shipperAgent}%'
- </if>
- <if test="shipperContactNumber != null and shipperContactNumber != ''">
- and SHIPPER_CONTACT_NUMBER LIKE '%${shipperContactNumber}%'
- </if>
- <if test="shipperFax != null and shipperFax != ''">
- and SHIPPER_FAX LIKE '%${shipperFax}%'
- </if>
- <if test="shipperAccount != null and shipperAccount != ''">
- and SHIPPER_ACCOUNT LIKE '%${shipperAccount}%'
- </if>
- <if test="shipperAccountBlank != null and shipperAccountBlank != ''">
- and SHIPPER_ACCOUNT_BLANK LIKE '%${shipperAccountBlank}%'
- </if>
- <if test="shipperRegisterNo != null and shipperRegisterNo != ''">
- and SHIPPER_REGISTER_NO LIKE '%${shipperRegisterNo}%'
- </if>
- <if test="shipperDutyParagraph != null and shipperDutyParagraph != ''">
- and SHIPPER_DUTY_PARAGRAPH LIKE '%${shipperDutyParagraph}%'
- </if>
- <if test="shipperPostalCode != null and shipperPostalCode != ''">
- and SHIPPER_POSTAL_CODE LIKE '%${shipperPostalCode}%'
- </if>
- <if test="shipperContactsName != null and shipperContactsName != ''">
- and SHIPPER_CONTACTS_NAME LIKE '%${shipperContactsName}%'
- </if>
- <if test="shipperRegisterCapital != null">
- and SHIPPER_REGISTER_CAPITAL = #{shipperRegisterCapital}
- </if>
- <if test="shipperBusinessScope != null and shipperBusinessScope != ''">
- and SHIPPER_BUSINESS_SCOPE LIKE '%${shipperBusinessScope}%'
- </if>
- <if test="shipperAnnualDate != null and shipperAnnualDate != ''">
- and SHIPPER_ANNUAL_DATE LIKE '%${shipperAnnualDate}%'
- </if>
- <if test="shipperCompanyStatusDesc != null and shipperCompanyStatusDesc != ''">
- and SHIPPER_COMPANY_STATUS_DESC LIKE '%${shipperCompanyStatusDesc}%'
- </if>
- <if test="shipperOperationPeriod != null and shipperOperationPeriod != ''">
- and SHIPPER_OPERATION_PERIOD LIKE '%${shipperOperationPeriod}%'
- </if>
- <if test="shipperRegisterDate != null">
- and TO_CHAR(SHIPPER_REGISTER_DATE,'yyyy-MM-dd') = #{shipperRegisterDate}
- </if>
- <if test="shipperRegisterOrganization != null and shipperRegisterOrganization != ''">
- and SHIPPER_REGISTER_ORGANIZATION LIKE '%${shipperRegisterOrganization}%'
- </if>
- <if test="shipperRegisterAptitudes != null and shipperRegisterAptitudes != ''">
- and SHIPPER_REGISTER_APTITUDES LIKE '%${shipperRegisterAptitudes}%'
- </if>
- <if test="shipperCredentialDesc != null and shipperCredentialDesc != ''">
- and SHIPPER_CREDENTIAL_DESC LIKE '%${shipperCredentialDesc}%'
- </if>
- <if test="memo != null and memo != ''">
- and MEMO LIKE '%${memo}%'
- </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="shipperAppid != null and shipperAppid != ''">
- and SHIPPER_APPID LIKE '%${shipperAppid}%'
- </if>
- <if test="shipperSecretkey != null and shipperSecretkey != ''">
- and SHIPPER_SECRETKEY LIKE '%${shipperSecretkey}%'
- </if>
- <if test="deleted != null">
- and DELETED = #{deleted}
- </if>
- </where>
- </sql>
- <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
- delete from RMS_SHIPPER
- where SHIPPER_ID = #{shipperId,jdbcType=DECIMAL}
- </delete>
- <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
- delete from RMS_SHIPPER
- where 1!=1
- <if test="shipperName != null and shipperName != ''">
- or SHIPPER_NAME = #{shipperName}
- </if>
- <if test="shipperAbbreviation != null and shipperAbbreviation != ''">
- or SHIPPER_ABBREVIATION = #{shipperAbbreviation}
- </if>
- <if test="shipperCompanyBranch != null and shipperCompanyBranch != ''">
- or SHIPPER_COMPANY_BRANCH = #{shipperCompanyBranch}
- </if>
- <if test="shipperBranchFactory != null and shipperBranchFactory != ''">
- or SHIPPER_BRANCH_FACTORY = #{shipperBranchFactory}
- </if>
- <if test="shipperFactoryArea != null and shipperFactoryArea != ''">
- or SHIPPER_FACTORY_AREA = #{shipperFactoryArea}
- </if>
- <if test="shipperPartitionCode != null and shipperPartitionCode != ''">
- or SHIPPER_PARTITION_CODE = #{shipperPartitionCode}
- </if>
- <if test="shipperAddress != null and shipperAddress != ''">
- or SHIPPER_ADDRESS = #{shipperAddress}
- </if>
- <if test="shipperLegalRepresentative != null and shipperLegalRepresentative != ''">
- or SHIPPER_LEGAL_REPRESENTATIVE = #{shipperLegalRepresentative}
- </if>
- <if test="shipperAgent != null and shipperAgent != ''">
- or SHIPPER_AGENT = #{shipperAgent}
- </if>
- <if test="shipperContactNumber != null and shipperContactNumber != ''">
- or SHIPPER_CONTACT_NUMBER = #{shipperContactNumber}
- </if>
- <if test="shipperFax != null and shipperFax != ''">
- or SHIPPER_FAX = #{shipperFax}
- </if>
- <if test="shipperAccount != null and shipperAccount != ''">
- or SHIPPER_ACCOUNT = #{shipperAccount}
- </if>
- <if test="shipperAccountBlank != null and shipperAccountBlank != ''">
- or SHIPPER_ACCOUNT_BLANK = #{shipperAccountBlank}
- </if>
- <if test="shipperRegisterNo != null and shipperRegisterNo != ''">
- or SHIPPER_REGISTER_NO = #{shipperRegisterNo}
- </if>
- <if test="shipperDutyParagraph != null and shipperDutyParagraph != ''">
- or SHIPPER_DUTY_PARAGRAPH = #{shipperDutyParagraph}
- </if>
- <if test="shipperPostalCode != null and shipperPostalCode != ''">
- or SHIPPER_POSTAL_CODE = #{shipperPostalCode}
- </if>
- <if test="shipperContactsName != null and shipperContactsName != ''">
- or SHIPPER_CONTACTS_NAME = #{shipperContactsName}
- </if>
- <if test="shipperRegisterCapital != null">
- or SHIPPER_REGISTER_CAPITAL = #{shipperRegisterCapital}
- </if>
- <if test="shipperBusinessScope != null and shipperBusinessScope != ''">
- or SHIPPER_BUSINESS_SCOPE = #{shipperBusinessScope}
- </if>
- <if test="shipperAnnualDate != null and shipperAnnualDate != ''">
- or SHIPPER_ANNUAL_DATE = #{shipperAnnualDate}
- </if>
- <if test="shipperCompanyStatusDesc != null and shipperCompanyStatusDesc != ''">
- or SHIPPER_COMPANY_STATUS_DESC = #{shipperCompanyStatusDesc}
- </if>
- <if test="shipperOperationPeriod != null and shipperOperationPeriod != ''">
- or SHIPPER_OPERATION_PERIOD = #{shipperOperationPeriod}
- </if>
- <if test="shipperRegisterDate != null">
- or TO_CHAR(SHIPPER_REGISTER_DATE,'yyyy-MM-dd') = '#{shipperRegisterDate}'
- </if>
- <if test="shipperRegisterOrganization != null and shipperRegisterOrganization != ''">
- or SHIPPER_REGISTER_ORGANIZATION = #{shipperRegisterOrganization}
- </if>
- <if test="shipperRegisterAptitudes != null and shipperRegisterAptitudes != ''">
- or SHIPPER_REGISTER_APTITUDES = #{shipperRegisterAptitudes}
- </if>
- <if test="shipperCredentialDesc != null and shipperCredentialDesc != ''">
- or SHIPPER_CREDENTIAL_DESC = #{shipperCredentialDesc}
- </if>
- <if test="memo != null and memo != ''">
- or MEMO = #{memo}
- </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="shipperAppid != null and shipperAppid != ''">
- or SHIPPER_APPID = #{shipperAppid}
- </if>
- <if test="shipperSecretkey != null and shipperSecretkey != ''">
- or SHIPPER_SECRETKEY = #{shipperSecretkey}
- </if>
- <if test="deleted != null">
- or DELETED = #{deleted}
- </if>
- </delete>
- <insert id="insert" parameterType="com.steerinfo.dil.model.RmsShipper">
- insert into RMS_SHIPPER (SHIPPER_ID, SHIPPER_NAME, SHIPPER_ABBREVIATION,
- SHIPPER_COMPANY_BRANCH, SHIPPER_BRANCH_FACTORY,
- SHIPPER_FACTORY_AREA, SHIPPER_PARTITION_CODE,
- SHIPPER_ADDRESS, SHIPPER_LEGAL_REPRESENTATIVE,
- SHIPPER_AGENT, SHIPPER_CONTACT_NUMBER, SHIPPER_FAX,
- SHIPPER_ACCOUNT, SHIPPER_ACCOUNT_BLANK, SHIPPER_REGISTER_NO,
- SHIPPER_DUTY_PARAGRAPH, SHIPPER_POSTAL_CODE,
- SHIPPER_CONTACTS_NAME, SHIPPER_REGISTER_CAPITAL,
- SHIPPER_BUSINESS_SCOPE, SHIPPER_ANNUAL_DATE,
- SHIPPER_COMPANY_STATUS_DESC, SHIPPER_OPERATION_PERIOD,
- SHIPPER_REGISTER_DATE, SHIPPER_REGISTER_ORGANIZATION,
- SHIPPER_REGISTER_APTITUDES, SHIPPER_CREDENTIAL_DESC,
- MEMO, INSERT_USERNAME, INSERT_TIME,
- UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
- SHIPPER_APPID, SHIPPER_SECRETKEY, DELETED
- )
- values (#{shipperId,jdbcType=DECIMAL}, #{shipperName,jdbcType=VARCHAR}, #{shipperAbbreviation,jdbcType=VARCHAR},
- #{shipperCompanyBranch,jdbcType=VARCHAR}, #{shipperBranchFactory,jdbcType=VARCHAR},
- #{shipperFactoryArea,jdbcType=VARCHAR}, #{shipperPartitionCode,jdbcType=VARCHAR},
- #{shipperAddress,jdbcType=VARCHAR}, #{shipperLegalRepresentative,jdbcType=VARCHAR},
- #{shipperAgent,jdbcType=VARCHAR}, #{shipperContactNumber,jdbcType=VARCHAR}, #{shipperFax,jdbcType=VARCHAR},
- #{shipperAccount,jdbcType=VARCHAR}, #{shipperAccountBlank,jdbcType=VARCHAR}, #{shipperRegisterNo,jdbcType=VARCHAR},
- #{shipperDutyParagraph,jdbcType=VARCHAR}, #{shipperPostalCode,jdbcType=VARCHAR},
- #{shipperContactsName,jdbcType=VARCHAR}, #{shipperRegisterCapital,jdbcType=DECIMAL},
- #{shipperBusinessScope,jdbcType=VARCHAR}, #{shipperAnnualDate,jdbcType=VARCHAR},
- #{shipperCompanyStatusDesc,jdbcType=VARCHAR}, #{shipperOperationPeriod,jdbcType=VARCHAR},
- #{shipperRegisterDate,jdbcType=TIMESTAMP}, #{shipperRegisterOrganization,jdbcType=VARCHAR},
- #{shipperRegisterAptitudes,jdbcType=VARCHAR}, #{shipperCredentialDesc,jdbcType=VARCHAR},
- #{memo,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
- #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
- #{shipperAppid,jdbcType=VARCHAR}, #{shipperSecretkey,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsShipper">
- insert into RMS_SHIPPER
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="shipperId != null">
- SHIPPER_ID,
- </if>
- <if test="shipperName != null">
- SHIPPER_NAME,
- </if>
- <if test="shipperAbbreviation != null">
- SHIPPER_ABBREVIATION,
- </if>
- <if test="shipperCompanyBranch != null">
- SHIPPER_COMPANY_BRANCH,
- </if>
- <if test="shipperBranchFactory != null">
- SHIPPER_BRANCH_FACTORY,
- </if>
- <if test="shipperFactoryArea != null">
- SHIPPER_FACTORY_AREA,
- </if>
- <if test="shipperPartitionCode != null">
- SHIPPER_PARTITION_CODE,
- </if>
- <if test="shipperAddress != null">
- SHIPPER_ADDRESS,
- </if>
- <if test="shipperLegalRepresentative != null">
- SHIPPER_LEGAL_REPRESENTATIVE,
- </if>
- <if test="shipperAgent != null">
- SHIPPER_AGENT,
- </if>
- <if test="shipperContactNumber != null">
- SHIPPER_CONTACT_NUMBER,
- </if>
- <if test="shipperFax != null">
- SHIPPER_FAX,
- </if>
- <if test="shipperAccount != null">
- SHIPPER_ACCOUNT,
- </if>
- <if test="shipperAccountBlank != null">
- SHIPPER_ACCOUNT_BLANK,
- </if>
- <if test="shipperRegisterNo != null">
- SHIPPER_REGISTER_NO,
- </if>
- <if test="shipperDutyParagraph != null">
- SHIPPER_DUTY_PARAGRAPH,
- </if>
- <if test="shipperPostalCode != null">
- SHIPPER_POSTAL_CODE,
- </if>
- <if test="shipperContactsName != null">
- SHIPPER_CONTACTS_NAME,
- </if>
- <if test="shipperRegisterCapital != null">
- SHIPPER_REGISTER_CAPITAL,
- </if>
- <if test="shipperBusinessScope != null">
- SHIPPER_BUSINESS_SCOPE,
- </if>
- <if test="shipperAnnualDate != null">
- SHIPPER_ANNUAL_DATE,
- </if>
- <if test="shipperCompanyStatusDesc != null">
- SHIPPER_COMPANY_STATUS_DESC,
- </if>
- <if test="shipperOperationPeriod != null">
- SHIPPER_OPERATION_PERIOD,
- </if>
- <if test="shipperRegisterDate != null">
- SHIPPER_REGISTER_DATE,
- </if>
- <if test="shipperRegisterOrganization != null">
- SHIPPER_REGISTER_ORGANIZATION,
- </if>
- <if test="shipperRegisterAptitudes != null">
- SHIPPER_REGISTER_APTITUDES,
- </if>
- <if test="shipperCredentialDesc != null">
- SHIPPER_CREDENTIAL_DESC,
- </if>
- <if test="memo != null">
- MEMO,
- </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="shipperAppid != null">
- SHIPPER_APPID,
- </if>
- <if test="shipperSecretkey != null">
- SHIPPER_SECRETKEY,
- </if>
- <if test="deleted != null">
- DELETED,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="shipperId != null">
- #{shipperId,jdbcType=DECIMAL},
- </if>
- <if test="shipperName != null">
- #{shipperName,jdbcType=VARCHAR},
- </if>
- <if test="shipperAbbreviation != null">
- #{shipperAbbreviation,jdbcType=VARCHAR},
- </if>
- <if test="shipperCompanyBranch != null">
- #{shipperCompanyBranch,jdbcType=VARCHAR},
- </if>
- <if test="shipperBranchFactory != null">
- #{shipperBranchFactory,jdbcType=VARCHAR},
- </if>
- <if test="shipperFactoryArea != null">
- #{shipperFactoryArea,jdbcType=VARCHAR},
- </if>
- <if test="shipperPartitionCode != null">
- #{shipperPartitionCode,jdbcType=VARCHAR},
- </if>
- <if test="shipperAddress != null">
- #{shipperAddress,jdbcType=VARCHAR},
- </if>
- <if test="shipperLegalRepresentative != null">
- #{shipperLegalRepresentative,jdbcType=VARCHAR},
- </if>
- <if test="shipperAgent != null">
- #{shipperAgent,jdbcType=VARCHAR},
- </if>
- <if test="shipperContactNumber != null">
- #{shipperContactNumber,jdbcType=VARCHAR},
- </if>
- <if test="shipperFax != null">
- #{shipperFax,jdbcType=VARCHAR},
- </if>
- <if test="shipperAccount != null">
- #{shipperAccount,jdbcType=VARCHAR},
- </if>
- <if test="shipperAccountBlank != null">
- #{shipperAccountBlank,jdbcType=VARCHAR},
- </if>
- <if test="shipperRegisterNo != null">
- #{shipperRegisterNo,jdbcType=VARCHAR},
- </if>
- <if test="shipperDutyParagraph != null">
- #{shipperDutyParagraph,jdbcType=VARCHAR},
- </if>
- <if test="shipperPostalCode != null">
- #{shipperPostalCode,jdbcType=VARCHAR},
- </if>
- <if test="shipperContactsName != null">
- #{shipperContactsName,jdbcType=VARCHAR},
- </if>
- <if test="shipperRegisterCapital != null">
- #{shipperRegisterCapital,jdbcType=DECIMAL},
- </if>
- <if test="shipperBusinessScope != null">
- #{shipperBusinessScope,jdbcType=VARCHAR},
- </if>
- <if test="shipperAnnualDate != null">
- #{shipperAnnualDate,jdbcType=VARCHAR},
- </if>
- <if test="shipperCompanyStatusDesc != null">
- #{shipperCompanyStatusDesc,jdbcType=VARCHAR},
- </if>
- <if test="shipperOperationPeriod != null">
- #{shipperOperationPeriod,jdbcType=VARCHAR},
- </if>
- <if test="shipperRegisterDate != null">
- #{shipperRegisterDate,jdbcType=TIMESTAMP},
- </if>
- <if test="shipperRegisterOrganization != null">
- #{shipperRegisterOrganization,jdbcType=VARCHAR},
- </if>
- <if test="shipperRegisterAptitudes != null">
- #{shipperRegisterAptitudes,jdbcType=VARCHAR},
- </if>
- <if test="shipperCredentialDesc != null">
- #{shipperCredentialDesc,jdbcType=VARCHAR},
- </if>
- <if test="memo != null">
- #{memo,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="shipperAppid != null">
- #{shipperAppid,jdbcType=VARCHAR},
- </if>
- <if test="shipperSecretkey != null">
- #{shipperSecretkey,jdbcType=VARCHAR},
- </if>
- <if test="deleted != null">
- #{deleted,jdbcType=DECIMAL},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsShipper">
- update RMS_SHIPPER
- set SHIPPER_NAME = #{shipperName,jdbcType=VARCHAR},
- SHIPPER_ABBREVIATION = #{shipperAbbreviation,jdbcType=VARCHAR},
- SHIPPER_COMPANY_BRANCH = #{shipperCompanyBranch,jdbcType=VARCHAR},
- SHIPPER_BRANCH_FACTORY = #{shipperBranchFactory,jdbcType=VARCHAR},
- SHIPPER_FACTORY_AREA = #{shipperFactoryArea,jdbcType=VARCHAR},
- SHIPPER_PARTITION_CODE = #{shipperPartitionCode,jdbcType=VARCHAR},
- SHIPPER_ADDRESS = #{shipperAddress,jdbcType=VARCHAR},
- SHIPPER_LEGAL_REPRESENTATIVE = #{shipperLegalRepresentative,jdbcType=VARCHAR},
- SHIPPER_AGENT = #{shipperAgent,jdbcType=VARCHAR},
- SHIPPER_CONTACT_NUMBER = #{shipperContactNumber,jdbcType=VARCHAR},
- SHIPPER_FAX = #{shipperFax,jdbcType=VARCHAR},
- SHIPPER_ACCOUNT = #{shipperAccount,jdbcType=VARCHAR},
- SHIPPER_ACCOUNT_BLANK = #{shipperAccountBlank,jdbcType=VARCHAR},
- SHIPPER_REGISTER_NO = #{shipperRegisterNo,jdbcType=VARCHAR},
- SHIPPER_DUTY_PARAGRAPH = #{shipperDutyParagraph,jdbcType=VARCHAR},
- SHIPPER_POSTAL_CODE = #{shipperPostalCode,jdbcType=VARCHAR},
- SHIPPER_CONTACTS_NAME = #{shipperContactsName,jdbcType=VARCHAR},
- SHIPPER_REGISTER_CAPITAL = #{shipperRegisterCapital,jdbcType=DECIMAL},
- SHIPPER_BUSINESS_SCOPE = #{shipperBusinessScope,jdbcType=VARCHAR},
- SHIPPER_ANNUAL_DATE = #{shipperAnnualDate,jdbcType=VARCHAR},
- SHIPPER_COMPANY_STATUS_DESC = #{shipperCompanyStatusDesc,jdbcType=VARCHAR},
- SHIPPER_OPERATION_PERIOD = #{shipperOperationPeriod,jdbcType=VARCHAR},
- SHIPPER_REGISTER_DATE = #{shipperRegisterDate,jdbcType=TIMESTAMP},
- SHIPPER_REGISTER_ORGANIZATION = #{shipperRegisterOrganization,jdbcType=VARCHAR},
- SHIPPER_REGISTER_APTITUDES = #{shipperRegisterAptitudes,jdbcType=VARCHAR},
- SHIPPER_CREDENTIAL_DESC = #{shipperCredentialDesc,jdbcType=VARCHAR},
- MEMO = #{memo,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},
- SHIPPER_APPID = #{shipperAppid,jdbcType=VARCHAR},
- SHIPPER_SECRETKEY = #{shipperSecretkey,jdbcType=VARCHAR},
- DELETED = #{deleted,jdbcType=DECIMAL}
- where SHIPPER_ID = #{shipperId,jdbcType=DECIMAL}
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsShipper">
- update RMS_SHIPPER
- <set>
- <if test="shipperName != null">
- SHIPPER_NAME = #{shipperName,jdbcType=VARCHAR},
- </if>
- <if test="shipperAbbreviation != null">
- SHIPPER_ABBREVIATION = #{shipperAbbreviation,jdbcType=VARCHAR},
- </if>
- <if test="shipperCompanyBranch != null">
- SHIPPER_COMPANY_BRANCH = #{shipperCompanyBranch,jdbcType=VARCHAR},
- </if>
- <if test="shipperBranchFactory != null">
- SHIPPER_BRANCH_FACTORY = #{shipperBranchFactory,jdbcType=VARCHAR},
- </if>
- <if test="shipperFactoryArea != null">
- SHIPPER_FACTORY_AREA = #{shipperFactoryArea,jdbcType=VARCHAR},
- </if>
- <if test="shipperPartitionCode != null">
- SHIPPER_PARTITION_CODE = #{shipperPartitionCode,jdbcType=VARCHAR},
- </if>
- <if test="shipperAddress != null">
- SHIPPER_ADDRESS = #{shipperAddress,jdbcType=VARCHAR},
- </if>
- <if test="shipperLegalRepresentative != null">
- SHIPPER_LEGAL_REPRESENTATIVE = #{shipperLegalRepresentative,jdbcType=VARCHAR},
- </if>
- <if test="shipperAgent != null">
- SHIPPER_AGENT = #{shipperAgent,jdbcType=VARCHAR},
- </if>
- <if test="shipperContactNumber != null">
- SHIPPER_CONTACT_NUMBER = #{shipperContactNumber,jdbcType=VARCHAR},
- </if>
- <if test="shipperFax != null">
- SHIPPER_FAX = #{shipperFax,jdbcType=VARCHAR},
- </if>
- <if test="shipperAccount != null">
- SHIPPER_ACCOUNT = #{shipperAccount,jdbcType=VARCHAR},
- </if>
- <if test="shipperAccountBlank != null">
- SHIPPER_ACCOUNT_BLANK = #{shipperAccountBlank,jdbcType=VARCHAR},
- </if>
- <if test="shipperRegisterNo != null">
- SHIPPER_REGISTER_NO = #{shipperRegisterNo,jdbcType=VARCHAR},
- </if>
- <if test="shipperDutyParagraph != null">
- SHIPPER_DUTY_PARAGRAPH = #{shipperDutyParagraph,jdbcType=VARCHAR},
- </if>
- <if test="shipperPostalCode != null">
- SHIPPER_POSTAL_CODE = #{shipperPostalCode,jdbcType=VARCHAR},
- </if>
- <if test="shipperContactsName != null">
- SHIPPER_CONTACTS_NAME = #{shipperContactsName,jdbcType=VARCHAR},
- </if>
- <if test="shipperRegisterCapital != null">
- SHIPPER_REGISTER_CAPITAL = #{shipperRegisterCapital,jdbcType=DECIMAL},
- </if>
- <if test="shipperBusinessScope != null">
- SHIPPER_BUSINESS_SCOPE = #{shipperBusinessScope,jdbcType=VARCHAR},
- </if>
- <if test="shipperAnnualDate != null">
- SHIPPER_ANNUAL_DATE = #{shipperAnnualDate,jdbcType=VARCHAR},
- </if>
- <if test="shipperCompanyStatusDesc != null">
- SHIPPER_COMPANY_STATUS_DESC = #{shipperCompanyStatusDesc,jdbcType=VARCHAR},
- </if>
- <if test="shipperOperationPeriod != null">
- SHIPPER_OPERATION_PERIOD = #{shipperOperationPeriod,jdbcType=VARCHAR},
- </if>
- <if test="shipperRegisterDate != null">
- SHIPPER_REGISTER_DATE = #{shipperRegisterDate,jdbcType=TIMESTAMP},
- </if>
- <if test="shipperRegisterOrganization != null">
- SHIPPER_REGISTER_ORGANIZATION = #{shipperRegisterOrganization,jdbcType=VARCHAR},
- </if>
- <if test="shipperRegisterAptitudes != null">
- SHIPPER_REGISTER_APTITUDES = #{shipperRegisterAptitudes,jdbcType=VARCHAR},
- </if>
- <if test="shipperCredentialDesc != null">
- SHIPPER_CREDENTIAL_DESC = #{shipperCredentialDesc,jdbcType=VARCHAR},
- </if>
- <if test="memo != null">
- MEMO = #{memo,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="shipperAppid != null">
- SHIPPER_APPID = #{shipperAppid,jdbcType=VARCHAR},
- </if>
- <if test="shipperSecretkey != null">
- SHIPPER_SECRETKEY = #{shipperSecretkey,jdbcType=VARCHAR},
- </if>
- <if test="deleted != null">
- DELETED = #{deleted,jdbcType=DECIMAL},
- </if>
- </set>
- where SHIPPER_ID = #{shipperId,jdbcType=DECIMAL}
- </update>
- <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
- <include refid="select" />
- where SHIPPER_ID = #{shipperId,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_SHIPPER
- (SHIPPER_ID,
- SHIPPER_NAME, SHIPPER_ABBREVIATION,
- SHIPPER_COMPANY_BRANCH, SHIPPER_BRANCH_FACTORY,
- SHIPPER_FACTORY_AREA, SHIPPER_PARTITION_CODE,
- SHIPPER_ADDRESS, SHIPPER_LEGAL_REPRESENTATIVE,
- SHIPPER_AGENT, SHIPPER_CONTACT_NUMBER,
- SHIPPER_FAX, SHIPPER_ACCOUNT, SHIPPER_ACCOUNT_BLANK,
- SHIPPER_REGISTER_NO, SHIPPER_DUTY_PARAGRAPH,
- SHIPPER_POSTAL_CODE, SHIPPER_CONTACTS_NAME,
- SHIPPER_REGISTER_CAPITAL, SHIPPER_BUSINESS_SCOPE,
- SHIPPER_ANNUAL_DATE, SHIPPER_COMPANY_STATUS_DESC,
- SHIPPER_OPERATION_PERIOD, SHIPPER_REGISTER_DATE,
- SHIPPER_REGISTER_ORGANIZATION, SHIPPER_REGISTER_APTITUDES,
- SHIPPER_CREDENTIAL_DESC, MEMO,
- INSERT_USERNAME, INSERT_TIME,
- UPDATE_USERNAME, UPDATE_TIME,
- INSERT_UPDATE_REMARK, SHIPPER_APPID,
- SHIPPER_SECRETKEY, DELETED)
- ( <foreach collection="list" item="item" separator="union all">
- select
- #{item.shipperId,jdbcType=DECIMAL},
- #{item.shipperName,jdbcType=VARCHAR}, #{item.shipperAbbreviation,jdbcType=VARCHAR},
- #{item.shipperCompanyBranch,jdbcType=VARCHAR}, #{item.shipperBranchFactory,jdbcType=VARCHAR},
- #{item.shipperFactoryArea,jdbcType=VARCHAR}, #{item.shipperPartitionCode,jdbcType=VARCHAR},
- #{item.shipperAddress,jdbcType=VARCHAR}, #{item.shipperLegalRepresentative,jdbcType=VARCHAR},
- #{item.shipperAgent,jdbcType=VARCHAR}, #{item.shipperContactNumber,jdbcType=VARCHAR},
- #{item.shipperFax,jdbcType=VARCHAR}, #{item.shipperAccount,jdbcType=VARCHAR}, #{item.shipperAccountBlank,jdbcType=VARCHAR},
- #{item.shipperRegisterNo,jdbcType=VARCHAR}, #{item.shipperDutyParagraph,jdbcType=VARCHAR},
- #{item.shipperPostalCode,jdbcType=VARCHAR}, #{item.shipperContactsName,jdbcType=VARCHAR},
- #{item.shipperRegisterCapital,jdbcType=DECIMAL}, #{item.shipperBusinessScope,jdbcType=VARCHAR},
- #{item.shipperAnnualDate,jdbcType=VARCHAR}, #{item.shipperCompanyStatusDesc,jdbcType=VARCHAR},
- #{item.shipperOperationPeriod,jdbcType=VARCHAR}, #{item.shipperRegisterDate,jdbcType=TIMESTAMP},
- #{item.shipperRegisterOrganization,jdbcType=VARCHAR}, #{item.shipperRegisterAptitudes,jdbcType=VARCHAR},
- #{item.shipperCredentialDesc,jdbcType=VARCHAR}, #{item.memo,jdbcType=VARCHAR},
- #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
- #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
- #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.shipperAppid,jdbcType=VARCHAR},
- #{item.shipperSecretkey,jdbcType=VARCHAR}, #{item.deleted,jdbcType=DECIMAL} from dual
- </foreach> )
- </insert>
- <update id="batchUpdate" parameterType="java.util.List">
- update RMS_SHIPPER
- set
- SHIPPER_ID=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperId,jdbcType=DECIMAL}
- </foreach>
- ,SHIPPER_NAME=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperName,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_ABBREVIATION=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperAbbreviation,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_COMPANY_BRANCH=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperCompanyBranch,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_BRANCH_FACTORY=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperBranchFactory,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_FACTORY_AREA=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperFactoryArea,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_PARTITION_CODE=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperPartitionCode,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_ADDRESS=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperAddress,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_LEGAL_REPRESENTATIVE=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperLegalRepresentative,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_AGENT=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperAgent,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_CONTACT_NUMBER=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperContactNumber,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_FAX=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperFax,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_ACCOUNT=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperAccount,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_ACCOUNT_BLANK=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperAccountBlank,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_REGISTER_NO=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperRegisterNo,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_DUTY_PARAGRAPH=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperDutyParagraph,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_POSTAL_CODE=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperPostalCode,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_CONTACTS_NAME=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperContactsName,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_REGISTER_CAPITAL=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperRegisterCapital,jdbcType=DECIMAL}
- </foreach>
- ,SHIPPER_BUSINESS_SCOPE=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperBusinessScope,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_ANNUAL_DATE=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperAnnualDate,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_COMPANY_STATUS_DESC=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperCompanyStatusDesc,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_OPERATION_PERIOD=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperOperationPeriod,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_REGISTER_DATE=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperRegisterDate,jdbcType=TIMESTAMP}
- </foreach>
- ,SHIPPER_REGISTER_ORGANIZATION=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperRegisterOrganization,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_REGISTER_APTITUDES=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperRegisterAptitudes,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_CREDENTIAL_DESC=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperCredentialDesc,jdbcType=VARCHAR}
- </foreach>
- ,MEMO=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.memo,jdbcType=VARCHAR}
- </foreach>
- ,INSERT_USERNAME=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
- </foreach>
- ,INSERT_TIME=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
- </foreach>
- ,UPDATE_USERNAME=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
- </foreach>
- ,UPDATE_TIME=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
- </foreach>
- ,INSERT_UPDATE_REMARK=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_APPID=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperAppid,jdbcType=VARCHAR}
- </foreach>
- ,SHIPPER_SECRETKEY=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.shipperSecretkey,jdbcType=VARCHAR}
- </foreach>
- ,DELETED=
- <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" ">
- when #{item.shipperId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
- </foreach>
- where SHIPPER_ID in
- <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
- #{item.shipperId,jdbcType=DECIMAL}
- </foreach>
- </update>
- <delete id="batchDelete" parameterType="java.util.List">
- delete from RMS_SHIPPER
- where SHIPPER_ID in
- <foreach close=")" collection="list" item="id" open="(" separator=",">
- #{id}
- </foreach>
- </delete>
- <!-- 友情提示!!!-->
- <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
- <!-- 展示托运人信息-->
- <select id="getShipperList" parameterType="java.util.Map" resultType="java.util.Map">
- select * from
- (
- select
- RS.SHIPPER_ID as "shipperId",
- RS.SHIPPER_NAME as "shipperName",
- RS.SHIPPER_ABBREVIATION as "shipperAbbreviation",
- RS.SHIPPER_COMPANY_BRANCH as "shipperCompanyBranch",
- RS.SHIPPER_BRANCH_FACTORY as "shipperBranchFactory"
- from RMS_SHIPPER RS
- where RS.DELETED !=1
- ORDER BY RS.INSERT_TIME DESC
- )
- <where>
- <if test="shipperId!= null">
- and
- <foreach collection="shipperId" item="item" open="(" separator="," close=")">
- "shipperId" in #{item}
- </foreach>
- </if>
- <if test="shipperName!= null">
- and
- <foreach collection="shipperName" item="item" open="(" separator="," close=")">
- "shipperName" in #{item}
- </foreach>
- </if>
- <if test="shipperAbbreviation!= null">
- and
- <foreach collection="shipperAbbreviation" item="item" open="(" separator="," close=")">
- "shipperAbbreviation" in #{item}
- </foreach>
- </if>
- <if test="shipperCompanyBranch!= null">
- and
- <foreach collection="shipperCompanyBranch" item="item" open="(" separator="," close=")">
- "shipperCompanyBranch" in #{item}
- </foreach>
- </if>
- <if test="shipperBranchFactory!= null">
- and
- <foreach collection="shipperBranchFactory" item="item" open="(" separator="," close=")">
- "shipperBranchFactory" 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="selectShipperById" resultType="java.util.LinkedHashMap">
- select
- RS.SHIPPER_ID as "shipperId",
- RS.SHIPPER_NAME as "shipperName",
- RS.SHIPPER_ABBREVIATION as "shipperAbbreviation",
- RS.SHIPPER_COMPANY_BRANCH as "shipperCompanyBranch",
- RS.SHIPPER_BRANCH_FACTORY as "shipperBranchFactory"
- from RMS_SHIPPER RS
- where RS.SHIPPER_ID=#{id}
- and RS.DELETED != 1
- </select>
- <select id="selectByParametersCompanyBranch" resultType="java.lang.Integer">
- SELECT count(*)
- FROM RMS_SHIPPER RS
- WHERE RS.SHIPPER_COMPANY_BRANCH =#{shipperCompanyBranch}
- AND RS.DELETED=0
- </select>
- </mapper>
|