123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080 |
- <?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"
- 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>
- </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"
- from RMS_SHIPPER RS
- where RS.SHIPPER_ID=#{id}
- and RS.DELETED != 1
- </select>
- </mapper>
|