123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939 |
- <?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.RmsSupplierMapper">
- <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.RmsSupplier">
- <id column="SUPPLIER_ID" jdbcType="DECIMAL" property="supplierId" />
- <result column="SUPPLIER_NAME" jdbcType="VARCHAR" property="supplierName" />
- <result column="SUPPLIER_ABBREVIATION" jdbcType="VARCHAR" property="supplierAbbreviation" />
- <result column="SUPPLIER_ADDRESS" jdbcType="VARCHAR" property="supplierAddress" />
- <result column="SUPPLIER_LEGAL_REPRESENTATIVE" jdbcType="VARCHAR" property="supplierLegalRepresentative" />
- <result column="SUPPLIER_REGISTER_NO" jdbcType="VARCHAR" property="supplierRegisterNo" />
- <result column="SUPPLIER_AGENT" jdbcType="VARCHAR" property="supplierAgent" />
- <result column="SUPPLIER_CONTACT_NUMBER" jdbcType="VARCHAR" property="supplierContactNumber" />
- <result column="SUPPLIER_FAX" jdbcType="VARCHAR" property="supplierFax" />
- <result column="SUPPLIER_ACCOUNT" jdbcType="VARCHAR" property="supplierAccount" />
- <result column="SUPPLIER_ACCOUNT_BLANK" jdbcType="VARCHAR" property="supplierAccountBlank" />
- <result column="SUPPLIER_DUTY_PARAGRAPH" jdbcType="VARCHAR" property="supplierDutyParagraph" />
- <result column="SUPPLIER_POSTAL_CODE" jdbcType="VARCHAR" property="supplierPostalCode" />
- <result column="SUPPLIER_REGISTER_CAPITAL" jdbcType="VARCHAR" property="supplierRegisterCapital" />
- <result column="SUPPLIERBUSINESS_SCOPE" jdbcType="VARCHAR" property="supplierbusinessScope" />
- <result column="SUPPLIER_COMPANY_STATUS" jdbcType="VARCHAR" property="supplierCompanyStatus" />
- <result column="SUPPLIER_OPERATION_PERIOD" jdbcType="VARCHAR" property="supplierOperationPeriod" />
- <result column="SUPPLIER_REGISTER_DATE" jdbcType="TIMESTAMP" property="supplierRegisterDate" />
- <result column="SUPPLIER_REGISTER_ORGANIZATION" jdbcType="VARCHAR" property="supplierRegisterOrganization" />
- <result column="SUPPLIER_REGISTER_APTITUDES" jdbcType="VARCHAR" property="supplierRegisterAptitudes" />
- <result column="SUPPLIER_CREDENTIAL" jdbcType="VARCHAR" property="supplierCredential" />
- <result column="SUPPLIER_CONTACTS_NAME" jdbcType="VARCHAR" property="supplierContactsName" />
- <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="SUPPLIER_BUSINESS_LICENSE" jdbcType="BLOB" property="supplierBusinessLicense" />
- <result column="SUPPLIER_BUSINESS_ABLELICENSE" jdbcType="BLOB" property="supplierBusinessAblelicense" />
- <result column="DELETED" jdbcType="DECIMAL" property="deleted" />
- </resultMap>
- <sql id="columns">
- SUPPLIER_ID, SUPPLIER_NAME, SUPPLIER_ABBREVIATION, SUPPLIER_ADDRESS, SUPPLIER_LEGAL_REPRESENTATIVE,
- SUPPLIER_REGISTER_NO, SUPPLIER_AGENT, SUPPLIER_CONTACT_NUMBER, SUPPLIER_FAX, SUPPLIER_ACCOUNT,
- SUPPLIER_ACCOUNT_BLANK, SUPPLIER_DUTY_PARAGRAPH, SUPPLIER_POSTAL_CODE, SUPPLIER_REGISTER_CAPITAL,
- SUPPLIERBUSINESS_SCOPE, SUPPLIER_COMPANY_STATUS, SUPPLIER_OPERATION_PERIOD, SUPPLIER_REGISTER_DATE,
- SUPPLIER_REGISTER_ORGANIZATION, SUPPLIER_REGISTER_APTITUDES, SUPPLIER_CREDENTIAL,
- SUPPLIER_CONTACTS_NAME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
- INSERT_UPDATE_REMARK, SUPPLIER_BUSINESS_LICENSE, SUPPLIER_BUSINESS_ABLELICENSE,DELETED
- </sql>
- <sql id="columns_alias">
- t.SUPPLIER_ID, t.SUPPLIER_NAME, t.SUPPLIER_ABBREVIATION, t.SUPPLIER_ADDRESS, t.SUPPLIER_LEGAL_REPRESENTATIVE,
- t.SUPPLIER_REGISTER_NO, t.SUPPLIER_AGENT, t.SUPPLIER_CONTACT_NUMBER, t.SUPPLIER_FAX,
- t.SUPPLIER_ACCOUNT, t.SUPPLIER_ACCOUNT_BLANK, t.SUPPLIER_DUTY_PARAGRAPH, t.SUPPLIER_POSTAL_CODE,
- t.SUPPLIER_REGISTER_CAPITAL, t.SUPPLIERBUSINESS_SCOPE, t.SUPPLIER_COMPANY_STATUS,
- t.SUPPLIER_OPERATION_PERIOD, t.SUPPLIER_REGISTER_DATE, t.SUPPLIER_REGISTER_ORGANIZATION,
- t.SUPPLIER_REGISTER_APTITUDES, t.SUPPLIER_CREDENTIAL, t.SUPPLIER_CONTACTS_NAME, t.INSERT_USERNAME,
- t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.SUPPLIER_BUSINESS_LICENSE,
- t.SUPPLIER_BUSINESS_ABLELICENSE,t.DELETED
- </sql>
- <sql id="select">
- SELECT <include refid="columns" /> FROM RMS_SUPPLIER
- </sql>
- <sql id="select_alias">
- SELECT <include refid="columns_alias" /> FROM RMS_SUPPLIER t
- </sql>
- <sql id="where">
- <where>
- <if test="supplierId != null">
- and SUPPLIER_ID = #{supplierId}
- </if>
- <if test="supplierName != null and supplierName != ''">
- and SUPPLIER_NAME = #{supplierName}
- </if>
- <if test="supplierAbbreviation != null and supplierAbbreviation != ''">
- and SUPPLIER_ABBREVIATION = #{supplierAbbreviation}
- </if>
- <if test="supplierAddress != null and supplierAddress != ''">
- and SUPPLIER_ADDRESS = #{supplierAddress}
- </if>
- <if test="supplierLegalRepresentative != null and supplierLegalRepresentative != ''">
- and SUPPLIER_LEGAL_REPRESENTATIVE = #{supplierLegalRepresentative}
- </if>
- <if test="supplierRegisterNo != null and supplierRegisterNo != ''">
- and SUPPLIER_REGISTER_NO = #{supplierRegisterNo}
- </if>
- <if test="supplierAgent != null and supplierAgent != ''">
- and SUPPLIER_AGENT = #{supplierAgent}
- </if>
- <if test="supplierContactNumber != null and supplierContactNumber != ''">
- and SUPPLIER_CONTACT_NUMBER = #{supplierContactNumber}
- </if>
- <if test="supplierFax != null and supplierFax != ''">
- and SUPPLIER_FAX = #{supplierFax}
- </if>
- <if test="supplierAccount != null and supplierAccount != ''">
- and SUPPLIER_ACCOUNT = #{supplierAccount}
- </if>
- <if test="supplierAccountBlank != null and supplierAccountBlank != ''">
- and SUPPLIER_ACCOUNT_BLANK = #{supplierAccountBlank}
- </if>
- <if test="supplierDutyParagraph != null and supplierDutyParagraph != ''">
- and SUPPLIER_DUTY_PARAGRAPH = #{supplierDutyParagraph}
- </if>
- <if test="supplierPostalCode != null and supplierPostalCode != ''">
- and SUPPLIER_POSTAL_CODE = #{supplierPostalCode}
- </if>
- <if test="supplierRegisterCapital != null and supplierRegisterCapital != ''">
- and SUPPLIER_REGISTER_CAPITAL = #{supplierRegisterCapital}
- </if>
- <if test="supplierbusinessScope != null and supplierbusinessScope != ''">
- and SUPPLIERBUSINESS_SCOPE = #{supplierbusinessScope}
- </if>
- <if test="supplierCompanyStatus != null and supplierCompanyStatus != ''">
- and SUPPLIER_COMPANY_STATUS = #{supplierCompanyStatus}
- </if>
- <if test="supplierOperationPeriod != null and supplierOperationPeriod != ''">
- and SUPPLIER_OPERATION_PERIOD = #{supplierOperationPeriod}
- </if>
- <if test="supplierRegisterDate != null">
- and TO_CHAR(SUPPLIER_REGISTER_DATE,'yyyy-MM-dd') = #{supplierRegisterDate}
- </if>
- <if test="supplierRegisterOrganization != null and supplierRegisterOrganization != ''">
- and SUPPLIER_REGISTER_ORGANIZATION = #{supplierRegisterOrganization}
- </if>
- <if test="supplierRegisterAptitudes != null and supplierRegisterAptitudes != ''">
- and SUPPLIER_REGISTER_APTITUDES = #{supplierRegisterAptitudes}
- </if>
- <if test="supplierCredential != null and supplierCredential != ''">
- and SUPPLIER_CREDENTIAL = #{supplierCredential}
- </if>
- <if test="supplierContactsName != null and supplierContactsName != ''">
- and SUPPLIER_CONTACTS_NAME = #{supplierContactsName}
- </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="supplierBusinessLicense != null">
- and SUPPLIER_BUSINESS_LICENSE = #{supplierBusinessLicense}
- </if>
- <if test="supplierBusinessAblelicense != null">
- and SUPPLIER_BUSINESS_ABLELICENSE = #{supplierBusinessAblelicense}
- </if>
- <if test="deleted != null">
- and DELETED = #{deleted}
- </if>
- </where>
- </sql>
- <sql id="whereLike">
- <where>
- <if test="supplierId != null">
- and SUPPLIER_ID = #{supplierId}
- </if>
- <if test="supplierName != null and supplierName != ''">
- and SUPPLIER_NAME LIKE '%${supplierName}%'
- </if>
- <if test="supplierAbbreviation != null and supplierAbbreviation != ''">
- and SUPPLIER_ABBREVIATION LIKE '%${supplierAbbreviation}%'
- </if>
- <if test="supplierAddress != null and supplierAddress != ''">
- and SUPPLIER_ADDRESS LIKE '%${supplierAddress}%'
- </if>
- <if test="supplierLegalRepresentative != null and supplierLegalRepresentative != ''">
- and SUPPLIER_LEGAL_REPRESENTATIVE LIKE '%${supplierLegalRepresentative}%'
- </if>
- <if test="supplierRegisterNo != null and supplierRegisterNo != ''">
- and SUPPLIER_REGISTER_NO LIKE '%${supplierRegisterNo}%'
- </if>
- <if test="supplierAgent != null and supplierAgent != ''">
- and SUPPLIER_AGENT LIKE '%${supplierAgent}%'
- </if>
- <if test="supplierContactNumber != null and supplierContactNumber != ''">
- and SUPPLIER_CONTACT_NUMBER LIKE '%${supplierContactNumber}%'
- </if>
- <if test="supplierFax != null and supplierFax != ''">
- and SUPPLIER_FAX LIKE '%${supplierFax}%'
- </if>
- <if test="supplierAccount != null and supplierAccount != ''">
- and SUPPLIER_ACCOUNT LIKE '%${supplierAccount}%'
- </if>
- <if test="supplierAccountBlank != null and supplierAccountBlank != ''">
- and SUPPLIER_ACCOUNT_BLANK LIKE '%${supplierAccountBlank}%'
- </if>
- <if test="supplierDutyParagraph != null and supplierDutyParagraph != ''">
- and SUPPLIER_DUTY_PARAGRAPH LIKE '%${supplierDutyParagraph}%'
- </if>
- <if test="supplierPostalCode != null and supplierPostalCode != ''">
- and SUPPLIER_POSTAL_CODE LIKE '%${supplierPostalCode}%'
- </if>
- <if test="supplierRegisterCapital != null and supplierRegisterCapital != ''">
- and SUPPLIER_REGISTER_CAPITAL LIKE '%${supplierRegisterCapital}%'
- </if>
- <if test="supplierbusinessScope != null and supplierbusinessScope != ''">
- and SUPPLIERBUSINESS_SCOPE LIKE '%${supplierbusinessScope}%'
- </if>
- <if test="supplierCompanyStatus != null and supplierCompanyStatus != ''">
- and SUPPLIER_COMPANY_STATUS LIKE '%${supplierCompanyStatus}%'
- </if>
- <if test="supplierOperationPeriod != null and supplierOperationPeriod != ''">
- and SUPPLIER_OPERATION_PERIOD LIKE '%${supplierOperationPeriod}%'
- </if>
- <if test="supplierRegisterDate != null">
- and TO_CHAR(SUPPLIER_REGISTER_DATE,'yyyy-MM-dd') = #{supplierRegisterDate}
- </if>
- <if test="supplierRegisterOrganization != null and supplierRegisterOrganization != ''">
- and SUPPLIER_REGISTER_ORGANIZATION LIKE '%${supplierRegisterOrganization}%'
- </if>
- <if test="supplierRegisterAptitudes != null and supplierRegisterAptitudes != ''">
- and SUPPLIER_REGISTER_APTITUDES LIKE '%${supplierRegisterAptitudes}%'
- </if>
- <if test="supplierCredential != null and supplierCredential != ''">
- and SUPPLIER_CREDENTIAL LIKE '%${supplierCredential}%'
- </if>
- <if test="supplierContactsName != null and supplierContactsName != ''">
- and SUPPLIER_CONTACTS_NAME LIKE '%${supplierContactsName}%'
- </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="supplierBusinessLicense != null">
- and SUPPLIER_BUSINESS_LICENSE = #{supplierBusinessLicense}
- </if>
- <if test="supplierBusinessAblelicense != null">
- and SUPPLIER_BUSINESS_ABLELICENSE = #{supplierBusinessAblelicense}
- </if>
- <if test="deleted != null">
- and DELETED = #{deleted}
- </if>
- </where>
- </sql>
- <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
- delete from RMS_SUPPLIER
- where SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL}
- </delete>
- <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
- delete from RMS_SUPPLIER
- where 1!=1
- <if test="supplierName != null and supplierName != ''">
- or SUPPLIER_NAME = #{supplierName}
- </if>
- <if test="supplierAbbreviation != null and supplierAbbreviation != ''">
- or SUPPLIER_ABBREVIATION = #{supplierAbbreviation}
- </if>
- <if test="supplierAddress != null and supplierAddress != ''">
- or SUPPLIER_ADDRESS = #{supplierAddress}
- </if>
- <if test="supplierLegalRepresentative != null and supplierLegalRepresentative != ''">
- or SUPPLIER_LEGAL_REPRESENTATIVE = #{supplierLegalRepresentative}
- </if>
- <if test="supplierRegisterNo != null and supplierRegisterNo != ''">
- or SUPPLIER_REGISTER_NO = #{supplierRegisterNo}
- </if>
- <if test="supplierAgent != null and supplierAgent != ''">
- or SUPPLIER_AGENT = #{supplierAgent}
- </if>
- <if test="supplierContactNumber != null and supplierContactNumber != ''">
- or SUPPLIER_CONTACT_NUMBER = #{supplierContactNumber}
- </if>
- <if test="supplierFax != null and supplierFax != ''">
- or SUPPLIER_FAX = #{supplierFax}
- </if>
- <if test="supplierAccount != null and supplierAccount != ''">
- or SUPPLIER_ACCOUNT = #{supplierAccount}
- </if>
- <if test="supplierAccountBlank != null and supplierAccountBlank != ''">
- or SUPPLIER_ACCOUNT_BLANK = #{supplierAccountBlank}
- </if>
- <if test="supplierDutyParagraph != null and supplierDutyParagraph != ''">
- or SUPPLIER_DUTY_PARAGRAPH = #{supplierDutyParagraph}
- </if>
- <if test="supplierPostalCode != null and supplierPostalCode != ''">
- or SUPPLIER_POSTAL_CODE = #{supplierPostalCode}
- </if>
- <if test="supplierRegisterCapital != null and supplierRegisterCapital != ''">
- or SUPPLIER_REGISTER_CAPITAL = #{supplierRegisterCapital}
- </if>
- <if test="supplierbusinessScope != null and supplierbusinessScope != ''">
- or SUPPLIERBUSINESS_SCOPE = #{supplierbusinessScope}
- </if>
- <if test="supplierCompanyStatus != null and supplierCompanyStatus != ''">
- or SUPPLIER_COMPANY_STATUS = #{supplierCompanyStatus}
- </if>
- <if test="supplierOperationPeriod != null and supplierOperationPeriod != ''">
- or SUPPLIER_OPERATION_PERIOD = #{supplierOperationPeriod}
- </if>
- <if test="supplierRegisterDate != null">
- or TO_CHAR(SUPPLIER_REGISTER_DATE,'yyyy-MM-dd') = '#{supplierRegisterDate}'
- </if>
- <if test="supplierRegisterOrganization != null and supplierRegisterOrganization != ''">
- or SUPPLIER_REGISTER_ORGANIZATION = #{supplierRegisterOrganization}
- </if>
- <if test="supplierRegisterAptitudes != null and supplierRegisterAptitudes != ''">
- or SUPPLIER_REGISTER_APTITUDES = #{supplierRegisterAptitudes}
- </if>
- <if test="supplierCredential != null and supplierCredential != ''">
- or SUPPLIER_CREDENTIAL = #{supplierCredential}
- </if>
- <if test="supplierContactsName != null and supplierContactsName != ''">
- or SUPPLIER_CONTACTS_NAME = #{supplierContactsName}
- </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="supplierBusinessLicense != null">
- or SUPPLIER_BUSINESS_LICENSE = #{supplierBusinessLicense}
- </if>
- <if test="supplierBusinessAblelicense != null">
- or SUPPLIER_BUSINESS_ABLELICENSE = #{supplierBusinessAblelicense}
- </if>
- <if test="deleted != null">
- or DELETED = #{deleted}
- </if>
- </delete>
- <insert id="insert" parameterType="com.steerinfo.dil.model.RmsSupplier">
- insert into RMS_SUPPLIER (SUPPLIER_ID, SUPPLIER_NAME, SUPPLIER_ABBREVIATION,
- SUPPLIER_ADDRESS, SUPPLIER_LEGAL_REPRESENTATIVE,
- SUPPLIER_REGISTER_NO, SUPPLIER_AGENT, SUPPLIER_CONTACT_NUMBER,
- SUPPLIER_FAX, SUPPLIER_ACCOUNT, SUPPLIER_ACCOUNT_BLANK,
- SUPPLIER_DUTY_PARAGRAPH, SUPPLIER_POSTAL_CODE,
- SUPPLIER_REGISTER_CAPITAL, SUPPLIERBUSINESS_SCOPE,
- SUPPLIER_COMPANY_STATUS, SUPPLIER_OPERATION_PERIOD,
- SUPPLIER_REGISTER_DATE, SUPPLIER_REGISTER_ORGANIZATION,
- SUPPLIER_REGISTER_APTITUDES, SUPPLIER_CREDENTIAL,
- SUPPLIER_CONTACTS_NAME, INSERT_USERNAME, INSERT_TIME,
- UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
- SUPPLIER_BUSINESS_LICENSE, SUPPLIER_BUSINESS_ABLELICENSE,DELETED
- )
- values (#{supplierId,jdbcType=DECIMAL}, #{supplierName,jdbcType=VARCHAR}, #{supplierAbbreviation,jdbcType=VARCHAR},
- #{supplierAddress,jdbcType=VARCHAR}, #{supplierLegalRepresentative,jdbcType=VARCHAR},
- #{supplierRegisterNo,jdbcType=VARCHAR}, #{supplierAgent,jdbcType=VARCHAR}, #{supplierContactNumber,jdbcType=VARCHAR},
- #{supplierFax,jdbcType=VARCHAR}, #{supplierAccount,jdbcType=VARCHAR}, #{supplierAccountBlank,jdbcType=VARCHAR},
- #{supplierDutyParagraph,jdbcType=VARCHAR}, #{supplierPostalCode,jdbcType=VARCHAR},
- #{supplierRegisterCapital,jdbcType=VARCHAR}, #{supplierbusinessScope,jdbcType=VARCHAR},
- #{supplierCompanyStatus,jdbcType=VARCHAR}, #{supplierOperationPeriod,jdbcType=VARCHAR},
- #{supplierRegisterDate,jdbcType=TIMESTAMP}, #{supplierRegisterOrganization,jdbcType=VARCHAR},
- #{supplierRegisterAptitudes,jdbcType=VARCHAR}, #{supplierCredential,jdbcType=VARCHAR},
- #{supplierContactsName,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
- #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
- #{supplierBusinessLicense,jdbcType=BLOB}, #{supplierBusinessAblelicense,jdbcType=BLOB}, #{deleted,jdbcType=DECIMAL}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsSupplier">
- insert into RMS_SUPPLIER
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="supplierId != null">
- SUPPLIER_ID,
- </if>
- <if test="supplierName != null">
- SUPPLIER_NAME,
- </if>
- <if test="supplierAbbreviation != null">
- SUPPLIER_ABBREVIATION,
- </if>
- <if test="supplierAddress != null">
- SUPPLIER_ADDRESS,
- </if>
- <if test="supplierLegalRepresentative != null">
- SUPPLIER_LEGAL_REPRESENTATIVE,
- </if>
- <if test="supplierRegisterNo != null">
- SUPPLIER_REGISTER_NO,
- </if>
- <if test="supplierAgent != null">
- SUPPLIER_AGENT,
- </if>
- <if test="supplierContactNumber != null">
- SUPPLIER_CONTACT_NUMBER,
- </if>
- <if test="supplierFax != null">
- SUPPLIER_FAX,
- </if>
- <if test="supplierAccount != null">
- SUPPLIER_ACCOUNT,
- </if>
- <if test="supplierAccountBlank != null">
- SUPPLIER_ACCOUNT_BLANK,
- </if>
- <if test="supplierDutyParagraph != null">
- SUPPLIER_DUTY_PARAGRAPH,
- </if>
- <if test="supplierPostalCode != null">
- SUPPLIER_POSTAL_CODE,
- </if>
- <if test="supplierRegisterCapital != null">
- SUPPLIER_REGISTER_CAPITAL,
- </if>
- <if test="supplierbusinessScope != null">
- SUPPLIERBUSINESS_SCOPE,
- </if>
- <if test="supplierCompanyStatus != null">
- SUPPLIER_COMPANY_STATUS,
- </if>
- <if test="supplierOperationPeriod != null">
- SUPPLIER_OPERATION_PERIOD,
- </if>
- <if test="supplierRegisterDate != null">
- SUPPLIER_REGISTER_DATE,
- </if>
- <if test="supplierRegisterOrganization != null">
- SUPPLIER_REGISTER_ORGANIZATION,
- </if>
- <if test="supplierRegisterAptitudes != null">
- SUPPLIER_REGISTER_APTITUDES,
- </if>
- <if test="supplierCredential != null">
- SUPPLIER_CREDENTIAL,
- </if>
- <if test="supplierContactsName != null">
- SUPPLIER_CONTACTS_NAME,
- </if>
- <if test="insertUsername != null">
- INSERT_USERNAME,
- </if>
- <if test="insertTime != null">
- INSERT_TIME,
- </if>
- <if test="updateUsername != null">
- UPDATE_USERNAME,
- </if>
- <if test="updateTime != null">
- UPDATE_TIME,
- </if>
- <if test="insertUpdateRemark != null">
- INSERT_UPDATE_REMARK,
- </if>
- <if test="supplierBusinessLicense != null">
- SUPPLIER_BUSINESS_LICENSE,
- </if>
- <if test="supplierBusinessAblelicense != null">
- SUPPLIER_BUSINESS_ABLELICENSE,
- </if>
- <if test="deleted != null">
- DELETED,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="supplierId != null">
- #{supplierId,jdbcType=DECIMAL},
- </if>
- <if test="supplierName != null">
- #{supplierName,jdbcType=VARCHAR},
- </if>
- <if test="supplierAbbreviation != null">
- #{supplierAbbreviation,jdbcType=VARCHAR},
- </if>
- <if test="supplierAddress != null">
- #{supplierAddress,jdbcType=VARCHAR},
- </if>
- <if test="supplierLegalRepresentative != null">
- #{supplierLegalRepresentative,jdbcType=VARCHAR},
- </if>
- <if test="supplierRegisterNo != null">
- #{supplierRegisterNo,jdbcType=VARCHAR},
- </if>
- <if test="supplierAgent != null">
- #{supplierAgent,jdbcType=VARCHAR},
- </if>
- <if test="supplierContactNumber != null">
- #{supplierContactNumber,jdbcType=VARCHAR},
- </if>
- <if test="supplierFax != null">
- #{supplierFax,jdbcType=VARCHAR},
- </if>
- <if test="supplierAccount != null">
- #{supplierAccount,jdbcType=VARCHAR},
- </if>
- <if test="supplierAccountBlank != null">
- #{supplierAccountBlank,jdbcType=VARCHAR},
- </if>
- <if test="supplierDutyParagraph != null">
- #{supplierDutyParagraph,jdbcType=VARCHAR},
- </if>
- <if test="supplierPostalCode != null">
- #{supplierPostalCode,jdbcType=VARCHAR},
- </if>
- <if test="supplierRegisterCapital != null">
- #{supplierRegisterCapital,jdbcType=VARCHAR},
- </if>
- <if test="supplierbusinessScope != null">
- #{supplierbusinessScope,jdbcType=VARCHAR},
- </if>
- <if test="supplierCompanyStatus != null">
- #{supplierCompanyStatus,jdbcType=VARCHAR},
- </if>
- <if test="supplierOperationPeriod != null">
- #{supplierOperationPeriod,jdbcType=VARCHAR},
- </if>
- <if test="supplierRegisterDate != null">
- #{supplierRegisterDate,jdbcType=TIMESTAMP},
- </if>
- <if test="supplierRegisterOrganization != null">
- #{supplierRegisterOrganization,jdbcType=VARCHAR},
- </if>
- <if test="supplierRegisterAptitudes != null">
- #{supplierRegisterAptitudes,jdbcType=VARCHAR},
- </if>
- <if test="supplierCredential != null">
- #{supplierCredential,jdbcType=VARCHAR},
- </if>
- <if test="supplierContactsName != null">
- #{supplierContactsName,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="supplierBusinessLicense != null">
- #{supplierBusinessLicense,jdbcType=BLOB},
- </if>
- <if test="supplierBusinessAblelicense != null">
- #{supplierBusinessAblelicense,jdbcType=BLOB},
- </if>
- <if test="deleted != null">
- #{deleted,jdbcType=DECIMAL},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsSupplier">
- update RMS_SUPPLIER
- set SUPPLIER_NAME = #{supplierName,jdbcType=VARCHAR},
- SUPPLIER_ABBREVIATION = #{supplierAbbreviation,jdbcType=VARCHAR},
- SUPPLIER_ADDRESS = #{supplierAddress,jdbcType=VARCHAR},
- SUPPLIER_LEGAL_REPRESENTATIVE = #{supplierLegalRepresentative,jdbcType=VARCHAR},
- SUPPLIER_REGISTER_NO = #{supplierRegisterNo,jdbcType=VARCHAR},
- SUPPLIER_AGENT = #{supplierAgent,jdbcType=VARCHAR},
- SUPPLIER_CONTACT_NUMBER = #{supplierContactNumber,jdbcType=VARCHAR},
- SUPPLIER_FAX = #{supplierFax,jdbcType=VARCHAR},
- SUPPLIER_ACCOUNT = #{supplierAccount,jdbcType=VARCHAR},
- SUPPLIER_ACCOUNT_BLANK = #{supplierAccountBlank,jdbcType=VARCHAR},
- SUPPLIER_DUTY_PARAGRAPH = #{supplierDutyParagraph,jdbcType=VARCHAR},
- SUPPLIER_POSTAL_CODE = #{supplierPostalCode,jdbcType=VARCHAR},
- SUPPLIER_REGISTER_CAPITAL = #{supplierRegisterCapital,jdbcType=VARCHAR},
- SUPPLIERBUSINESS_SCOPE = #{supplierbusinessScope,jdbcType=VARCHAR},
- SUPPLIER_COMPANY_STATUS = #{supplierCompanyStatus,jdbcType=VARCHAR},
- SUPPLIER_OPERATION_PERIOD = #{supplierOperationPeriod,jdbcType=VARCHAR},
- SUPPLIER_REGISTER_DATE = #{supplierRegisterDate,jdbcType=TIMESTAMP},
- SUPPLIER_REGISTER_ORGANIZATION = #{supplierRegisterOrganization,jdbcType=VARCHAR},
- SUPPLIER_REGISTER_APTITUDES = #{supplierRegisterAptitudes,jdbcType=VARCHAR},
- SUPPLIER_CREDENTIAL = #{supplierCredential,jdbcType=VARCHAR},
- SUPPLIER_CONTACTS_NAME = #{supplierContactsName,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},
- SUPPLIER_BUSINESS_LICENSE = #{supplierBusinessLicense,jdbcType=BLOB},
- SUPPLIER_BUSINESS_ABLELICENSE = #{supplierBusinessAblelicense,jdbcType=BLOB},
- DELETED = #{deleted,jdbcType=DECIMAL}
- where SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL}
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsSupplier">
- update RMS_SUPPLIER
- <set>
- <if test="supplierName != null">
- SUPPLIER_NAME = #{supplierName,jdbcType=VARCHAR},
- </if>
- <if test="supplierAbbreviation != null">
- SUPPLIER_ABBREVIATION = #{supplierAbbreviation,jdbcType=VARCHAR},
- </if>
- <if test="supplierAddress != null">
- SUPPLIER_ADDRESS = #{supplierAddress,jdbcType=VARCHAR},
- </if>
- <if test="supplierLegalRepresentative != null">
- SUPPLIER_LEGAL_REPRESENTATIVE = #{supplierLegalRepresentative,jdbcType=VARCHAR},
- </if>
- <if test="supplierRegisterNo != null">
- SUPPLIER_REGISTER_NO = #{supplierRegisterNo,jdbcType=VARCHAR},
- </if>
- <if test="supplierAgent != null">
- SUPPLIER_AGENT = #{supplierAgent,jdbcType=VARCHAR},
- </if>
- <if test="supplierContactNumber != null">
- SUPPLIER_CONTACT_NUMBER = #{supplierContactNumber,jdbcType=VARCHAR},
- </if>
- <if test="supplierFax != null">
- SUPPLIER_FAX = #{supplierFax,jdbcType=VARCHAR},
- </if>
- <if test="supplierAccount != null">
- SUPPLIER_ACCOUNT = #{supplierAccount,jdbcType=VARCHAR},
- </if>
- <if test="supplierAccountBlank != null">
- SUPPLIER_ACCOUNT_BLANK = #{supplierAccountBlank,jdbcType=VARCHAR},
- </if>
- <if test="supplierDutyParagraph != null">
- SUPPLIER_DUTY_PARAGRAPH = #{supplierDutyParagraph,jdbcType=VARCHAR},
- </if>
- <if test="supplierPostalCode != null">
- SUPPLIER_POSTAL_CODE = #{supplierPostalCode,jdbcType=VARCHAR},
- </if>
- <if test="supplierRegisterCapital != null">
- SUPPLIER_REGISTER_CAPITAL = #{supplierRegisterCapital,jdbcType=VARCHAR},
- </if>
- <if test="supplierbusinessScope != null">
- SUPPLIERBUSINESS_SCOPE = #{supplierbusinessScope,jdbcType=VARCHAR},
- </if>
- <if test="supplierCompanyStatus != null">
- SUPPLIER_COMPANY_STATUS = #{supplierCompanyStatus,jdbcType=VARCHAR},
- </if>
- <if test="supplierOperationPeriod != null">
- SUPPLIER_OPERATION_PERIOD = #{supplierOperationPeriod,jdbcType=VARCHAR},
- </if>
- <if test="supplierRegisterDate != null">
- SUPPLIER_REGISTER_DATE = #{supplierRegisterDate,jdbcType=TIMESTAMP},
- </if>
- <if test="supplierRegisterOrganization != null">
- SUPPLIER_REGISTER_ORGANIZATION = #{supplierRegisterOrganization,jdbcType=VARCHAR},
- </if>
- <if test="supplierRegisterAptitudes != null">
- SUPPLIER_REGISTER_APTITUDES = #{supplierRegisterAptitudes,jdbcType=VARCHAR},
- </if>
- <if test="supplierCredential != null">
- SUPPLIER_CREDENTIAL = #{supplierCredential,jdbcType=VARCHAR},
- </if>
- <if test="supplierContactsName != null">
- SUPPLIER_CONTACTS_NAME = #{supplierContactsName,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="supplierBusinessLicense != null">
- SUPPLIER_BUSINESS_LICENSE = #{supplierBusinessLicense,jdbcType=BLOB},
- </if>
- <if test="supplierBusinessAblelicense != null">
- SUPPLIER_BUSINESS_ABLELICENSE = #{supplierBusinessAblelicense,jdbcType=BLOB},
- </if>
- <if test="deleted != null">
- DELETED = #{deleted,jdbcType=DECIMAL},
- </if>
- </set>
- where SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL}
- </update>
- <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
- <include refid="select" />
- where SUPPLIER_ID = #{supplierId,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_SUPPLIER
- (SUPPLIER_ID,
- SUPPLIER_NAME, SUPPLIER_ABBREVIATION,
- SUPPLIER_ADDRESS, SUPPLIER_LEGAL_REPRESENTATIVE,
- SUPPLIER_REGISTER_NO, SUPPLIER_AGENT,
- SUPPLIER_CONTACT_NUMBER, SUPPLIER_FAX,
- SUPPLIER_ACCOUNT, SUPPLIER_ACCOUNT_BLANK,
- SUPPLIER_DUTY_PARAGRAPH, SUPPLIER_POSTAL_CODE,
- SUPPLIER_REGISTER_CAPITAL, SUPPLIERBUSINESS_SCOPE,
- SUPPLIER_COMPANY_STATUS, SUPPLIER_OPERATION_PERIOD,
- SUPPLIER_REGISTER_DATE, SUPPLIER_REGISTER_ORGANIZATION,
- SUPPLIER_REGISTER_APTITUDES, SUPPLIER_CREDENTIAL,
- SUPPLIER_CONTACTS_NAME, INSERT_USERNAME,
- INSERT_TIME, UPDATE_USERNAME,
- UPDATE_TIME, INSERT_UPDATE_REMARK,
- SUPPLIER_BUSINESS_LICENSE, SUPPLIER_BUSINESS_ABLELICENSE,DELETED
- )
- ( <foreach collection="list" item="item" separator="union all">
- select
- #{item.supplierId,jdbcType=DECIMAL},
- #{item.supplierName,jdbcType=VARCHAR}, #{item.supplierAbbreviation,jdbcType=VARCHAR},
- #{item.supplierAddress,jdbcType=VARCHAR}, #{item.supplierLegalRepresentative,jdbcType=VARCHAR},
- #{item.supplierRegisterNo,jdbcType=VARCHAR}, #{item.supplierAgent,jdbcType=VARCHAR},
- #{item.supplierContactNumber,jdbcType=VARCHAR}, #{item.supplierFax,jdbcType=VARCHAR},
- #{item.supplierAccount,jdbcType=VARCHAR}, #{item.supplierAccountBlank,jdbcType=VARCHAR},
- #{item.supplierDutyParagraph,jdbcType=VARCHAR}, #{item.supplierPostalCode,jdbcType=VARCHAR},
- #{item.supplierRegisterCapital,jdbcType=VARCHAR}, #{item.supplierbusinessScope,jdbcType=VARCHAR},
- #{item.supplierCompanyStatus,jdbcType=VARCHAR}, #{item.supplierOperationPeriod,jdbcType=VARCHAR},
- #{item.supplierRegisterDate,jdbcType=TIMESTAMP}, #{item.supplierRegisterOrganization,jdbcType=VARCHAR},
- #{item.supplierRegisterAptitudes,jdbcType=VARCHAR}, #{item.supplierCredential,jdbcType=VARCHAR},
- #{item.supplierContactsName,jdbcType=VARCHAR}, #{item.insertUsername,jdbcType=VARCHAR},
- #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
- #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
- #{item.supplierBusinessLicense,jdbcType=BLOB}, #{item.supplierBusinessAblelicense,jdbcType=BLOB}, #{item.deleted,jdbcType=DECIMAL
- from dual
- </foreach> )
- </insert>
- <update id="batchUpdate" parameterType="java.util.List">
- update RMS_SUPPLIER
- set
- SUPPLIER_ID=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierId,jdbcType=DECIMAL}
- </foreach>
- ,SUPPLIER_NAME=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierName,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_ABBREVIATION=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierAbbreviation,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_ADDRESS=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierAddress,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_LEGAL_REPRESENTATIVE=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierLegalRepresentative,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_REGISTER_NO=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierRegisterNo,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_AGENT=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierAgent,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_CONTACT_NUMBER=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierContactNumber,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_FAX=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierFax,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_ACCOUNT=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierAccount,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_ACCOUNT_BLANK=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierAccountBlank,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_DUTY_PARAGRAPH=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierDutyParagraph,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_POSTAL_CODE=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierPostalCode,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_REGISTER_CAPITAL=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierRegisterCapital,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIERBUSINESS_SCOPE=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierbusinessScope,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_COMPANY_STATUS=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierCompanyStatus,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_OPERATION_PERIOD=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierOperationPeriod,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_REGISTER_DATE=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierRegisterDate,jdbcType=TIMESTAMP}
- </foreach>
- ,SUPPLIER_REGISTER_ORGANIZATION=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierRegisterOrganization,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_REGISTER_APTITUDES=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierRegisterAptitudes,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_CREDENTIAL=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierCredential,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_CONTACTS_NAME=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierContactsName,jdbcType=VARCHAR}
- </foreach>
- ,INSERT_USERNAME=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
- </foreach>
- ,INSERT_TIME=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
- </foreach>
- ,UPDATE_USERNAME=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
- </foreach>
- ,UPDATE_TIME=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
- </foreach>
- ,INSERT_UPDATE_REMARK=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
- </foreach>
- ,SUPPLIER_BUSINESS_LICENSE=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierBusinessLicense,jdbcType=BLOB}
- </foreach>
- ,SUPPLIER_BUSINESS_ABLELICENSE=
- <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
- when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierBusinessAblelicense,jdbcType=BLOB}
- </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 SUPPLIER_ID in
- <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
- #{item.supplierId,jdbcType=DECIMAL}
- </foreach>
- </update>
- <delete id="batchDelete" parameterType="java.util.List">
- delete from RMS_SUPPLIER
- where SUPPLIER_ID in
- <foreach close=")" collection="list" item="id" open="(" separator=",">
- #{id}
- </foreach>
- </delete>
- <!-- 友情提示!!!-->
- <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
- <!-- 展示供应商信息 -->
- <select id="getSupplierList" parameterType="java.util.Map" resultType="java.util.Map">
- SELECT *
- FROM (
- SELECT
- RS.SUPPLIER_ID AS "supplierId",
- RS.SUPPLIER_NAME AS "supplierName",
- RS.SUPPLIER_ADDRESS AS "supplierAddress",
- RS.SUPPLIER_REGISTER_DATE AS "supplierRegisterDate",
- RS.SUPPLIER_CONTACTS_NAME AS "supplierContactsName",
- RS.SUPPLIER_CONTACT_NUMBER AS "supplierContactNumber"
- FROM RMS_SUPPLIER RS
- WHERE RS.DELETED != 1
- ORDER BY RS.INSERT_TIME DESC
- )
- <where>
- <if test="supplierId!= null">
- and
- <foreach collection="supplierId" item="item" open="(" separator="," close=")">
- "supplierId" in #{item}
- </foreach>
- </if>
- <if test="supplierName!= null">
- and
- <foreach collection="supplierName" item="item" open="(" separator="," close=")">
- "supplierName" in #{item}
- </foreach>
- </if>
- <if test="supplierAddress!= null">
- and
- <foreach collection="supplierAddress" item="item" open="(" separator="," close=")">
- "supplierAddress" in #{item}
- </foreach>
- </if>
- <if test="supplierRegisterDate!= null">
- and
- <foreach collection="supplierRegisterDate" item="item" open="(" separator="," close=")">
- "supplierRegisterDate" in to_date('${item}','yyyy-mm-dd hh24:mi:ss')
- </foreach>
- </if>
- <if test="supplierContactsName!= null">
- and
- <foreach collection="supplierContactsName" item="item" open="(" separator="," close=")">
- "supplierContactsName" in #{item}
- </foreach>
- </if>
- <if test="supplierContactNumber!= null">
- and
- <foreach collection="supplierContactNumber" item="item" open="(" separator="," close=")">
- "supplierContactNumber" in #{item}
- </foreach>
- </if>
- </where>
- </select>
- <!-- 根据id值展示供应商信息-->
- <select id="selectSupplierById" resultType="java.util.LinkedHashMap">
- SELECT
- RS.SUPPLIER_ID AS "supplierId",
- RS.SUPPLIER_DUTY_PARAGRAPH AS "supplierDutyParagraph",
- RS.SUPPLIER_NAME AS "supplierName",
- RS.SUPPLIER_ADDRESS AS "supplierAddress",
- RS.SUPPLIER_REGISTER_DATE AS "supplierRegisterDate",
- RS.SUPPLIER_CONTACTS_NAME AS "supplierContactsName",
- RS.SUPPLIER_CONTACT_NUMBER AS "supplierContactNumber"
- FROM RMS_SUPPLIER RS
- WHERE RS.SUPPLIER_ID=#{id}
- </select>
- </mapper>
|