| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680 |
- <?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.goafanti.common.dao.OrganizationIdentityMapper">
- <resultMap type="com.goafanti.common.model.OrganizationIdentity" id="OrganizationIdentityMap">
- <result property="id" column="id" jdbcType="VARCHAR"/>
- <result property="uid" column="uid" jdbcType="VARCHAR"/>
- <result property="contacts" column="contacts" jdbcType="VARCHAR"/>
- <result property="contactMobile" column="contact_mobile" jdbcType="VARCHAR"/>
- <result property="fixedTel" column="fixed_tel" jdbcType="VARCHAR"/>
- <result property="qq" column="qq" jdbcType="VARCHAR"/>
- <result property="postalAddress" column="postal_address" jdbcType="VARCHAR"/>
- <result property="postcode" column="postcode" jdbcType="VARCHAR"/>
- <result property="unitName" column="unit_name" jdbcType="VARCHAR"/>
- <result property="registeredCapital" column="registered_capital" jdbcType="VARCHAR"/>
- <result property="licenceNumber" column="licence_number" jdbcType="VARCHAR"/>
- <result property="licenceProvince" column="licence_province" jdbcType="INTEGER"/>
- <result property="licenceCity" column="licence_city" jdbcType="INTEGER"/>
- <result property="licenceArea" column="licence_area" jdbcType="INTEGER"/>
- <result property="licenceScanningUrl" column="licence_scanning_url" jdbcType="VARCHAR"/>
- <result property="orgCode" column="org_code" jdbcType="VARCHAR"/>
- <result property="orgCodeUrl" column="org_code_url" jdbcType="VARCHAR"/>
- <result property="bankAccount" column="bank_account" jdbcType="VARCHAR"/>
- <result property="banks" column="banks" jdbcType="VARCHAR"/>
- <result property="bankBranch" column="bank_branch" jdbcType="VARCHAR"/>
- <result property="bankCardNumber" column="bank_card_number" jdbcType="VARCHAR"/>
- <result property="validationAmount" column="validation_amount" jdbcType="VARCHAR"/>
- <result property="identityType" column="identity_type" jdbcType="INTEGER"/>
- <result property="locationProvince" column="location_province" jdbcType="INTEGER"/>
- <result property="locationCity" column="location_city" jdbcType="INTEGER"/>
- <result property="locationArea" column="location_area" jdbcType="INTEGER"/>
- <result property="legalPerson" column="legal_person" jdbcType="VARCHAR"/>
- <result property="legalPersonIdCard" column="legal_person_id_card" jdbcType="VARCHAR"/>
- <result property="lastYearTaxReportUrl" column="last_year_tax_report_url" jdbcType="VARCHAR"/>
- <result property="auditStatus" column="audit_status" jdbcType="INTEGER"/>
- <result property="process" column="process" jdbcType="INTEGER"/>
- <result property="wrongCount" column="wrong_count" jdbcType="INTEGER"/>
- <result property="paymentDate" column="payment_date" jdbcType="TIMESTAMP"/>
- <result property="listed" column="listed" jdbcType="INTEGER"/>
- <result property="listedDate" column="listed_date" jdbcType="TIMESTAMP"/>
- <result property="listedType" column="listed_type" jdbcType="INTEGER"/>
- <result property="stockCode" column="stock_code" jdbcType="VARCHAR"/>
- <result property="certificateNumber" column="certificate_number" jdbcType="VARCHAR"/>
- <result property="issuingDate" column="issuing_date" jdbcType="TIMESTAMP"/>
- <result property="cogContacts" column="cog_contacts" jdbcType="INTEGER"/>
- <result property="techPrincipal" column="tech_principal" jdbcType="VARCHAR"/>
- <result property="contactsFixedTel" column="contacts_fixed_tel" jdbcType="VARCHAR"/>
- <result property="contactsFax" column="contacts_fax" jdbcType="VARCHAR"/>
- <result property="legalPersonTel" column="legal_person_tel" jdbcType="VARCHAR"/>
- <result property="legalPersonFax" column="legal_person_fax" jdbcType="VARCHAR"/>
- <result property="legalPersonEmail" column="legal_person_email" jdbcType="VARCHAR"/>
- <result property="registrationTime" column="registration_time" jdbcType="TIMESTAMP"/>
- <result property="ratepayCode" column="ratepay_code" jdbcType="VARCHAR"/>
- <result property="industry" column="industry" jdbcType="VARCHAR"/>
- <result property="enterpriseScale" column="enterprise_scale" jdbcType="VARCHAR"/>
- <result property="registerType" column="register_type" jdbcType="VARCHAR"/>
- <result property="foreignInvestment" column="foreign_investment" jdbcType="VARCHAR"/>
- <result property="field" column="field" jdbcType="VARCHAR"/>
- <result property="taxAuthority" column="tax_authority" jdbcType="INTEGER"/>
- <result property="ratepayMethod" column="ratepay_method" jdbcType="INTEGER"/>
- <result property="highTechZone" column="high_tech_zone" jdbcType="INTEGER"/>
- <result property="riskInvestment" column="risk_investment" jdbcType="INTEGER"/>
- <result property="businessScope" column="business_scope" jdbcType="VARCHAR"/>
- <result property="highTechName" column="high_tech_name" jdbcType="VARCHAR"/>
- <result property="patentProryStatementUrl" column="patent_prory_statement_url" jdbcType="VARCHAR"/>
- <result property="international" column="international" jdbcType="INTEGER"/>
- <result property="reviewInstructions" column="review_instructions" jdbcType="VARCHAR"/>
- <result property="investment" column="investment" jdbcType="INTEGER"/>
- <result property="yearSalesAmount" column="year_sales_amount" jdbcType="VARCHAR"/>
- <result property="lastYearResearchAmount" column="last_year_research_amount" jdbcType="VARCHAR"/>
- <result property="assets" column="assets" jdbcType="VARCHAR"/>
- <result property="qualification" column="qualification" jdbcType="VARCHAR"/>
- <result property="cooperationSituation" column="cooperation_situation" jdbcType="VARCHAR"/>
- <result property="honorPicture" column="honor_picture" jdbcType="VARCHAR"/>
- <result property="salesTarget" column="sales_target" jdbcType="VARCHAR"/>
- <result property="intendedProject" column="intended_project" jdbcType="VARCHAR"/>
- <result property="contactsDep" column="contacts_dep" jdbcType="VARCHAR"/>
- <result property="contactsPosition" column="contacts_position" jdbcType="VARCHAR"/>
- </resultMap>
- <sql id="OrganizationIdentityAllSql">
- id, uid, contacts, contact_mobile, fixed_tel, qq, postal_address, postcode, unit_name, registered_capital, licence_number, licence_province, licence_city, licence_area, licence_scanning_url, org_code, org_code_url, bank_account, banks, bank_branch, bank_card_number, validation_amount, identity_type, location_province, location_city, location_area, legal_person, legal_person_id_card, last_year_tax_report_url, audit_status, process, wrong_count, payment_date, listed, listed_date, listed_type, stock_code, certificate_number, issuing_date, cog_contacts, tech_principal, contacts_fixed_tel, contacts_fax, legal_person_tel, legal_person_fax, legal_person_email, registration_time, ratepay_code, industry, enterprise_scale, register_type, foreign_investment, field, tax_authority, ratepay_method, high_tech_zone, risk_investment, business_scope, high_tech_name, patent_prory_statement_url, international, review_instructions, investment, year_sales_amount, last_year_research_amount, assets, qualification, cooperation_situation, honor_picture, sales_target, intended_project, contacts_dep, contacts_position
- </sql>
- <!--查询单个-->
- <select id="selectById" resultMap="OrganizationIdentityMap">
- select
- <include refid="OrganizationIdentityAllSql"/>
- from organization_identity
- where id = #{id}
- </select>
- <!--新增所有列-->
- <insert id="insert" >
- insert into organization_identity(id,uid, contacts, contact_mobile, fixed_tel, qq, postal_address, postcode,
- unit_name, registered_capital, licence_number, licence_province, licence_city,
- licence_area, licence_scanning_url, org_code, org_code_url, bank_account,
- banks, bank_branch, bank_card_number, validation_amount, identity_type,
- location_province, location_city, location_area, legal_person,
- legal_person_id_card, last_year_tax_report_url, audit_status, process,
- wrong_count, payment_date, listed, listed_date, listed_type, stock_code,
- certificate_number, issuing_date, cog_contacts, tech_principal,
- contacts_fixed_tel, contacts_fax, legal_person_tel, legal_person_fax,
- legal_person_email, registration_time, ratepay_code, industry,
- enterprise_scale, register_type, foreign_investment, field, tax_authority,
- ratepay_method, high_tech_zone, risk_investment, business_scope,
- high_tech_name, patent_prory_statement_url, international,
- review_instructions, investment, year_sales_amount, last_year_research_amount,
- assets, qualification, cooperation_situation, honor_picture, sales_target,
- intended_project, contacts_dep, contacts_position)
- values (#{id},#{uid}, #{contacts}, #{contactMobile}, #{fixedTel}, #{qq}, #{postalAddress}, #{postcode}, #{unitName},
- #{registeredCapital}, #{licenceNumber}, #{licenceProvince}, #{licenceCity}, #{licenceArea},
- #{licenceScanningUrl}, #{orgCode}, #{orgCodeUrl}, #{bankAccount}, #{banks}, #{bankBranch},
- #{bankCardNumber}, #{validationAmount}, #{identityType}, #{locationProvince}, #{locationCity},
- #{locationArea}, #{legalPerson}, #{legalPersonIdCard}, #{lastYearTaxReportUrl}, #{auditStatus},
- #{process}, #{wrongCount}, #{paymentDate}, #{listed}, #{listedDate}, #{listedType}, #{stockCode},
- #{certificateNumber}, #{issuingDate}, #{cogContacts}, #{techPrincipal}, #{contactsFixedTel},
- #{contactsFax}, #{legalPersonTel}, #{legalPersonFax}, #{legalPersonEmail}, #{registrationTime},
- #{ratepayCode}, #{industry}, #{enterpriseScale}, #{registerType}, #{foreignInvestment}, #{field},
- #{taxAuthority}, #{ratepayMethod}, #{highTechZone}, #{riskInvestment}, #{businessScope},
- #{highTechName}, #{patentProryStatementUrl}, #{international}, #{reviewInstructions}, #{investment},
- #{yearSalesAmount}, #{lastYearResearchAmount}, #{assets}, #{qualification}, #{cooperationSituation},
- #{honorPicture}, #{salesTarget}, #{intendedProject}, #{contactsDep}, #{contactsPosition})
- </insert>
- <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
- insert into organization_identity(uid, contacts, contact_mobile, fixed_tel, qq, postal_address, postcode,
- unit_name, registered_capital, licence_number, licence_province, licence_city, licence_area,
- licence_scanning_url, org_code, org_code_url, bank_account, banks, bank_branch, bank_card_number,
- validation_amount, identity_type, location_province, location_city, location_area, legal_person,
- legal_person_id_card, last_year_tax_report_url, audit_status, process, wrong_count, payment_date, listed,
- listed_date, listed_type, stock_code, certificate_number, issuing_date, cog_contacts, tech_principal,
- contacts_fixed_tel, contacts_fax, legal_person_tel, legal_person_fax, legal_person_email, registration_time,
- ratepay_code, industry, enterprise_scale, register_type, foreign_investment, field, tax_authority,
- ratepay_method, high_tech_zone, risk_investment, business_scope, high_tech_name, patent_prory_statement_url,
- international, review_instructions, investment, year_sales_amount, last_year_research_amount, assets,
- qualification, cooperation_situation, honor_picture, sales_target, intended_project, contacts_dep,
- contacts_position)
- values
- <foreach collection="entities" item="entity" separator=",">
- (#{entity.uid}, #{entity.contacts}, #{entity.contactMobile}, #{entity.fixedTel}, #{entity.qq},
- #{entity.postalAddress}, #{entity.postcode}, #{entity.unitName}, #{entity.registeredCapital},
- #{entity.licenceNumber}, #{entity.licenceProvince}, #{entity.licenceCity}, #{entity.licenceArea},
- #{entity.licenceScanningUrl}, #{entity.orgCode}, #{entity.orgCodeUrl}, #{entity.bankAccount},
- #{entity.banks}, #{entity.bankBranch}, #{entity.bankCardNumber}, #{entity.validationAmount},
- #{entity.identityType}, #{entity.locationProvince}, #{entity.locationCity}, #{entity.locationArea},
- #{entity.legalPerson}, #{entity.legalPersonIdCard}, #{entity.lastYearTaxReportUrl}, #{entity.auditStatus},
- #{entity.process}, #{entity.wrongCount}, #{entity.paymentDate}, #{entity.listed}, #{entity.listedDate},
- #{entity.listedType}, #{entity.stockCode}, #{entity.certificateNumber}, #{entity.issuingDate},
- #{entity.cogContacts}, #{entity.techPrincipal}, #{entity.contactsFixedTel}, #{entity.contactsFax},
- #{entity.legalPersonTel}, #{entity.legalPersonFax}, #{entity.legalPersonEmail}, #{entity.registrationTime},
- #{entity.ratepayCode}, #{entity.industry}, #{entity.enterpriseScale}, #{entity.registerType},
- #{entity.foreignInvestment}, #{entity.field}, #{entity.taxAuthority}, #{entity.ratepayMethod},
- #{entity.highTechZone}, #{entity.riskInvestment}, #{entity.businessScope}, #{entity.highTechName},
- #{entity.patentProryStatementUrl}, #{entity.international}, #{entity.reviewInstructions},
- #{entity.investment}, #{entity.yearSalesAmount}, #{entity.lastYearResearchAmount}, #{entity.assets},
- #{entity.qualification}, #{entity.cooperationSituation}, #{entity.honorPicture}, #{entity.salesTarget},
- #{entity.intendedProject}, #{entity.contactsDep}, #{entity.contactsPosition})
- </foreach>
- on duplicate key update
- uid = values(uid),
- contacts = values(contacts),
- contact_mobile = values(contact_mobile),
- fixed_tel = values(fixed_tel),
- qq = values(qq),
- postal_address = values(postal_address),
- postcode = values(postcode),
- unit_name = values(unit_name),
- registered_capital = values(registered_capital),
- licence_number = values(licence_number),
- licence_province = values(licence_province),
- licence_city = values(licence_city),
- licence_area = values(licence_area),
- licence_scanning_url = values(licence_scanning_url),
- org_code = values(org_code),
- org_code_url = values(org_code_url),
- bank_account = values(bank_account),
- banks = values(banks),
- bank_branch = values(bank_branch),
- bank_card_number = values(bank_card_number),
- validation_amount = values(validation_amount),
- identity_type = values(identity_type),
- location_province = values(location_province),
- location_city = values(location_city),
- location_area = values(location_area),
- legal_person = values(legal_person),
- legal_person_id_card = values(legal_person_id_card),
- last_year_tax_report_url = values(last_year_tax_report_url),
- audit_status = values(audit_status),
- process = values(process),
- wrong_count = values(wrong_count),
- payment_date = values(payment_date),
- listed = values(listed),
- listed_date = values(listed_date),
- listed_type = values(listed_type),
- stock_code = values(stock_code),
- certificate_number = values(certificate_number),
- issuing_date = values(issuing_date),
- cog_contacts = values(cog_contacts),
- tech_principal = values(tech_principal),
- contacts_fixed_tel = values(contacts_fixed_tel),
- contacts_fax = values(contacts_fax),
- legal_person_tel = values(legal_person_tel),
- legal_person_fax = values(legal_person_fax),
- legal_person_email = values(legal_person_email),
- registration_time = values(registration_time),
- ratepay_code = values(ratepay_code),
- industry = values(industry),
- enterprise_scale = values(enterprise_scale),
- register_type = values(register_type),
- foreign_investment = values(foreign_investment),
- field = values(field),
- tax_authority = values(tax_authority),
- ratepay_method = values(ratepay_method),
- high_tech_zone = values(high_tech_zone),
- risk_investment = values(risk_investment),
- business_scope = values(business_scope),
- high_tech_name = values(high_tech_name),
- patent_prory_statement_url = values(patent_prory_statement_url),
- international = values(international),
- review_instructions = values(review_instructions),
- investment = values(investment),
- year_sales_amount = values(year_sales_amount),
- last_year_research_amount = values(last_year_research_amount),
- assets = values(assets),
- qualification = values(qualification),
- cooperation_situation = values(cooperation_situation),
- honor_picture = values(honor_picture),
- sales_target = values(sales_target),
- intended_project = values(intended_project),
- contacts_dep = values(contacts_dep),
- contacts_position = values(contacts_position)
- </insert>
- <!--通过主键修改数据-->
- <update id="update">
- update organization_identity
- <set>
- <if test="uid != null and uid != ''">
- uid = #{uid},
- </if>
- <if test="contacts != null and contacts != ''">
- contacts = #{contacts},
- </if>
- <if test="contactMobile != null and contactMobile != ''">
- contact_mobile = #{contactMobile},
- </if>
- <if test="fixedTel != null and fixedTel != ''">
- fixed_tel = #{fixedTel},
- </if>
- <if test="qq != null and qq != ''">
- qq = #{qq},
- </if>
- <if test="postalAddress != null and postalAddress != ''">
- postal_address = #{postalAddress},
- </if>
- <if test="postcode != null and postcode != ''">
- postcode = #{postcode},
- </if>
- <if test="unitName != null and unitName != ''">
- unit_name = #{unitName},
- </if>
- <if test="registeredCapital != null">
- registered_capital = #{registeredCapital},
- </if>
- <if test="licenceNumber != null and licenceNumber != ''">
- licence_number = #{licenceNumber},
- </if>
- <if test="licenceProvince != null">
- licence_province = #{licenceProvince},
- </if>
- <if test="licenceCity != null">
- licence_city = #{licenceCity},
- </if>
- <if test="licenceArea != null">
- licence_area = #{licenceArea},
- </if>
- <if test="licenceScanningUrl != null and licenceScanningUrl != ''">
- licence_scanning_url = #{licenceScanningUrl},
- </if>
- <if test="orgCode != null and orgCode != ''">
- org_code = #{orgCode},
- </if>
- <if test="orgCodeUrl != null and orgCodeUrl != ''">
- org_code_url = #{orgCodeUrl},
- </if>
- <if test="bankAccount != null and bankAccount != ''">
- bank_account = #{bankAccount},
- </if>
- <if test="banks != null and banks != ''">
- banks = #{banks},
- </if>
- <if test="bankBranch != null and bankBranch != ''">
- bank_branch = #{bankBranch},
- </if>
- <if test="bankCardNumber != null and bankCardNumber != ''">
- bank_card_number = #{bankCardNumber},
- </if>
- <if test="validationAmount != null">
- validation_amount = #{validationAmount},
- </if>
- <if test="identityType != null">
- identity_type = #{identityType},
- </if>
- <if test="locationProvince != null">
- location_province = #{locationProvince},
- </if>
- <if test="locationCity != null">
- location_city = #{locationCity},
- </if>
- <if test="locationArea != null">
- location_area = #{locationArea},
- </if>
- <if test="legalPerson != null and legalPerson != ''">
- legal_person = #{legalPerson},
- </if>
- <if test="legalPersonIdCard != null and legalPersonIdCard != ''">
- legal_person_id_card = #{legalPersonIdCard},
- </if>
- <if test="lastYearTaxReportUrl != null and lastYearTaxReportUrl != ''">
- last_year_tax_report_url = #{lastYearTaxReportUrl},
- </if>
- <if test="auditStatus != null">
- audit_status = #{auditStatus},
- </if>
- <if test="process != null">
- process = #{process},
- </if>
- <if test="wrongCount != null">
- wrong_count = #{wrongCount},
- </if>
- <if test="paymentDate != null">
- payment_date = #{paymentDate},
- </if>
- <if test="listed != null">
- listed = #{listed},
- </if>
- <if test="listedDate != null">
- listed_date = #{listedDate},
- </if>
- <if test="listedType != null">
- listed_type = #{listedType},
- </if>
- <if test="stockCode != null and stockCode != ''">
- stock_code = #{stockCode},
- </if>
- <if test="certificateNumber != null and certificateNumber != ''">
- certificate_number = #{certificateNumber},
- </if>
- <if test="issuingDate != null">
- issuing_date = #{issuingDate},
- </if>
- <if test="cogContacts != null">
- cog_contacts = #{cogContacts},
- </if>
- <if test="techPrincipal != null and techPrincipal != ''">
- tech_principal = #{techPrincipal},
- </if>
- <if test="contactsFixedTel != null and contactsFixedTel != ''">
- contacts_fixed_tel = #{contactsFixedTel},
- </if>
- <if test="contactsFax != null and contactsFax != ''">
- contacts_fax = #{contactsFax},
- </if>
- <if test="legalPersonTel != null and legalPersonTel != ''">
- legal_person_tel = #{legalPersonTel},
- </if>
- <if test="legalPersonFax != null and legalPersonFax != ''">
- legal_person_fax = #{legalPersonFax},
- </if>
- <if test="legalPersonEmail != null and legalPersonEmail != ''">
- legal_person_email = #{legalPersonEmail},
- </if>
- <if test="registrationTime != null">
- registration_time = #{registrationTime},
- </if>
- <if test="ratepayCode != null and ratepayCode != ''">
- ratepay_code = #{ratepayCode},
- </if>
- <if test="industry != null and industry != ''">
- industry = #{industry},
- </if>
- <if test="enterpriseScale != null and enterpriseScale != ''">
- enterprise_scale = #{enterpriseScale},
- </if>
- <if test="registerType != null and registerType != ''">
- register_type = #{registerType},
- </if>
- <if test="foreignInvestment != null and foreignInvestment != ''">
- foreign_investment = #{foreignInvestment},
- </if>
- <if test="field != null and field != ''">
- field = #{field},
- </if>
- <if test="taxAuthority != null">
- tax_authority = #{taxAuthority},
- </if>
- <if test="ratepayMethod != null">
- ratepay_method = #{ratepayMethod},
- </if>
- <if test="highTechZone != null">
- high_tech_zone = #{highTechZone},
- </if>
- <if test="riskInvestment != null">
- risk_investment = #{riskInvestment},
- </if>
- <if test="businessScope != null and businessScope != ''">
- business_scope = #{businessScope},
- </if>
- <if test="highTechName != null and highTechName != ''">
- high_tech_name = #{highTechName},
- </if>
- <if test="patentProryStatementUrl != null and patentProryStatementUrl != ''">
- patent_prory_statement_url = #{patentProryStatementUrl},
- </if>
- <if test="international != null">
- international = #{international},
- </if>
- <if test="reviewInstructions != null and reviewInstructions != ''">
- review_instructions = #{reviewInstructions},
- </if>
- <if test="investment != null">
- investment = #{investment},
- </if>
- <if test="yearSalesAmount != null">
- year_sales_amount = #{yearSalesAmount},
- </if>
- <if test="lastYearResearchAmount != null">
- last_year_research_amount = #{lastYearResearchAmount},
- </if>
- <if test="assets != null">
- assets = #{assets},
- </if>
- <if test="qualification != null and qualification != ''">
- qualification = #{qualification},
- </if>
- <if test="cooperationSituation != null and cooperationSituation != ''">
- cooperation_situation = #{cooperationSituation},
- </if>
- <if test="honorPicture != null and honorPicture != ''">
- honor_picture = #{honorPicture},
- </if>
- <if test="salesTarget != null and salesTarget != ''">
- sales_target = #{salesTarget},
- </if>
- <if test="intendedProject != null and intendedProject != ''">
- intended_project = #{intendedProject},
- </if>
- <if test="contactsDep != null and contactsDep != ''">
- contacts_dep = #{contactsDep},
- </if>
- <if test="contactsPosition != null and contactsPosition != ''">
- contacts_position = #{contactsPosition},
- </if>
- </set>
- where id = #{id}
- </update>
- <!--查询指定行数据-->
- <select id="findOrganizationIdentityList" resultMap="OrganizationIdentityMap">
- select
- <include refid="OrganizationIdentityAllSql"/>
- from organization_identity
- <where>
- <if test="id != null and id != ''">
- and id = #{id}
- </if>
- <if test="uid != null and uid != ''">
- and uid = #{uid}
- </if>
- <if test="contacts != null and contacts != ''">
- and contacts = #{contacts}
- </if>
- <if test="contactMobile != null and contactMobile != ''">
- and contact_mobile = #{contactMobile}
- </if>
- <if test="fixedTel != null and fixedTel != ''">
- and fixed_tel = #{fixedTel}
- </if>
- <if test="qq != null and qq != ''">
- and qq = #{qq}
- </if>
- <if test="postalAddress != null and postalAddress != ''">
- and postal_address = #{postalAddress}
- </if>
- <if test="postcode != null and postcode != ''">
- and postcode = #{postcode}
- </if>
- <if test="unitName != null and unitName != ''">
- and unit_name = #{unitName}
- </if>
- <if test="registeredCapital != null">
- and registered_capital = #{registeredCapital}
- </if>
- <if test="licenceNumber != null and licenceNumber != ''">
- and licence_number = #{licenceNumber}
- </if>
- <if test="licenceProvince != null">
- and licence_province = #{licenceProvince}
- </if>
- <if test="licenceCity != null">
- and licence_city = #{licenceCity}
- </if>
- <if test="licenceArea != null">
- and licence_area = #{licenceArea}
- </if>
- <if test="licenceScanningUrl != null and licenceScanningUrl != ''">
- and licence_scanning_url = #{licenceScanningUrl}
- </if>
- <if test="orgCode != null and orgCode != ''">
- and org_code = #{orgCode}
- </if>
- <if test="orgCodeUrl != null and orgCodeUrl != ''">
- and org_code_url = #{orgCodeUrl}
- </if>
- <if test="bankAccount != null and bankAccount != ''">
- and bank_account = #{bankAccount}
- </if>
- <if test="banks != null and banks != ''">
- and banks = #{banks}
- </if>
- <if test="bankBranch != null and bankBranch != ''">
- and bank_branch = #{bankBranch}
- </if>
- <if test="bankCardNumber != null and bankCardNumber != ''">
- and bank_card_number = #{bankCardNumber}
- </if>
- <if test="validationAmount != null">
- and validation_amount = #{validationAmount}
- </if>
- <if test="identityType != null">
- and identity_type = #{identityType}
- </if>
- <if test="locationProvince != null">
- and location_province = #{locationProvince}
- </if>
- <if test="locationCity != null">
- and location_city = #{locationCity}
- </if>
- <if test="locationArea != null">
- and location_area = #{locationArea}
- </if>
- <if test="legalPerson != null and legalPerson != ''">
- and legal_person = #{legalPerson}
- </if>
- <if test="legalPersonIdCard != null and legalPersonIdCard != ''">
- and legal_person_id_card = #{legalPersonIdCard}
- </if>
- <if test="lastYearTaxReportUrl != null and lastYearTaxReportUrl != ''">
- and last_year_tax_report_url = #{lastYearTaxReportUrl}
- </if>
- <if test="auditStatus != null">
- and audit_status = #{auditStatus}
- </if>
- <if test="process != null">
- and process = #{process}
- </if>
- <if test="wrongCount != null">
- and wrong_count = #{wrongCount}
- </if>
- <if test="paymentDate != null">
- and payment_date = #{paymentDate}
- </if>
- <if test="listed != null">
- and listed = #{listed}
- </if>
- <if test="listedDate != null">
- and listed_date = #{listedDate}
- </if>
- <if test="listedType != null">
- and listed_type = #{listedType}
- </if>
- <if test="stockCode != null and stockCode != ''">
- and stock_code = #{stockCode}
- </if>
- <if test="certificateNumber != null and certificateNumber != ''">
- and certificate_number = #{certificateNumber}
- </if>
- <if test="issuingDate != null">
- and issuing_date = #{issuingDate}
- </if>
- <if test="cogContacts != null">
- and cog_contacts = #{cogContacts}
- </if>
- <if test="techPrincipal != null and techPrincipal != ''">
- and tech_principal = #{techPrincipal}
- </if>
- <if test="contactsFixedTel != null and contactsFixedTel != ''">
- and contacts_fixed_tel = #{contactsFixedTel}
- </if>
- <if test="contactsFax != null and contactsFax != ''">
- and contacts_fax = #{contactsFax}
- </if>
- <if test="legalPersonTel != null and legalPersonTel != ''">
- and legal_person_tel = #{legalPersonTel}
- </if>
- <if test="legalPersonFax != null and legalPersonFax != ''">
- and legal_person_fax = #{legalPersonFax}
- </if>
- <if test="legalPersonEmail != null and legalPersonEmail != ''">
- and legal_person_email = #{legalPersonEmail}
- </if>
- <if test="registrationTime != null">
- and registration_time = #{registrationTime}
- </if>
- <if test="ratepayCode != null and ratepayCode != ''">
- and ratepay_code = #{ratepayCode}
- </if>
- <if test="industry != null and industry != ''">
- and industry = #{industry}
- </if>
- <if test="enterpriseScale != null and enterpriseScale != ''">
- and enterprise_scale = #{enterpriseScale}
- </if>
- <if test="registerType != null and registerType != ''">
- and register_type = #{registerType}
- </if>
- <if test="foreignInvestment != null and foreignInvestment != ''">
- and foreign_investment = #{foreignInvestment}
- </if>
- <if test="field != null and field != ''">
- and field = #{field}
- </if>
- <if test="taxAuthority != null">
- and tax_authority = #{taxAuthority}
- </if>
- <if test="ratepayMethod != null">
- and ratepay_method = #{ratepayMethod}
- </if>
- <if test="highTechZone != null">
- and high_tech_zone = #{highTechZone}
- </if>
- <if test="riskInvestment != null">
- and risk_investment = #{riskInvestment}
- </if>
- <if test="businessScope != null and businessScope != ''">
- and business_scope = #{businessScope}
- </if>
- <if test="highTechName != null and highTechName != ''">
- and high_tech_name = #{highTechName}
- </if>
- <if test="patentProryStatementUrl != null and patentProryStatementUrl != ''">
- and patent_prory_statement_url = #{patentProryStatementUrl}
- </if>
- <if test="international != null">
- and international = #{international}
- </if>
- <if test="reviewInstructions != null and reviewInstructions != ''">
- and review_instructions = #{reviewInstructions}
- </if>
- <if test="investment != null">
- and investment = #{investment}
- </if>
- <if test="yearSalesAmount != null">
- and year_sales_amount = #{yearSalesAmount}
- </if>
- <if test="lastYearResearchAmount != null">
- and last_year_research_amount = #{lastYearResearchAmount}
- </if>
- <if test="assets != null">
- and assets = #{assets}
- </if>
- <if test="qualification != null and qualification != ''">
- and qualification = #{qualification}
- </if>
- <if test="cooperationSituation != null and cooperationSituation != ''">
- and cooperation_situation = #{cooperationSituation}
- </if>
- <if test="honorPicture != null and honorPicture != ''">
- and honor_picture = #{honorPicture}
- </if>
- <if test="salesTarget != null and salesTarget != ''">
- and sales_target = #{salesTarget}
- </if>
- <if test="intendedProject != null and intendedProject != ''">
- and intended_project = #{intendedProject}
- </if>
- <if test="contactsDep != null and contactsDep != ''">
- and contacts_dep = #{contactsDep}
- </if>
- <if test="contactsPosition != null and contactsPosition != ''">
- and contacts_position = #{contactsPosition}
- </if>
- </where>
- <if test="page_sql != null">
- ${page_sql}
- </if>
- </select>
- <!--统计总行数-->
- <select id="findOrganizationIdentityCount" resultType="java.lang.Integer">
- select count(1)
- from organization_identity
- <where>
- <if test="id != null and id != ''">
- and id = #{id}
- </if>
- <if test="uid != null and uid != ''">
- and uid = #{uid}
- </if>
- <if test="contacts != null and contacts != ''">
- and contacts = #{contacts}
- </if>
- <if test="contactMobile != null and contactMobile != ''">
- and contact_mobile = #{contactMobile}
- </if>
- <if test="fixedTel != null and fixedTel != ''">
- and fixed_tel = #{fixedTel}
- </if>
- <if test="qq != null and qq != ''">
- and qq = #{qq}
- </if>
- <if test="postalAddress != null and postalAddress != ''">
- and postal_address = #{postalAddress}
- </if>
- <if test="postcode != null and postcode != ''">
- and postcode = #{postcode}
- </if>
- <if test="unitName != null and unitName != ''">
- and unit_name = #{unitName}
- </if>
- <if test="registeredCapital != null">
- and registered_capital = #{registeredCapital}
- </if>
- <if test="licenceNumber != null and licenceNumber != ''">
- and licence_number = #{licenceNumber}
- </if>
- <if test="licenceProvince != null">
- and licence_province = #{licenceProvince}
- </if>
- <if test="licenceCity != null">
- and licence_city = #{licenceCity}
- </if>
- <if test="licenceArea != null">
- and licence_area = #{licenceArea}
- </if>
- <if test="licenceScanningUrl != null and licenceScanningUrl != ''">
- and licence_scanning_url = #{licenceScanningUrl}
- </if>
- <if test="orgCode != null and orgCode != ''">
- and org_code = #{orgCode}
- </if>
- <if test="orgCodeUrl != null and orgCodeUrl != ''">
- and org_code_url = #{orgCodeUrl}
- </if>
- <if test="bankAccount != null and bankAccount != ''">
- and bank_account = #{bankAccount}
- </if>
- <if test="banks != null and banks != ''">
- and banks = #{banks}
- </if>
- <if test="bankBranch != null and bankBranch != ''">
- and bank_branch = #{bankBranch}
- </if>
- <if test="bankCardNumber != null and bankCardNumber != ''">
- and bank_card_number = #{bankCardNumber}
- </if>
- <if test="validationAmount != null">
- and validation_amount = #{validationAmount}
- </if>
- <if test="identityType != null">
- and identity_type = #{identityType}
- </if>
- <if test="locationProvince != null">
- and location_province = #{locationProvince}
- </if>
- <if test="locationCity != null">
- and location_city = #{locationCity}
- </if>
- <if test="locationArea != null">
- and location_area = #{locationArea}
- </if>
- <if test="legalPerson != null and legalPerson != ''">
- and legal_person = #{legalPerson}
- </if>
- <if test="legalPersonIdCard != null and legalPersonIdCard != ''">
- and legal_person_id_card = #{legalPersonIdCard}
- </if>
- <if test="lastYearTaxReportUrl != null and lastYearTaxReportUrl != ''">
- and last_year_tax_report_url = #{lastYearTaxReportUrl}
- </if>
- <if test="auditStatus != null">
- and audit_status = #{auditStatus}
- </if>
- <if test="process != null">
- and process = #{process}
- </if>
- <if test="wrongCount != null">
- and wrong_count = #{wrongCount}
- </if>
- <if test="paymentDate != null">
- and payment_date = #{paymentDate}
- </if>
- <if test="listed != null">
- and listed = #{listed}
- </if>
- <if test="listedDate != null">
- and listed_date = #{listedDate}
- </if>
- <if test="listedType != null">
- and listed_type = #{listedType}
- </if>
- <if test="stockCode != null and stockCode != ''">
- and stock_code = #{stockCode}
- </if>
- <if test="certificateNumber != null and certificateNumber != ''">
- and certificate_number = #{certificateNumber}
- </if>
- <if test="issuingDate != null">
- and issuing_date = #{issuingDate}
- </if>
- <if test="cogContacts != null">
- and cog_contacts = #{cogContacts}
- </if>
- <if test="techPrincipal != null and techPrincipal != ''">
- and tech_principal = #{techPrincipal}
- </if>
- <if test="contactsFixedTel != null and contactsFixedTel != ''">
- and contacts_fixed_tel = #{contactsFixedTel}
- </if>
- <if test="contactsFax != null and contactsFax != ''">
- and contacts_fax = #{contactsFax}
- </if>
- <if test="legalPersonTel != null and legalPersonTel != ''">
- and legal_person_tel = #{legalPersonTel}
- </if>
- <if test="legalPersonFax != null and legalPersonFax != ''">
- and legal_person_fax = #{legalPersonFax}
- </if>
- <if test="legalPersonEmail != null and legalPersonEmail != ''">
- and legal_person_email = #{legalPersonEmail}
- </if>
- <if test="registrationTime != null">
- and registration_time = #{registrationTime}
- </if>
- <if test="ratepayCode != null and ratepayCode != ''">
- and ratepay_code = #{ratepayCode}
- </if>
- <if test="industry != null and industry != ''">
- and industry = #{industry}
- </if>
- <if test="enterpriseScale != null and enterpriseScale != ''">
- and enterprise_scale = #{enterpriseScale}
- </if>
- <if test="registerType != null and registerType != ''">
- and register_type = #{registerType}
- </if>
- <if test="foreignInvestment != null and foreignInvestment != ''">
- and foreign_investment = #{foreignInvestment}
- </if>
- <if test="field != null and field != ''">
- and field = #{field}
- </if>
- <if test="taxAuthority != null">
- and tax_authority = #{taxAuthority}
- </if>
- <if test="ratepayMethod != null">
- and ratepay_method = #{ratepayMethod}
- </if>
- <if test="highTechZone != null">
- and high_tech_zone = #{highTechZone}
- </if>
- <if test="riskInvestment != null">
- and risk_investment = #{riskInvestment}
- </if>
- <if test="businessScope != null and businessScope != ''">
- and business_scope = #{businessScope}
- </if>
- <if test="highTechName != null and highTechName != ''">
- and high_tech_name = #{highTechName}
- </if>
- <if test="patentProryStatementUrl != null and patentProryStatementUrl != ''">
- and patent_prory_statement_url = #{patentProryStatementUrl}
- </if>
- <if test="international != null">
- and international = #{international}
- </if>
- <if test="reviewInstructions != null and reviewInstructions != ''">
- and review_instructions = #{reviewInstructions}
- </if>
- <if test="investment != null">
- and investment = #{investment}
- </if>
- <if test="yearSalesAmount != null">
- and year_sales_amount = #{yearSalesAmount}
- </if>
- <if test="lastYearResearchAmount != null">
- and last_year_research_amount = #{lastYearResearchAmount}
- </if>
- <if test="assets != null">
- and assets = #{assets}
- </if>
- <if test="qualification != null and qualification != ''">
- and qualification = #{qualification}
- </if>
- <if test="cooperationSituation != null and cooperationSituation != ''">
- and cooperation_situation = #{cooperationSituation}
- </if>
- <if test="honorPicture != null and honorPicture != ''">
- and honor_picture = #{honorPicture}
- </if>
- <if test="salesTarget != null and salesTarget != ''">
- and sales_target = #{salesTarget}
- </if>
- <if test="intendedProject != null and intendedProject != ''">
- and intended_project = #{intendedProject}
- </if>
- <if test="contactsDep != null and contactsDep != ''">
- and contacts_dep = #{contactsDep}
- </if>
- <if test="contactsPosition != null and contactsPosition != ''">
- and contacts_position = #{contactsPosition}
- </if>
- </where>
- </select>
- <!--通过主键删除-->
- <delete id="deleteById">
- delete
- from organization_identity
- where id = #{id}
- </delete>
- <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrganizationIdentity">
- update organization_identity
- <set>
- <if test="uid != null">
- `uid` = #{uid,jdbcType=VARCHAR},
- </if>
- <if test="contacts != null">
- contacts = #{contacts,jdbcType=VARCHAR},
- </if>
- <if test="contactMobile != null">
- contact_mobile = #{contactMobile,jdbcType=VARCHAR},
- </if>
- <if test="fixedTel != null">
- fixed_tel = #{fixedTel,jdbcType=VARCHAR},
- </if>
- <if test="qq != null">
- qq = #{qq,jdbcType=VARCHAR},
- </if>
- <if test="postalAddress != null">
- postal_address = #{postalAddress,jdbcType=VARCHAR},
- </if>
- <if test="postcode != null">
- postcode = #{postcode,jdbcType=VARCHAR},
- </if>
- <if test="unitName != null">
- unit_name = #{unitName,jdbcType=VARCHAR},
- </if>
- <if test="registeredCapital != null">
- registered_capital = #{registeredCapital,jdbcType=DECIMAL},
- </if>
- <if test="licenceNumber != null">
- licence_number = #{licenceNumber,jdbcType=VARCHAR},
- </if>
- <if test="licenceProvince != null">
- licence_province = #{licenceProvince,jdbcType=INTEGER},
- </if>
- <if test="licenceCity != null">
- licence_city = #{licenceCity,jdbcType=INTEGER},
- </if>
- <if test="licenceArea != null">
- licence_area = #{licenceArea,jdbcType=INTEGER},
- </if>
- <if test="licenceScanningUrl != null">
- licence_scanning_url = #{licenceScanningUrl,jdbcType=VARCHAR},
- </if>
- <if test="orgCode != null">
- org_code = #{orgCode,jdbcType=VARCHAR},
- </if>
- <if test="orgCodeUrl != null">
- org_code_url = #{orgCodeUrl,jdbcType=VARCHAR},
- </if>
- <if test="bankAccount != null">
- bank_account = #{bankAccount,jdbcType=VARCHAR},
- </if>
- <if test="banks != null">
- banks = #{banks,jdbcType=VARCHAR},
- </if>
- <if test="bankBranch != null">
- bank_branch = #{bankBranch,jdbcType=VARCHAR},
- </if>
- <if test="bankCardNumber != null">
- bank_card_number = #{bankCardNumber,jdbcType=VARCHAR},
- </if>
- <if test="validationAmount != null">
- validation_amount = #{validationAmount,jdbcType=DECIMAL},
- </if>
- <if test="identityType != null">
- identity_type = #{identityType,jdbcType=INTEGER},
- </if>
- <if test="locationProvince != null">
- location_province = #{locationProvince,jdbcType=INTEGER},
- </if>
- <if test="locationCity != null">
- location_city = #{locationCity,jdbcType=INTEGER},
- </if>
- <if test="locationArea != null">
- location_area = #{locationArea,jdbcType=INTEGER},
- </if>
- <if test="legalPerson != null">
- legal_person = #{legalPerson,jdbcType=VARCHAR},
- </if>
- <if test="legalPersonIdCard != null">
- legal_person_id_card = #{legalPersonIdCard,jdbcType=VARCHAR},
- </if>
- <if test="lastYearTaxReportUrl != null">
- last_year_tax_report_url = #{lastYearTaxReportUrl,jdbcType=VARCHAR},
- </if>
- <if test="auditStatus != null">
- audit_status = #{auditStatus,jdbcType=INTEGER},
- </if>
- <if test="process != null">
- `process` = #{process,jdbcType=INTEGER},
- </if>
- <if test="wrongCount != null">
- wrong_count = #{wrongCount,jdbcType=INTEGER},
- </if>
- <if test="paymentDate != null">
- payment_date = #{paymentDate,jdbcType=TIMESTAMP},
- </if>
- <if test="listed != null">
- listed = #{listed,jdbcType=INTEGER},
- </if>
- <if test="listedDate != null">
- listed_date = #{listedDate,jdbcType=TIMESTAMP},
- </if>
- <if test="listedType != null">
- listed_type = #{listedType,jdbcType=INTEGER},
- </if>
- <if test="stockCode != null">
- stock_code = #{stockCode,jdbcType=VARCHAR},
- </if>
- <if test="certificateNumber != null">
- certificate_number = #{certificateNumber,jdbcType=VARCHAR},
- </if>
- <if test="issuingDate != null">
- issuing_date = #{issuingDate,jdbcType=TIMESTAMP},
- </if>
- <if test="cogContacts != null">
- cog_contacts = #{cogContacts,jdbcType=INTEGER},
- </if>
- <if test="techPrincipal != null">
- tech_principal = #{techPrincipal,jdbcType=VARCHAR},
- </if>
- <if test="contactsFixedTel != null">
- contacts_fixed_tel = #{contactsFixedTel,jdbcType=VARCHAR},
- </if>
- <if test="contactsFax != null">
- contacts_fax = #{contactsFax,jdbcType=VARCHAR},
- </if>
- <if test="legalPersonTel != null">
- legal_person_tel = #{legalPersonTel,jdbcType=VARCHAR},
- </if>
- <if test="legalPersonFax != null">
- legal_person_fax = #{legalPersonFax,jdbcType=VARCHAR},
- </if>
- <if test="legalPersonEmail != null">
- legal_person_email = #{legalPersonEmail,jdbcType=VARCHAR},
- </if>
- <if test="registrationTime != null">
- registration_time = #{registrationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="ratepayCode != null">
- ratepay_code = #{ratepayCode,jdbcType=VARCHAR},
- </if>
- <if test="industry != null">
- industry = #{industry,jdbcType=INTEGER},
- </if>
- <if test="enterpriseScale != null">
- enterprise_scale = #{enterpriseScale,jdbcType=VARCHAR},
- </if>
- <if test="registerType != null">
- register_type = #{registerType,jdbcType=VARCHAR},
- </if>
- <if test="foreignInvestment != null">
- foreign_investment = #{foreignInvestment,jdbcType=VARCHAR},
- </if>
- <if test="field != null">
- field = #{field,jdbcType=VARCHAR},
- </if>
- <if test="taxAuthority != null">
- tax_authority = #{taxAuthority,jdbcType=INTEGER},
- </if>
- <if test="ratepayMethod != null">
- ratepay_method = #{ratepayMethod,jdbcType=INTEGER},
- </if>
- <if test="highTechZone != null">
- high_tech_zone = #{highTechZone,jdbcType=INTEGER},
- </if>
- <if test="riskInvestment != null">
- risk_investment = #{riskInvestment,jdbcType=INTEGER},
- </if>
- <if test="businessScope != null">
- business_scope = #{businessScope,jdbcType=VARCHAR},
- </if>
- <if test="highTechName != null">
- high_tech_name = #{highTechName,jdbcType=VARCHAR},
- </if>
- <if test="patentProryStatementUrl != null">
- patent_prory_statement_url = #{patentProryStatementUrl,jdbcType=VARCHAR},
- </if>
- <if test="international != null">
- international = #{international,jdbcType=INTEGER},
- </if>
- <if test="reviewInstructions != null">
- review_instructions = #{reviewInstructions,jdbcType=VARCHAR},
- </if>
- <if test="investment != null">
- investment = #{investment,jdbcType=INTEGER},
- </if>
- <if test="yearSalesAmount != null">
- year_sales_amount = #{yearSalesAmount,jdbcType=DECIMAL},
- </if>
- <if test="lastYearResearchAmount != null">
- last_year_research_amount = #{lastYearResearchAmount,jdbcType=DECIMAL},
- </if>
- <if test="assets != null">
- assets = #{assets,jdbcType=DECIMAL},
- </if>
- <if test="qualification != null">
- qualification = #{qualification,jdbcType=VARCHAR},
- </if>
- <if test="cooperationSituation != null">
- cooperation_situation = #{cooperationSituation,jdbcType=VARCHAR},
- </if>
- <if test="honorPicture != null">
- honor_picture = #{honorPicture,jdbcType=VARCHAR},
- </if>
- <if test="salesTarget != null">
- sales_target = #{salesTarget,jdbcType=VARCHAR},
- </if>
- <if test="intendedProject != null">
- intended_project = #{intendedProject,jdbcType=VARCHAR},
- </if>
- <if test="contactsDep != null">
- contacts_dep = #{contactsDep,jdbcType=VARCHAR},
- </if>
- <if test="contactsPosition != null">
- contacts_position = #{contactsPosition,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.OrganizationIdentity">
- update organization_identity
- set `uid` = #{uid,jdbcType=VARCHAR},
- contacts = #{contacts,jdbcType=VARCHAR},
- contact_mobile = #{contactMobile,jdbcType=VARCHAR},
- fixed_tel = #{fixedTel,jdbcType=VARCHAR},
- qq = #{qq,jdbcType=VARCHAR},
- postal_address = #{postalAddress,jdbcType=VARCHAR},
- postcode = #{postcode,jdbcType=VARCHAR},
- unit_name = #{unitName,jdbcType=VARCHAR},
- registered_capital = #{registeredCapital,jdbcType=DECIMAL},
- licence_number = #{licenceNumber,jdbcType=VARCHAR},
- licence_province = #{licenceProvince,jdbcType=INTEGER},
- licence_city = #{licenceCity,jdbcType=INTEGER},
- licence_area = #{licenceArea,jdbcType=INTEGER},
- licence_scanning_url = #{licenceScanningUrl,jdbcType=VARCHAR},
- org_code = #{orgCode,jdbcType=VARCHAR},
- org_code_url = #{orgCodeUrl,jdbcType=VARCHAR},
- bank_account = #{bankAccount,jdbcType=VARCHAR},
- banks = #{banks,jdbcType=VARCHAR},
- bank_branch = #{bankBranch,jdbcType=VARCHAR},
- bank_card_number = #{bankCardNumber,jdbcType=VARCHAR},
- validation_amount = #{validationAmount,jdbcType=DECIMAL},
- identity_type = #{identityType,jdbcType=INTEGER},
- location_province = #{locationProvince,jdbcType=INTEGER},
- location_city = #{locationCity,jdbcType=INTEGER},
- location_area = #{locationArea,jdbcType=INTEGER},
- legal_person = #{legalPerson,jdbcType=VARCHAR},
- legal_person_id_card = #{legalPersonIdCard,jdbcType=VARCHAR},
- last_year_tax_report_url = #{lastYearTaxReportUrl,jdbcType=VARCHAR},
- audit_status = #{auditStatus,jdbcType=INTEGER},
- `process` = #{process,jdbcType=INTEGER},
- wrong_count = #{wrongCount,jdbcType=INTEGER},
- payment_date = #{paymentDate,jdbcType=TIMESTAMP},
- listed = #{listed,jdbcType=INTEGER},
- listed_date = #{listedDate,jdbcType=TIMESTAMP},
- listed_type = #{listedType,jdbcType=INTEGER},
- stock_code = #{stockCode,jdbcType=VARCHAR},
- certificate_number = #{certificateNumber,jdbcType=VARCHAR},
- issuing_date = #{issuingDate,jdbcType=TIMESTAMP},
- cog_contacts = #{cogContacts,jdbcType=INTEGER},
- tech_principal = #{techPrincipal,jdbcType=VARCHAR},
- contacts_fixed_tel = #{contactsFixedTel,jdbcType=VARCHAR},
- contacts_fax = #{contactsFax,jdbcType=VARCHAR},
- legal_person_tel = #{legalPersonTel,jdbcType=VARCHAR},
- legal_person_fax = #{legalPersonFax,jdbcType=VARCHAR},
- legal_person_email = #{legalPersonEmail,jdbcType=VARCHAR},
- registration_time = #{registrationTime,jdbcType=TIMESTAMP},
- ratepay_code = #{ratepayCode,jdbcType=VARCHAR},
- industry = #{industry,jdbcType=INTEGER},
- enterprise_scale = #{enterpriseScale,jdbcType=VARCHAR},
- register_type = #{registerType,jdbcType=VARCHAR},
- foreign_investment = #{foreignInvestment,jdbcType=VARCHAR},
- field = #{field,jdbcType=VARCHAR},
- tax_authority = #{taxAuthority,jdbcType=INTEGER},
- ratepay_method = #{ratepayMethod,jdbcType=INTEGER},
- high_tech_zone = #{highTechZone,jdbcType=INTEGER},
- risk_investment = #{riskInvestment,jdbcType=INTEGER},
- business_scope = #{businessScope,jdbcType=VARCHAR},
- high_tech_name = #{highTechName,jdbcType=VARCHAR},
- patent_prory_statement_url = #{patentProryStatementUrl,jdbcType=VARCHAR},
- international = #{international,jdbcType=INTEGER},
- review_instructions = #{reviewInstructions,jdbcType=VARCHAR},
- investment = #{investment,jdbcType=INTEGER},
- year_sales_amount = #{yearSalesAmount,jdbcType=DECIMAL},
- last_year_research_amount = #{lastYearResearchAmount,jdbcType=DECIMAL},
- assets = #{assets,jdbcType=DECIMAL},
- qualification = #{qualification,jdbcType=VARCHAR},
- cooperation_situation = #{cooperationSituation,jdbcType=VARCHAR},
- honor_picture = #{honorPicture,jdbcType=VARCHAR},
- sales_target = #{salesTarget,jdbcType=VARCHAR},
- intended_project = #{intendedProject,jdbcType=VARCHAR},
- contacts_dep = #{contactsDep,jdbcType=VARCHAR},
- contacts_position = #{contactsPosition,jdbcType=VARCHAR}
- where id = #{id,jdbcType=VARCHAR}
- </update>
- <select id="selectOrgIdentityByUserId" parameterType="java.lang.String" resultMap="OrganizationIdentityMap">
- select
- <include refid="OrganizationIdentityAllSql" />
- from organization_identity
- where uid = #{uid,jdbcType=VARCHAR}
- </select>
- <select id="selectOrgIdentityBoByUserId" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgIdentityBo">
- select
- t.id,t.uid,t.contacts,t.fixed_tel as fixedTel,
- t.qq,t.postal_address
- as postalAddress ,t.postcode,
- u.email ,t.legal_person
- as legalPerson
- from user u LEFT JOIN organization_identity t
- on t.uid =
- u.id
- where t.uid=#{uid,jdbcType=VARCHAR}
- </select>
- <select id="selectAllOrgIndentity" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgUnitNames">
- select u.id as uid, i.unit_name as unitName
- from user u INNER JOIN
- organization_identity i on u.id = i.uid
- where
- i.audit_status = 5
- and u.lvl > 0
- <if test="_parameter != null">
- and u.aid = #{aid,jdbcType=VARCHAR}
- </if>
- </select>
- <select id="selectBasicInfo" resultType="com.goafanti.user.bo.OrgBasicInfoBo">
- select oi.id,
- oi.uid as
- uid, oi.unit_name as unitName, oi.licence_province as licenceProvince,
- oi.licence_city as licenceCity, oi.licence_area as licenceArea, oi.postal_address as
- postalAddress,
- oi.contacts_fixed_tel as
- contactsFixedTel, oi.contacts_fax as
- contactsFax,oi.legal_person_tel as
- legalPersonTel,
- oi.legal_person_fax as legalPersonFax,
- oi.legal_person_email as legalPersonEmail,
- oi.registered_capital as
- registeredCapital,
- oi.registration_time as registrationTime,
- oi.legal_person as legalPerson,
- oi.legal_person_id_card as
- legalPersonIdCard, oi.org_code as orgCode,
- oi.ratepay_code as
- ratepayCode, oi.industry, oi.enterprise_scale as
- enterpriseScale,
- oi.register_type as registerType,
- oi.foreign_investment as
- foreignInvestment, oi.field, oi.tax_authority
- as taxAuthority,
- oi.listed_date as listedDate,
- oi.ratepay_method as ratepayMethod,
- oi.listed, oi.high_tech_zone as highTechZone,
- oi.risk_investment as
- riskInvestment, oi.stock_code as stockCode,
- oi.business_scope as
- businessScope, oi.high_tech_name as highTechName,
- oi.listed_type as
- listedType,
- ohr.id as hid, ohr.firm_total as firmTotal, ohr.tech_total
- as techTotal
- from organization_identity oi
- LEFT JOIN org_human_resource
- ohr
- on oi.uid = ohr.uid and ohr.year = #{1}
- where oi.uid = #{0}
- </select>
- <select id="selectOrgIdentityDetailByUserId" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgIdentityDetailBo">
- select
- id, uid, unit_name as unitName, identity_type as identityType,
- legal_person as legalPerson, legal_person_id_card as legalPersonIdCard, registration_time as registrationTime,
- licence_number as licenceNumber, licence_province as licenceProvince, licence_city as licenceCity,
- licence_area as licenceArea, licence_scanning_url as licenceScanningUrl, org_code as orgCode,
- org_code_url as orgCodeUrl, banks, bank_branch as bankBranch, bank_card_number as bankCardNumber,
- location_province as locationProvince, location_city as locationCity, location_area as locationArea,
- validation_amount as validationAmount, payment_date as paymentDate, audit_status as auditStatus,
- last_year_tax_report_url as lastYearTaxReportUrl
- from organization_identity
- where uid = #{uid,jdbcType=VARCHAR}
- </select>
- <select id="selectAuditorOrgIdentityDetailByUserId" resultType="com.goafanti.user.bo.AuditorOrgIdentityDetailBo">
- select
- u.aid, u.mid, u.lvl,
- oi.id, oi.uid, oi.unit_name as unitName, oi.identity_type as identityType,
- oi.legal_person as legalPerson, oi.legal_person_id_card as legalPersonIdCard, oi.registration_time as registrationTime,
- oi.licence_number as licenceNumber, oi.licence_province as licenceProvince, oi.licence_city as licenceCity,
- oi.licence_area as licenceArea, oi.licence_scanning_url as licenceScanningUrl, oi.org_code as orgCode,
- oi.org_code_url as orgCodeUrl, oi.banks, bank_branch as bankBranch, oi.bank_card_number as bankCardNumber,
- oi.location_province as locationProvince, oi.location_city as locationCity, oi.location_area as locationArea,
- oi.validation_amount as validationAmount, oi.payment_date as paymentDate, oi.audit_status as auditStatus,
- oi.last_year_tax_report_url as lastYearTaxReportUrl, oi.field, oi.registered_capital as registeredCapital,
- ratepay.id as ratepayId
- from user u
- LEFT JOIN organization_identity oi on oi.uid = u.id
- LEFT JOIN org_ratepay ratepay on ratepay.uid = u.id and ratepay.year = #{year,jdbcType=INTEGER} and deleted_sign = 0
- where u.id = #{uid,jdbcType=VARCHAR}
- </select>
- <select id="selectManagerUnitNames" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgUnitNames">
- select u.id as uid, i.unit_name as unitName
- from user u INNER JOIN
- organization_identity i on u.id = i.uid
- where u.lvl = 1
- <if test="_parameter != null">
- and u.mid = #{aid,jdbcType=VARCHAR}
- </if>
- </select>
- <select id="selectManagerAchievementOrgOwner" resultType="com.goafanti.user.bo.OrgUnitNames">
- select u.id as uid, i.unit_name as unitName
- from user u INNER JOIN
- organization_identity i on u.id = i.uid
- where u.lvl = 1 and i.unit_name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
- <if test="aid != null">
- and u.mid = #{aid,jdbcType=VARCHAR}
- </if>
- </select>
- <select id="selectAchievementOrgOwner" resultType="com.goafanti.user.bo.OrgUnitNames">
- select u.id as uid, i.unit_name as unitName
- from user u INNER JOIN
- organization_identity i on u.id = i.uid
- where u.lvl = 1 and i.unit_name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
- <if test="aid != null">
- and u.aid = #{aid,jdbcType=VARCHAR}
- </if>
- </select>
- <select id="findSearchSubscriberListByPage" parameterType="String" resultType="com.goafanti.portal.bo.OrgSubscriberListBo">
- SELECT
- u.id as uid,
- oi.unit_name as unitName,
- u.number,
- oi.id as identityId,
- info.logo_url as logoUrl,
- oi.licence_province as province,
- adc.achievement_count as achievementNum,
- adc.demand_count as demandNum
- FROM
- <![CDATA[ user ]]> u
- LEFT JOIN organization_identity oi ON oi.uid = u.id
- LEFT JOIN organization_info info on info.uid = u.id
- LEFT JOIN organization_tech ot on ot.uid = u.id
- LEFT JOIN achievement_demand_count adc on adc.uid = u.id
- WHERE
- u.type = 1
- <if test="null != level and level==1 ">
- AND u.lvl <![CDATA[ >= ]]> 1
- </if>
- <if test="null !=level and level==0">
- AND u.lvl = 0
- </if>
- <if test="province != null">
- AND oi.licence_province = #{province,jdbcType=INTEGER}
- </if>
- <if test="city != null">
- AND oi.licence_city = #{city,jdbcType=INTEGER}
- </if>
- <if test="area != null">
- AND oi.licence_area = #{area,jdbcType=INTEGER}
- </if>
- <if test="field != null">
- AND ot.search_area_category like CONCAT(#{field,jdbcType=VARCHAR},'%')
- </if>
- <if test="name != null">
- AND oi.unit_name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
- </if>
- ORDER BY u.number
- <if test="page_sql!=null">
- ${page_sql}
- </if>
- </select>
- <select id="findSearchSubscriberCount" parameterType="String" resultType="java.lang.Integer">
- SELECT
- count(1)
- FROM
- <![CDATA[ user ]]> u
- LEFT JOIN organization_identity oi ON oi.uid = u.id
- LEFT JOIN organization_info info on info.uid = u.id
- LEFT JOIN organization_tech ot on ot.uid = u.id
- WHERE
- u.type = 1
- <if test="null != level and level==1 ">
- AND u.lvl <![CDATA[ >= ]]> 1
- </if>
- <if test="null !=level and level==0">
- AND u.lvl = 0
- </if>
- <if test="province != null">
- AND oi.licence_province = #{province,jdbcType=INTEGER}
- </if>
- <if test="city != null">
- AND oi.licence_city = #{city,jdbcType=INTEGER}
- </if>
- <if test="area != null">
- AND oi.licence_area = #{area,jdbcType=INTEGER}
- </if>
- <if test="field != null">
- AND ot.search_area_category like CONCAT(#{field,jdbcType=VARCHAR},'%')
- </if>
- <if test="name != null">
- AND oi.unit_name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
- </if>
- </select>
- <update id="updateServiceByUid" parameterType="com.goafanti.common.model.OrganizationIdentity">
- update organization_identity
- <set>
- <if test="contacts != null">
- contacts = #{contacts,jdbcType=VARCHAR},
- </if>
- <if test="contactMobile != null">
- contact_mobile = #{contactMobile,jdbcType=VARCHAR},
- </if>
- <if test="fixedTel != null">
- fixed_tel = #{fixedTel,jdbcType=VARCHAR},
- </if>
- <if test="qq != null">
- qq = #{qq,jdbcType=VARCHAR},
- </if>
- <if test="postalAddress != null">
- postal_address = #{postalAddress,jdbcType=VARCHAR},
- </if>
- <if test="postcode != null">
- postcode = #{postcode,jdbcType=VARCHAR},
- </if>
- <if test="unitName != null">
- unit_name = #{unitName,jdbcType=VARCHAR},
- </if>
- <if test="registeredCapital != null">
- registered_capital = #{registeredCapital,jdbcType=DECIMAL},
- </if>
- <if test="licenceNumber != null">
- licence_number = #{licenceNumber,jdbcType=VARCHAR},
- </if>
- <if test="licenceProvince != null">
- licence_province = #{licenceProvince,jdbcType=INTEGER},
- </if>
- <if test="licenceCity != null">
- licence_city = #{licenceCity,jdbcType=INTEGER},
- </if>
- <if test="licenceArea != null">
- licence_area = #{licenceArea,jdbcType=INTEGER},
- </if>
- <if test="licenceScanningUrl != null">
- licence_scanning_url = #{licenceScanningUrl,jdbcType=VARCHAR},
- </if>
- <if test="orgCode != null">
- org_code = #{orgCode,jdbcType=VARCHAR},
- </if>
- <if test="orgCodeUrl != null">
- org_code_url = #{orgCodeUrl,jdbcType=VARCHAR},
- </if>
- <if test="bankAccount != null">
- bank_account = #{bankAccount,jdbcType=VARCHAR},
- </if>
- <if test="banks != null">
- banks = #{banks,jdbcType=VARCHAR},
- </if>
- <if test="bankBranch != null">
- bank_branch = #{bankBranch,jdbcType=VARCHAR},
- </if>
- <if test="bankCardNumber != null">
- bank_card_number = #{bankCardNumber,jdbcType=VARCHAR},
- </if>
- <if test="validationAmount != null">
- validation_amount = #{validationAmount,jdbcType=DECIMAL},
- </if>
- <if test="identityType != null">
- identity_type = #{identityType,jdbcType=INTEGER},
- </if>
- <if test="locationProvince != null">
- location_province = #{locationProvince,jdbcType=INTEGER},
- </if>
- <if test="locationCity != null">
- location_city = #{locationCity,jdbcType=INTEGER},
- </if>
- <if test="locationArea != null">
- location_area = #{locationArea,jdbcType=INTEGER},
- </if>
- <if test="legalPerson != null">
- legal_person = #{legalPerson,jdbcType=VARCHAR},
- </if>
- <if test="legalPersonIdCard != null">
- legal_person_id_card = #{legalPersonIdCard,jdbcType=VARCHAR},
- </if>
- <if test="lastYearTaxReportUrl != null">
- last_year_tax_report_url = #{lastYearTaxReportUrl,jdbcType=VARCHAR},
- </if>
- <if test="auditStatus != null">
- audit_status = #{auditStatus,jdbcType=INTEGER},
- </if>
- <if test="process != null">
- `process` = #{process,jdbcType=INTEGER},
- </if>
- <if test="wrongCount != null">
- wrong_count = #{wrongCount,jdbcType=INTEGER},
- </if>
- <if test="paymentDate != null">
- payment_date = #{paymentDate,jdbcType=TIMESTAMP},
- </if>
- <if test="listed != null">
- listed = #{listed,jdbcType=INTEGER},
- </if>
- <if test="listedDate != null">
- listed_date = #{listedDate,jdbcType=TIMESTAMP},
- </if>
- <if test="listedType != null">
- listed_type = #{listedType,jdbcType=INTEGER},
- </if>
- <if test="stockCode != null">
- stock_code = #{stockCode,jdbcType=VARCHAR},
- </if>
- <if test="certificateNumber != null">
- certificate_number = #{certificateNumber,jdbcType=VARCHAR},
- </if>
- <if test="issuingDate != null">
- issuing_date = #{issuingDate,jdbcType=TIMESTAMP},
- </if>
- <if test="cogContacts != null">
- cog_contacts = #{cogContacts,jdbcType=INTEGER},
- </if>
- <if test="techPrincipal != null">
- tech_principal = #{techPrincipal,jdbcType=VARCHAR},
- </if>
- <if test="contactsFixedTel != null">
- contacts_fixed_tel = #{contactsFixedTel,jdbcType=VARCHAR},
- </if>
- <if test="contactsFax != null">
- contacts_fax = #{contactsFax,jdbcType=VARCHAR},
- </if>
- <if test="legalPersonTel != null">
- legal_person_tel = #{legalPersonTel,jdbcType=VARCHAR},
- </if>
- <if test="legalPersonFax != null">
- legal_person_fax = #{legalPersonFax,jdbcType=VARCHAR},
- </if>
- <if test="legalPersonEmail != null">
- legal_person_email = #{legalPersonEmail,jdbcType=VARCHAR},
- </if>
- <if test="registrationTime != null">
- registration_time = #{registrationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="ratepayCode != null">
- ratepay_code = #{ratepayCode,jdbcType=VARCHAR},
- </if>
- <if test="industry != null">
- industry = #{industry,jdbcType=INTEGER},
- </if>
- <if test="enterpriseScale != null">
- enterprise_scale = #{enterpriseScale,jdbcType=VARCHAR},
- </if>
- <if test="registerType != null">
- register_type = #{registerType,jdbcType=VARCHAR},
- </if>
- <if test="foreignInvestment != null">
- foreign_investment = #{foreignInvestment,jdbcType=VARCHAR},
- </if>
- <if test="field != null">
- field = #{field,jdbcType=VARCHAR},
- </if>
- <if test="taxAuthority != null">
- tax_authority = #{taxAuthority,jdbcType=INTEGER},
- </if>
- <if test="ratepayMethod != null">
- ratepay_method = #{ratepayMethod,jdbcType=INTEGER},
- </if>
- <if test="highTechZone != null">
- high_tech_zone = #{highTechZone,jdbcType=INTEGER},
- </if>
- <if test="riskInvestment != null">
- risk_investment = #{riskInvestment,jdbcType=INTEGER},
- </if>
- <if test="businessScope != null">
- business_scope = #{businessScope,jdbcType=VARCHAR},
- </if>
- <if test="highTechName != null">
- high_tech_name = #{highTechName,jdbcType=VARCHAR},
- </if>
- <if test="patentProryStatementUrl != null">
- patent_prory_statement_url = #{patentProryStatementUrl,jdbcType=VARCHAR},
- </if>
- <if test="international != null">
- international = #{international,jdbcType=INTEGER},
- </if>
- <if test="reviewInstructions != null">
- review_instructions = #{reviewInstructions,jdbcType=VARCHAR},
- </if>
- <if test="investment != null">
- investment = #{investment,jdbcType=INTEGER},
- </if>
- <if test="yearSalesAmount != null">
- year_sales_amount = #{yearSalesAmount,jdbcType=DECIMAL},
- </if>
- <if test="lastYearResearchAmount != null">
- last_year_research_amount = #{lastYearResearchAmount,jdbcType=DECIMAL},
- </if>
- <if test="assets != null">
- assets = #{assets,jdbcType=DECIMAL},
- </if>
- <if test="qualification != null">
- qualification = #{qualification,jdbcType=VARCHAR},
- </if>
- <if test="cooperationSituation != null">
- cooperation_situation = #{cooperationSituation,jdbcType=VARCHAR},
- </if>
- <if test="honorPicture != null">
- honor_picture = #{honorPicture,jdbcType=VARCHAR},
- </if>
- <if test="salesTarget != null">
- sales_target = #{salesTarget,jdbcType=VARCHAR},
- </if>
- <if test="intendedProject != null">
- intended_project = #{intendedProject,jdbcType=VARCHAR},
- </if>
- <if test="contactsDep != null">
- contacts_dep = #{contactsDep,jdbcType=VARCHAR},
- </if>
- <if test="contactsPosition != null">
- contacts_position = #{contactsPosition,jdbcType=VARCHAR},
- </if>
- </set>
- where uid = #{uid,jdbcType=VARCHAR}
- </update>
- <insert id="insertBatch" parameterType="com.goafanti.user.bo.InputUserChannel">
- INSERT INTO organization_identity
- (id, uid, contacts, contact_mobile,location_province,location_city)VALUES
- <foreach item="item" index="index" collection="list" separator=",">
- (UUID(), #{item.uid,jdbcType=VARCHAR}, #{item.contacts,jdbcType=VARCHAR},
- #{item.contactMobile,jdbcType=VARCHAR}, #{item.province,jdbcType=TIMESTAMP}, #{item.city,jdbcType=TIMESTAMP})
- </foreach>
- </insert>
- <select id="selectByOrgCode" parameterType="java.lang.String" resultMap="OrganizationIdentityMap">
- select
- <include refid="OrganizationIdentityAllSql" />
- from organization_identity
- where org_code = #{orgCode}
- </select>
- </mapper>
|