OrganizationIdentityMapper.xml 82 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.goafanti.common.dao.OrganizationIdentityMapper">
  4. <resultMap type="com.goafanti.common.model.OrganizationIdentity" id="OrganizationIdentityMap">
  5. <result property="id" column="id" jdbcType="VARCHAR"/>
  6. <result property="uid" column="uid" jdbcType="VARCHAR"/>
  7. <result property="contacts" column="contacts" jdbcType="VARCHAR"/>
  8. <result property="contactMobile" column="contact_mobile" jdbcType="VARCHAR"/>
  9. <result property="fixedTel" column="fixed_tel" jdbcType="VARCHAR"/>
  10. <result property="qq" column="qq" jdbcType="VARCHAR"/>
  11. <result property="postalAddress" column="postal_address" jdbcType="VARCHAR"/>
  12. <result property="postcode" column="postcode" jdbcType="VARCHAR"/>
  13. <result property="unitName" column="unit_name" jdbcType="VARCHAR"/>
  14. <result property="registeredCapital" column="registered_capital" jdbcType="VARCHAR"/>
  15. <result property="licenceNumber" column="licence_number" jdbcType="VARCHAR"/>
  16. <result property="licenceProvince" column="licence_province" jdbcType="INTEGER"/>
  17. <result property="licenceCity" column="licence_city" jdbcType="INTEGER"/>
  18. <result property="licenceArea" column="licence_area" jdbcType="INTEGER"/>
  19. <result property="licenceScanningUrl" column="licence_scanning_url" jdbcType="VARCHAR"/>
  20. <result property="orgCode" column="org_code" jdbcType="VARCHAR"/>
  21. <result property="orgCodeUrl" column="org_code_url" jdbcType="VARCHAR"/>
  22. <result property="bankAccount" column="bank_account" jdbcType="VARCHAR"/>
  23. <result property="banks" column="banks" jdbcType="VARCHAR"/>
  24. <result property="bankBranch" column="bank_branch" jdbcType="VARCHAR"/>
  25. <result property="bankCardNumber" column="bank_card_number" jdbcType="VARCHAR"/>
  26. <result property="validationAmount" column="validation_amount" jdbcType="VARCHAR"/>
  27. <result property="identityType" column="identity_type" jdbcType="INTEGER"/>
  28. <result property="locationProvince" column="location_province" jdbcType="INTEGER"/>
  29. <result property="locationCity" column="location_city" jdbcType="INTEGER"/>
  30. <result property="locationArea" column="location_area" jdbcType="INTEGER"/>
  31. <result property="legalPerson" column="legal_person" jdbcType="VARCHAR"/>
  32. <result property="legalPersonIdCard" column="legal_person_id_card" jdbcType="VARCHAR"/>
  33. <result property="lastYearTaxReportUrl" column="last_year_tax_report_url" jdbcType="VARCHAR"/>
  34. <result property="auditStatus" column="audit_status" jdbcType="INTEGER"/>
  35. <result property="process" column="process" jdbcType="INTEGER"/>
  36. <result property="wrongCount" column="wrong_count" jdbcType="INTEGER"/>
  37. <result property="paymentDate" column="payment_date" jdbcType="TIMESTAMP"/>
  38. <result property="listed" column="listed" jdbcType="INTEGER"/>
  39. <result property="listedDate" column="listed_date" jdbcType="TIMESTAMP"/>
  40. <result property="listedType" column="listed_type" jdbcType="INTEGER"/>
  41. <result property="stockCode" column="stock_code" jdbcType="VARCHAR"/>
  42. <result property="certificateNumber" column="certificate_number" jdbcType="VARCHAR"/>
  43. <result property="issuingDate" column="issuing_date" jdbcType="TIMESTAMP"/>
  44. <result property="cogContacts" column="cog_contacts" jdbcType="INTEGER"/>
  45. <result property="techPrincipal" column="tech_principal" jdbcType="VARCHAR"/>
  46. <result property="contactsFixedTel" column="contacts_fixed_tel" jdbcType="VARCHAR"/>
  47. <result property="contactsFax" column="contacts_fax" jdbcType="VARCHAR"/>
  48. <result property="legalPersonTel" column="legal_person_tel" jdbcType="VARCHAR"/>
  49. <result property="legalPersonFax" column="legal_person_fax" jdbcType="VARCHAR"/>
  50. <result property="legalPersonEmail" column="legal_person_email" jdbcType="VARCHAR"/>
  51. <result property="registrationTime" column="registration_time" jdbcType="TIMESTAMP"/>
  52. <result property="ratepayCode" column="ratepay_code" jdbcType="VARCHAR"/>
  53. <result property="industry" column="industry" jdbcType="VARCHAR"/>
  54. <result property="enterpriseScale" column="enterprise_scale" jdbcType="VARCHAR"/>
  55. <result property="registerType" column="register_type" jdbcType="VARCHAR"/>
  56. <result property="foreignInvestment" column="foreign_investment" jdbcType="VARCHAR"/>
  57. <result property="field" column="field" jdbcType="VARCHAR"/>
  58. <result property="taxAuthority" column="tax_authority" jdbcType="INTEGER"/>
  59. <result property="ratepayMethod" column="ratepay_method" jdbcType="INTEGER"/>
  60. <result property="highTechZone" column="high_tech_zone" jdbcType="INTEGER"/>
  61. <result property="riskInvestment" column="risk_investment" jdbcType="INTEGER"/>
  62. <result property="businessScope" column="business_scope" jdbcType="VARCHAR"/>
  63. <result property="highTechName" column="high_tech_name" jdbcType="VARCHAR"/>
  64. <result property="patentProryStatementUrl" column="patent_prory_statement_url" jdbcType="VARCHAR"/>
  65. <result property="international" column="international" jdbcType="INTEGER"/>
  66. <result property="reviewInstructions" column="review_instructions" jdbcType="VARCHAR"/>
  67. <result property="investment" column="investment" jdbcType="INTEGER"/>
  68. <result property="yearSalesAmount" column="year_sales_amount" jdbcType="VARCHAR"/>
  69. <result property="lastYearResearchAmount" column="last_year_research_amount" jdbcType="VARCHAR"/>
  70. <result property="assets" column="assets" jdbcType="VARCHAR"/>
  71. <result property="qualification" column="qualification" jdbcType="VARCHAR"/>
  72. <result property="cooperationSituation" column="cooperation_situation" jdbcType="VARCHAR"/>
  73. <result property="honorPicture" column="honor_picture" jdbcType="VARCHAR"/>
  74. <result property="salesTarget" column="sales_target" jdbcType="VARCHAR"/>
  75. <result property="intendedProject" column="intended_project" jdbcType="VARCHAR"/>
  76. <result property="contactsDep" column="contacts_dep" jdbcType="VARCHAR"/>
  77. <result property="contactsPosition" column="contacts_position" jdbcType="VARCHAR"/>
  78. </resultMap>
  79. <sql id="OrganizationIdentityAllSql">
  80. 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
  81. </sql>
  82. <!--查询单个-->
  83. <select id="selectById" resultMap="OrganizationIdentityMap">
  84. select
  85. <include refid="OrganizationIdentityAllSql"/>
  86. from organization_identity
  87. where id = #{id}
  88. </select>
  89. <!--新增所有列-->
  90. <insert id="insert" >
  91. insert into organization_identity(id,uid, contacts, contact_mobile, fixed_tel, qq, postal_address, postcode,
  92. unit_name, registered_capital, licence_number, licence_province, licence_city,
  93. licence_area, licence_scanning_url, org_code, org_code_url, bank_account,
  94. banks, bank_branch, bank_card_number, validation_amount, identity_type,
  95. location_province, location_city, location_area, legal_person,
  96. legal_person_id_card, last_year_tax_report_url, audit_status, process,
  97. wrong_count, payment_date, listed, listed_date, listed_type, stock_code,
  98. certificate_number, issuing_date, cog_contacts, tech_principal,
  99. contacts_fixed_tel, contacts_fax, legal_person_tel, legal_person_fax,
  100. legal_person_email, registration_time, ratepay_code, industry,
  101. enterprise_scale, register_type, foreign_investment, field, tax_authority,
  102. ratepay_method, high_tech_zone, risk_investment, business_scope,
  103. high_tech_name, patent_prory_statement_url, international,
  104. review_instructions, investment, year_sales_amount, last_year_research_amount,
  105. assets, qualification, cooperation_situation, honor_picture, sales_target,
  106. intended_project, contacts_dep, contacts_position)
  107. values (#{id},#{uid}, #{contacts}, #{contactMobile}, #{fixedTel}, #{qq}, #{postalAddress}, #{postcode}, #{unitName},
  108. #{registeredCapital}, #{licenceNumber}, #{licenceProvince}, #{licenceCity}, #{licenceArea},
  109. #{licenceScanningUrl}, #{orgCode}, #{orgCodeUrl}, #{bankAccount}, #{banks}, #{bankBranch},
  110. #{bankCardNumber}, #{validationAmount}, #{identityType}, #{locationProvince}, #{locationCity},
  111. #{locationArea}, #{legalPerson}, #{legalPersonIdCard}, #{lastYearTaxReportUrl}, #{auditStatus},
  112. #{process}, #{wrongCount}, #{paymentDate}, #{listed}, #{listedDate}, #{listedType}, #{stockCode},
  113. #{certificateNumber}, #{issuingDate}, #{cogContacts}, #{techPrincipal}, #{contactsFixedTel},
  114. #{contactsFax}, #{legalPersonTel}, #{legalPersonFax}, #{legalPersonEmail}, #{registrationTime},
  115. #{ratepayCode}, #{industry}, #{enterpriseScale}, #{registerType}, #{foreignInvestment}, #{field},
  116. #{taxAuthority}, #{ratepayMethod}, #{highTechZone}, #{riskInvestment}, #{businessScope},
  117. #{highTechName}, #{patentProryStatementUrl}, #{international}, #{reviewInstructions}, #{investment},
  118. #{yearSalesAmount}, #{lastYearResearchAmount}, #{assets}, #{qualification}, #{cooperationSituation},
  119. #{honorPicture}, #{salesTarget}, #{intendedProject}, #{contactsDep}, #{contactsPosition})
  120. </insert>
  121. <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
  122. insert into organization_identity(uid, contacts, contact_mobile, fixed_tel, qq, postal_address, postcode,
  123. unit_name, registered_capital, licence_number, licence_province, licence_city, licence_area,
  124. licence_scanning_url, org_code, org_code_url, bank_account, banks, bank_branch, bank_card_number,
  125. validation_amount, identity_type, location_province, location_city, location_area, legal_person,
  126. legal_person_id_card, last_year_tax_report_url, audit_status, process, wrong_count, payment_date, listed,
  127. listed_date, listed_type, stock_code, certificate_number, issuing_date, cog_contacts, tech_principal,
  128. contacts_fixed_tel, contacts_fax, legal_person_tel, legal_person_fax, legal_person_email, registration_time,
  129. ratepay_code, industry, enterprise_scale, register_type, foreign_investment, field, tax_authority,
  130. ratepay_method, high_tech_zone, risk_investment, business_scope, high_tech_name, patent_prory_statement_url,
  131. international, review_instructions, investment, year_sales_amount, last_year_research_amount, assets,
  132. qualification, cooperation_situation, honor_picture, sales_target, intended_project, contacts_dep,
  133. contacts_position)
  134. values
  135. <foreach collection="entities" item="entity" separator=",">
  136. (#{entity.uid}, #{entity.contacts}, #{entity.contactMobile}, #{entity.fixedTel}, #{entity.qq},
  137. #{entity.postalAddress}, #{entity.postcode}, #{entity.unitName}, #{entity.registeredCapital},
  138. #{entity.licenceNumber}, #{entity.licenceProvince}, #{entity.licenceCity}, #{entity.licenceArea},
  139. #{entity.licenceScanningUrl}, #{entity.orgCode}, #{entity.orgCodeUrl}, #{entity.bankAccount},
  140. #{entity.banks}, #{entity.bankBranch}, #{entity.bankCardNumber}, #{entity.validationAmount},
  141. #{entity.identityType}, #{entity.locationProvince}, #{entity.locationCity}, #{entity.locationArea},
  142. #{entity.legalPerson}, #{entity.legalPersonIdCard}, #{entity.lastYearTaxReportUrl}, #{entity.auditStatus},
  143. #{entity.process}, #{entity.wrongCount}, #{entity.paymentDate}, #{entity.listed}, #{entity.listedDate},
  144. #{entity.listedType}, #{entity.stockCode}, #{entity.certificateNumber}, #{entity.issuingDate},
  145. #{entity.cogContacts}, #{entity.techPrincipal}, #{entity.contactsFixedTel}, #{entity.contactsFax},
  146. #{entity.legalPersonTel}, #{entity.legalPersonFax}, #{entity.legalPersonEmail}, #{entity.registrationTime},
  147. #{entity.ratepayCode}, #{entity.industry}, #{entity.enterpriseScale}, #{entity.registerType},
  148. #{entity.foreignInvestment}, #{entity.field}, #{entity.taxAuthority}, #{entity.ratepayMethod},
  149. #{entity.highTechZone}, #{entity.riskInvestment}, #{entity.businessScope}, #{entity.highTechName},
  150. #{entity.patentProryStatementUrl}, #{entity.international}, #{entity.reviewInstructions},
  151. #{entity.investment}, #{entity.yearSalesAmount}, #{entity.lastYearResearchAmount}, #{entity.assets},
  152. #{entity.qualification}, #{entity.cooperationSituation}, #{entity.honorPicture}, #{entity.salesTarget},
  153. #{entity.intendedProject}, #{entity.contactsDep}, #{entity.contactsPosition})
  154. </foreach>
  155. on duplicate key update
  156. uid = values(uid),
  157. contacts = values(contacts),
  158. contact_mobile = values(contact_mobile),
  159. fixed_tel = values(fixed_tel),
  160. qq = values(qq),
  161. postal_address = values(postal_address),
  162. postcode = values(postcode),
  163. unit_name = values(unit_name),
  164. registered_capital = values(registered_capital),
  165. licence_number = values(licence_number),
  166. licence_province = values(licence_province),
  167. licence_city = values(licence_city),
  168. licence_area = values(licence_area),
  169. licence_scanning_url = values(licence_scanning_url),
  170. org_code = values(org_code),
  171. org_code_url = values(org_code_url),
  172. bank_account = values(bank_account),
  173. banks = values(banks),
  174. bank_branch = values(bank_branch),
  175. bank_card_number = values(bank_card_number),
  176. validation_amount = values(validation_amount),
  177. identity_type = values(identity_type),
  178. location_province = values(location_province),
  179. location_city = values(location_city),
  180. location_area = values(location_area),
  181. legal_person = values(legal_person),
  182. legal_person_id_card = values(legal_person_id_card),
  183. last_year_tax_report_url = values(last_year_tax_report_url),
  184. audit_status = values(audit_status),
  185. process = values(process),
  186. wrong_count = values(wrong_count),
  187. payment_date = values(payment_date),
  188. listed = values(listed),
  189. listed_date = values(listed_date),
  190. listed_type = values(listed_type),
  191. stock_code = values(stock_code),
  192. certificate_number = values(certificate_number),
  193. issuing_date = values(issuing_date),
  194. cog_contacts = values(cog_contacts),
  195. tech_principal = values(tech_principal),
  196. contacts_fixed_tel = values(contacts_fixed_tel),
  197. contacts_fax = values(contacts_fax),
  198. legal_person_tel = values(legal_person_tel),
  199. legal_person_fax = values(legal_person_fax),
  200. legal_person_email = values(legal_person_email),
  201. registration_time = values(registration_time),
  202. ratepay_code = values(ratepay_code),
  203. industry = values(industry),
  204. enterprise_scale = values(enterprise_scale),
  205. register_type = values(register_type),
  206. foreign_investment = values(foreign_investment),
  207. field = values(field),
  208. tax_authority = values(tax_authority),
  209. ratepay_method = values(ratepay_method),
  210. high_tech_zone = values(high_tech_zone),
  211. risk_investment = values(risk_investment),
  212. business_scope = values(business_scope),
  213. high_tech_name = values(high_tech_name),
  214. patent_prory_statement_url = values(patent_prory_statement_url),
  215. international = values(international),
  216. review_instructions = values(review_instructions),
  217. investment = values(investment),
  218. year_sales_amount = values(year_sales_amount),
  219. last_year_research_amount = values(last_year_research_amount),
  220. assets = values(assets),
  221. qualification = values(qualification),
  222. cooperation_situation = values(cooperation_situation),
  223. honor_picture = values(honor_picture),
  224. sales_target = values(sales_target),
  225. intended_project = values(intended_project),
  226. contacts_dep = values(contacts_dep),
  227. contacts_position = values(contacts_position)
  228. </insert>
  229. <!--通过主键修改数据-->
  230. <update id="update">
  231. update organization_identity
  232. <set>
  233. <if test="uid != null and uid != ''">
  234. uid = #{uid},
  235. </if>
  236. <if test="contacts != null and contacts != ''">
  237. contacts = #{contacts},
  238. </if>
  239. <if test="contactMobile != null and contactMobile != ''">
  240. contact_mobile = #{contactMobile},
  241. </if>
  242. <if test="fixedTel != null and fixedTel != ''">
  243. fixed_tel = #{fixedTel},
  244. </if>
  245. <if test="qq != null and qq != ''">
  246. qq = #{qq},
  247. </if>
  248. <if test="postalAddress != null and postalAddress != ''">
  249. postal_address = #{postalAddress},
  250. </if>
  251. <if test="postcode != null and postcode != ''">
  252. postcode = #{postcode},
  253. </if>
  254. <if test="unitName != null and unitName != ''">
  255. unit_name = #{unitName},
  256. </if>
  257. <if test="registeredCapital != null">
  258. registered_capital = #{registeredCapital},
  259. </if>
  260. <if test="licenceNumber != null and licenceNumber != ''">
  261. licence_number = #{licenceNumber},
  262. </if>
  263. <if test="licenceProvince != null">
  264. licence_province = #{licenceProvince},
  265. </if>
  266. <if test="licenceCity != null">
  267. licence_city = #{licenceCity},
  268. </if>
  269. <if test="licenceArea != null">
  270. licence_area = #{licenceArea},
  271. </if>
  272. <if test="licenceScanningUrl != null and licenceScanningUrl != ''">
  273. licence_scanning_url = #{licenceScanningUrl},
  274. </if>
  275. <if test="orgCode != null and orgCode != ''">
  276. org_code = #{orgCode},
  277. </if>
  278. <if test="orgCodeUrl != null and orgCodeUrl != ''">
  279. org_code_url = #{orgCodeUrl},
  280. </if>
  281. <if test="bankAccount != null and bankAccount != ''">
  282. bank_account = #{bankAccount},
  283. </if>
  284. <if test="banks != null and banks != ''">
  285. banks = #{banks},
  286. </if>
  287. <if test="bankBranch != null and bankBranch != ''">
  288. bank_branch = #{bankBranch},
  289. </if>
  290. <if test="bankCardNumber != null and bankCardNumber != ''">
  291. bank_card_number = #{bankCardNumber},
  292. </if>
  293. <if test="validationAmount != null">
  294. validation_amount = #{validationAmount},
  295. </if>
  296. <if test="identityType != null">
  297. identity_type = #{identityType},
  298. </if>
  299. <if test="locationProvince != null">
  300. location_province = #{locationProvince},
  301. </if>
  302. <if test="locationCity != null">
  303. location_city = #{locationCity},
  304. </if>
  305. <if test="locationArea != null">
  306. location_area = #{locationArea},
  307. </if>
  308. <if test="legalPerson != null and legalPerson != ''">
  309. legal_person = #{legalPerson},
  310. </if>
  311. <if test="legalPersonIdCard != null and legalPersonIdCard != ''">
  312. legal_person_id_card = #{legalPersonIdCard},
  313. </if>
  314. <if test="lastYearTaxReportUrl != null and lastYearTaxReportUrl != ''">
  315. last_year_tax_report_url = #{lastYearTaxReportUrl},
  316. </if>
  317. <if test="auditStatus != null">
  318. audit_status = #{auditStatus},
  319. </if>
  320. <if test="process != null">
  321. process = #{process},
  322. </if>
  323. <if test="wrongCount != null">
  324. wrong_count = #{wrongCount},
  325. </if>
  326. <if test="paymentDate != null">
  327. payment_date = #{paymentDate},
  328. </if>
  329. <if test="listed != null">
  330. listed = #{listed},
  331. </if>
  332. <if test="listedDate != null">
  333. listed_date = #{listedDate},
  334. </if>
  335. <if test="listedType != null">
  336. listed_type = #{listedType},
  337. </if>
  338. <if test="stockCode != null and stockCode != ''">
  339. stock_code = #{stockCode},
  340. </if>
  341. <if test="certificateNumber != null and certificateNumber != ''">
  342. certificate_number = #{certificateNumber},
  343. </if>
  344. <if test="issuingDate != null">
  345. issuing_date = #{issuingDate},
  346. </if>
  347. <if test="cogContacts != null">
  348. cog_contacts = #{cogContacts},
  349. </if>
  350. <if test="techPrincipal != null and techPrincipal != ''">
  351. tech_principal = #{techPrincipal},
  352. </if>
  353. <if test="contactsFixedTel != null and contactsFixedTel != ''">
  354. contacts_fixed_tel = #{contactsFixedTel},
  355. </if>
  356. <if test="contactsFax != null and contactsFax != ''">
  357. contacts_fax = #{contactsFax},
  358. </if>
  359. <if test="legalPersonTel != null and legalPersonTel != ''">
  360. legal_person_tel = #{legalPersonTel},
  361. </if>
  362. <if test="legalPersonFax != null and legalPersonFax != ''">
  363. legal_person_fax = #{legalPersonFax},
  364. </if>
  365. <if test="legalPersonEmail != null and legalPersonEmail != ''">
  366. legal_person_email = #{legalPersonEmail},
  367. </if>
  368. <if test="registrationTime != null">
  369. registration_time = #{registrationTime},
  370. </if>
  371. <if test="ratepayCode != null and ratepayCode != ''">
  372. ratepay_code = #{ratepayCode},
  373. </if>
  374. <if test="industry != null and industry != ''">
  375. industry = #{industry},
  376. </if>
  377. <if test="enterpriseScale != null and enterpriseScale != ''">
  378. enterprise_scale = #{enterpriseScale},
  379. </if>
  380. <if test="registerType != null and registerType != ''">
  381. register_type = #{registerType},
  382. </if>
  383. <if test="foreignInvestment != null and foreignInvestment != ''">
  384. foreign_investment = #{foreignInvestment},
  385. </if>
  386. <if test="field != null and field != ''">
  387. field = #{field},
  388. </if>
  389. <if test="taxAuthority != null">
  390. tax_authority = #{taxAuthority},
  391. </if>
  392. <if test="ratepayMethod != null">
  393. ratepay_method = #{ratepayMethod},
  394. </if>
  395. <if test="highTechZone != null">
  396. high_tech_zone = #{highTechZone},
  397. </if>
  398. <if test="riskInvestment != null">
  399. risk_investment = #{riskInvestment},
  400. </if>
  401. <if test="businessScope != null and businessScope != ''">
  402. business_scope = #{businessScope},
  403. </if>
  404. <if test="highTechName != null and highTechName != ''">
  405. high_tech_name = #{highTechName},
  406. </if>
  407. <if test="patentProryStatementUrl != null and patentProryStatementUrl != ''">
  408. patent_prory_statement_url = #{patentProryStatementUrl},
  409. </if>
  410. <if test="international != null">
  411. international = #{international},
  412. </if>
  413. <if test="reviewInstructions != null and reviewInstructions != ''">
  414. review_instructions = #{reviewInstructions},
  415. </if>
  416. <if test="investment != null">
  417. investment = #{investment},
  418. </if>
  419. <if test="yearSalesAmount != null">
  420. year_sales_amount = #{yearSalesAmount},
  421. </if>
  422. <if test="lastYearResearchAmount != null">
  423. last_year_research_amount = #{lastYearResearchAmount},
  424. </if>
  425. <if test="assets != null">
  426. assets = #{assets},
  427. </if>
  428. <if test="qualification != null and qualification != ''">
  429. qualification = #{qualification},
  430. </if>
  431. <if test="cooperationSituation != null and cooperationSituation != ''">
  432. cooperation_situation = #{cooperationSituation},
  433. </if>
  434. <if test="honorPicture != null and honorPicture != ''">
  435. honor_picture = #{honorPicture},
  436. </if>
  437. <if test="salesTarget != null and salesTarget != ''">
  438. sales_target = #{salesTarget},
  439. </if>
  440. <if test="intendedProject != null and intendedProject != ''">
  441. intended_project = #{intendedProject},
  442. </if>
  443. <if test="contactsDep != null and contactsDep != ''">
  444. contacts_dep = #{contactsDep},
  445. </if>
  446. <if test="contactsPosition != null and contactsPosition != ''">
  447. contacts_position = #{contactsPosition},
  448. </if>
  449. </set>
  450. where id = #{id}
  451. </update>
  452. <!--查询指定行数据-->
  453. <select id="findOrganizationIdentityList" resultMap="OrganizationIdentityMap">
  454. select
  455. <include refid="OrganizationIdentityAllSql"/>
  456. from organization_identity
  457. <where>
  458. <if test="id != null and id != ''">
  459. and id = #{id}
  460. </if>
  461. <if test="uid != null and uid != ''">
  462. and uid = #{uid}
  463. </if>
  464. <if test="contacts != null and contacts != ''">
  465. and contacts = #{contacts}
  466. </if>
  467. <if test="contactMobile != null and contactMobile != ''">
  468. and contact_mobile = #{contactMobile}
  469. </if>
  470. <if test="fixedTel != null and fixedTel != ''">
  471. and fixed_tel = #{fixedTel}
  472. </if>
  473. <if test="qq != null and qq != ''">
  474. and qq = #{qq}
  475. </if>
  476. <if test="postalAddress != null and postalAddress != ''">
  477. and postal_address = #{postalAddress}
  478. </if>
  479. <if test="postcode != null and postcode != ''">
  480. and postcode = #{postcode}
  481. </if>
  482. <if test="unitName != null and unitName != ''">
  483. and unit_name = #{unitName}
  484. </if>
  485. <if test="registeredCapital != null">
  486. and registered_capital = #{registeredCapital}
  487. </if>
  488. <if test="licenceNumber != null and licenceNumber != ''">
  489. and licence_number = #{licenceNumber}
  490. </if>
  491. <if test="licenceProvince != null">
  492. and licence_province = #{licenceProvince}
  493. </if>
  494. <if test="licenceCity != null">
  495. and licence_city = #{licenceCity}
  496. </if>
  497. <if test="licenceArea != null">
  498. and licence_area = #{licenceArea}
  499. </if>
  500. <if test="licenceScanningUrl != null and licenceScanningUrl != ''">
  501. and licence_scanning_url = #{licenceScanningUrl}
  502. </if>
  503. <if test="orgCode != null and orgCode != ''">
  504. and org_code = #{orgCode}
  505. </if>
  506. <if test="orgCodeUrl != null and orgCodeUrl != ''">
  507. and org_code_url = #{orgCodeUrl}
  508. </if>
  509. <if test="bankAccount != null and bankAccount != ''">
  510. and bank_account = #{bankAccount}
  511. </if>
  512. <if test="banks != null and banks != ''">
  513. and banks = #{banks}
  514. </if>
  515. <if test="bankBranch != null and bankBranch != ''">
  516. and bank_branch = #{bankBranch}
  517. </if>
  518. <if test="bankCardNumber != null and bankCardNumber != ''">
  519. and bank_card_number = #{bankCardNumber}
  520. </if>
  521. <if test="validationAmount != null">
  522. and validation_amount = #{validationAmount}
  523. </if>
  524. <if test="identityType != null">
  525. and identity_type = #{identityType}
  526. </if>
  527. <if test="locationProvince != null">
  528. and location_province = #{locationProvince}
  529. </if>
  530. <if test="locationCity != null">
  531. and location_city = #{locationCity}
  532. </if>
  533. <if test="locationArea != null">
  534. and location_area = #{locationArea}
  535. </if>
  536. <if test="legalPerson != null and legalPerson != ''">
  537. and legal_person = #{legalPerson}
  538. </if>
  539. <if test="legalPersonIdCard != null and legalPersonIdCard != ''">
  540. and legal_person_id_card = #{legalPersonIdCard}
  541. </if>
  542. <if test="lastYearTaxReportUrl != null and lastYearTaxReportUrl != ''">
  543. and last_year_tax_report_url = #{lastYearTaxReportUrl}
  544. </if>
  545. <if test="auditStatus != null">
  546. and audit_status = #{auditStatus}
  547. </if>
  548. <if test="process != null">
  549. and process = #{process}
  550. </if>
  551. <if test="wrongCount != null">
  552. and wrong_count = #{wrongCount}
  553. </if>
  554. <if test="paymentDate != null">
  555. and payment_date = #{paymentDate}
  556. </if>
  557. <if test="listed != null">
  558. and listed = #{listed}
  559. </if>
  560. <if test="listedDate != null">
  561. and listed_date = #{listedDate}
  562. </if>
  563. <if test="listedType != null">
  564. and listed_type = #{listedType}
  565. </if>
  566. <if test="stockCode != null and stockCode != ''">
  567. and stock_code = #{stockCode}
  568. </if>
  569. <if test="certificateNumber != null and certificateNumber != ''">
  570. and certificate_number = #{certificateNumber}
  571. </if>
  572. <if test="issuingDate != null">
  573. and issuing_date = #{issuingDate}
  574. </if>
  575. <if test="cogContacts != null">
  576. and cog_contacts = #{cogContacts}
  577. </if>
  578. <if test="techPrincipal != null and techPrincipal != ''">
  579. and tech_principal = #{techPrincipal}
  580. </if>
  581. <if test="contactsFixedTel != null and contactsFixedTel != ''">
  582. and contacts_fixed_tel = #{contactsFixedTel}
  583. </if>
  584. <if test="contactsFax != null and contactsFax != ''">
  585. and contacts_fax = #{contactsFax}
  586. </if>
  587. <if test="legalPersonTel != null and legalPersonTel != ''">
  588. and legal_person_tel = #{legalPersonTel}
  589. </if>
  590. <if test="legalPersonFax != null and legalPersonFax != ''">
  591. and legal_person_fax = #{legalPersonFax}
  592. </if>
  593. <if test="legalPersonEmail != null and legalPersonEmail != ''">
  594. and legal_person_email = #{legalPersonEmail}
  595. </if>
  596. <if test="registrationTime != null">
  597. and registration_time = #{registrationTime}
  598. </if>
  599. <if test="ratepayCode != null and ratepayCode != ''">
  600. and ratepay_code = #{ratepayCode}
  601. </if>
  602. <if test="industry != null and industry != ''">
  603. and industry = #{industry}
  604. </if>
  605. <if test="enterpriseScale != null and enterpriseScale != ''">
  606. and enterprise_scale = #{enterpriseScale}
  607. </if>
  608. <if test="registerType != null and registerType != ''">
  609. and register_type = #{registerType}
  610. </if>
  611. <if test="foreignInvestment != null and foreignInvestment != ''">
  612. and foreign_investment = #{foreignInvestment}
  613. </if>
  614. <if test="field != null and field != ''">
  615. and field = #{field}
  616. </if>
  617. <if test="taxAuthority != null">
  618. and tax_authority = #{taxAuthority}
  619. </if>
  620. <if test="ratepayMethod != null">
  621. and ratepay_method = #{ratepayMethod}
  622. </if>
  623. <if test="highTechZone != null">
  624. and high_tech_zone = #{highTechZone}
  625. </if>
  626. <if test="riskInvestment != null">
  627. and risk_investment = #{riskInvestment}
  628. </if>
  629. <if test="businessScope != null and businessScope != ''">
  630. and business_scope = #{businessScope}
  631. </if>
  632. <if test="highTechName != null and highTechName != ''">
  633. and high_tech_name = #{highTechName}
  634. </if>
  635. <if test="patentProryStatementUrl != null and patentProryStatementUrl != ''">
  636. and patent_prory_statement_url = #{patentProryStatementUrl}
  637. </if>
  638. <if test="international != null">
  639. and international = #{international}
  640. </if>
  641. <if test="reviewInstructions != null and reviewInstructions != ''">
  642. and review_instructions = #{reviewInstructions}
  643. </if>
  644. <if test="investment != null">
  645. and investment = #{investment}
  646. </if>
  647. <if test="yearSalesAmount != null">
  648. and year_sales_amount = #{yearSalesAmount}
  649. </if>
  650. <if test="lastYearResearchAmount != null">
  651. and last_year_research_amount = #{lastYearResearchAmount}
  652. </if>
  653. <if test="assets != null">
  654. and assets = #{assets}
  655. </if>
  656. <if test="qualification != null and qualification != ''">
  657. and qualification = #{qualification}
  658. </if>
  659. <if test="cooperationSituation != null and cooperationSituation != ''">
  660. and cooperation_situation = #{cooperationSituation}
  661. </if>
  662. <if test="honorPicture != null and honorPicture != ''">
  663. and honor_picture = #{honorPicture}
  664. </if>
  665. <if test="salesTarget != null and salesTarget != ''">
  666. and sales_target = #{salesTarget}
  667. </if>
  668. <if test="intendedProject != null and intendedProject != ''">
  669. and intended_project = #{intendedProject}
  670. </if>
  671. <if test="contactsDep != null and contactsDep != ''">
  672. and contacts_dep = #{contactsDep}
  673. </if>
  674. <if test="contactsPosition != null and contactsPosition != ''">
  675. and contacts_position = #{contactsPosition}
  676. </if>
  677. </where>
  678. <if test="page_sql != null">
  679. ${page_sql}
  680. </if>
  681. </select>
  682. <!--统计总行数-->
  683. <select id="findOrganizationIdentityCount" resultType="java.lang.Integer">
  684. select count(1)
  685. from organization_identity
  686. <where>
  687. <if test="id != null and id != ''">
  688. and id = #{id}
  689. </if>
  690. <if test="uid != null and uid != ''">
  691. and uid = #{uid}
  692. </if>
  693. <if test="contacts != null and contacts != ''">
  694. and contacts = #{contacts}
  695. </if>
  696. <if test="contactMobile != null and contactMobile != ''">
  697. and contact_mobile = #{contactMobile}
  698. </if>
  699. <if test="fixedTel != null and fixedTel != ''">
  700. and fixed_tel = #{fixedTel}
  701. </if>
  702. <if test="qq != null and qq != ''">
  703. and qq = #{qq}
  704. </if>
  705. <if test="postalAddress != null and postalAddress != ''">
  706. and postal_address = #{postalAddress}
  707. </if>
  708. <if test="postcode != null and postcode != ''">
  709. and postcode = #{postcode}
  710. </if>
  711. <if test="unitName != null and unitName != ''">
  712. and unit_name = #{unitName}
  713. </if>
  714. <if test="registeredCapital != null">
  715. and registered_capital = #{registeredCapital}
  716. </if>
  717. <if test="licenceNumber != null and licenceNumber != ''">
  718. and licence_number = #{licenceNumber}
  719. </if>
  720. <if test="licenceProvince != null">
  721. and licence_province = #{licenceProvince}
  722. </if>
  723. <if test="licenceCity != null">
  724. and licence_city = #{licenceCity}
  725. </if>
  726. <if test="licenceArea != null">
  727. and licence_area = #{licenceArea}
  728. </if>
  729. <if test="licenceScanningUrl != null and licenceScanningUrl != ''">
  730. and licence_scanning_url = #{licenceScanningUrl}
  731. </if>
  732. <if test="orgCode != null and orgCode != ''">
  733. and org_code = #{orgCode}
  734. </if>
  735. <if test="orgCodeUrl != null and orgCodeUrl != ''">
  736. and org_code_url = #{orgCodeUrl}
  737. </if>
  738. <if test="bankAccount != null and bankAccount != ''">
  739. and bank_account = #{bankAccount}
  740. </if>
  741. <if test="banks != null and banks != ''">
  742. and banks = #{banks}
  743. </if>
  744. <if test="bankBranch != null and bankBranch != ''">
  745. and bank_branch = #{bankBranch}
  746. </if>
  747. <if test="bankCardNumber != null and bankCardNumber != ''">
  748. and bank_card_number = #{bankCardNumber}
  749. </if>
  750. <if test="validationAmount != null">
  751. and validation_amount = #{validationAmount}
  752. </if>
  753. <if test="identityType != null">
  754. and identity_type = #{identityType}
  755. </if>
  756. <if test="locationProvince != null">
  757. and location_province = #{locationProvince}
  758. </if>
  759. <if test="locationCity != null">
  760. and location_city = #{locationCity}
  761. </if>
  762. <if test="locationArea != null">
  763. and location_area = #{locationArea}
  764. </if>
  765. <if test="legalPerson != null and legalPerson != ''">
  766. and legal_person = #{legalPerson}
  767. </if>
  768. <if test="legalPersonIdCard != null and legalPersonIdCard != ''">
  769. and legal_person_id_card = #{legalPersonIdCard}
  770. </if>
  771. <if test="lastYearTaxReportUrl != null and lastYearTaxReportUrl != ''">
  772. and last_year_tax_report_url = #{lastYearTaxReportUrl}
  773. </if>
  774. <if test="auditStatus != null">
  775. and audit_status = #{auditStatus}
  776. </if>
  777. <if test="process != null">
  778. and process = #{process}
  779. </if>
  780. <if test="wrongCount != null">
  781. and wrong_count = #{wrongCount}
  782. </if>
  783. <if test="paymentDate != null">
  784. and payment_date = #{paymentDate}
  785. </if>
  786. <if test="listed != null">
  787. and listed = #{listed}
  788. </if>
  789. <if test="listedDate != null">
  790. and listed_date = #{listedDate}
  791. </if>
  792. <if test="listedType != null">
  793. and listed_type = #{listedType}
  794. </if>
  795. <if test="stockCode != null and stockCode != ''">
  796. and stock_code = #{stockCode}
  797. </if>
  798. <if test="certificateNumber != null and certificateNumber != ''">
  799. and certificate_number = #{certificateNumber}
  800. </if>
  801. <if test="issuingDate != null">
  802. and issuing_date = #{issuingDate}
  803. </if>
  804. <if test="cogContacts != null">
  805. and cog_contacts = #{cogContacts}
  806. </if>
  807. <if test="techPrincipal != null and techPrincipal != ''">
  808. and tech_principal = #{techPrincipal}
  809. </if>
  810. <if test="contactsFixedTel != null and contactsFixedTel != ''">
  811. and contacts_fixed_tel = #{contactsFixedTel}
  812. </if>
  813. <if test="contactsFax != null and contactsFax != ''">
  814. and contacts_fax = #{contactsFax}
  815. </if>
  816. <if test="legalPersonTel != null and legalPersonTel != ''">
  817. and legal_person_tel = #{legalPersonTel}
  818. </if>
  819. <if test="legalPersonFax != null and legalPersonFax != ''">
  820. and legal_person_fax = #{legalPersonFax}
  821. </if>
  822. <if test="legalPersonEmail != null and legalPersonEmail != ''">
  823. and legal_person_email = #{legalPersonEmail}
  824. </if>
  825. <if test="registrationTime != null">
  826. and registration_time = #{registrationTime}
  827. </if>
  828. <if test="ratepayCode != null and ratepayCode != ''">
  829. and ratepay_code = #{ratepayCode}
  830. </if>
  831. <if test="industry != null and industry != ''">
  832. and industry = #{industry}
  833. </if>
  834. <if test="enterpriseScale != null and enterpriseScale != ''">
  835. and enterprise_scale = #{enterpriseScale}
  836. </if>
  837. <if test="registerType != null and registerType != ''">
  838. and register_type = #{registerType}
  839. </if>
  840. <if test="foreignInvestment != null and foreignInvestment != ''">
  841. and foreign_investment = #{foreignInvestment}
  842. </if>
  843. <if test="field != null and field != ''">
  844. and field = #{field}
  845. </if>
  846. <if test="taxAuthority != null">
  847. and tax_authority = #{taxAuthority}
  848. </if>
  849. <if test="ratepayMethod != null">
  850. and ratepay_method = #{ratepayMethod}
  851. </if>
  852. <if test="highTechZone != null">
  853. and high_tech_zone = #{highTechZone}
  854. </if>
  855. <if test="riskInvestment != null">
  856. and risk_investment = #{riskInvestment}
  857. </if>
  858. <if test="businessScope != null and businessScope != ''">
  859. and business_scope = #{businessScope}
  860. </if>
  861. <if test="highTechName != null and highTechName != ''">
  862. and high_tech_name = #{highTechName}
  863. </if>
  864. <if test="patentProryStatementUrl != null and patentProryStatementUrl != ''">
  865. and patent_prory_statement_url = #{patentProryStatementUrl}
  866. </if>
  867. <if test="international != null">
  868. and international = #{international}
  869. </if>
  870. <if test="reviewInstructions != null and reviewInstructions != ''">
  871. and review_instructions = #{reviewInstructions}
  872. </if>
  873. <if test="investment != null">
  874. and investment = #{investment}
  875. </if>
  876. <if test="yearSalesAmount != null">
  877. and year_sales_amount = #{yearSalesAmount}
  878. </if>
  879. <if test="lastYearResearchAmount != null">
  880. and last_year_research_amount = #{lastYearResearchAmount}
  881. </if>
  882. <if test="assets != null">
  883. and assets = #{assets}
  884. </if>
  885. <if test="qualification != null and qualification != ''">
  886. and qualification = #{qualification}
  887. </if>
  888. <if test="cooperationSituation != null and cooperationSituation != ''">
  889. and cooperation_situation = #{cooperationSituation}
  890. </if>
  891. <if test="honorPicture != null and honorPicture != ''">
  892. and honor_picture = #{honorPicture}
  893. </if>
  894. <if test="salesTarget != null and salesTarget != ''">
  895. and sales_target = #{salesTarget}
  896. </if>
  897. <if test="intendedProject != null and intendedProject != ''">
  898. and intended_project = #{intendedProject}
  899. </if>
  900. <if test="contactsDep != null and contactsDep != ''">
  901. and contacts_dep = #{contactsDep}
  902. </if>
  903. <if test="contactsPosition != null and contactsPosition != ''">
  904. and contacts_position = #{contactsPosition}
  905. </if>
  906. </where>
  907. </select>
  908. <!--通过主键删除-->
  909. <delete id="deleteById">
  910. delete
  911. from organization_identity
  912. where id = #{id}
  913. </delete>
  914. <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrganizationIdentity">
  915. update organization_identity
  916. <set>
  917. <if test="uid != null">
  918. `uid` = #{uid,jdbcType=VARCHAR},
  919. </if>
  920. <if test="contacts != null">
  921. contacts = #{contacts,jdbcType=VARCHAR},
  922. </if>
  923. <if test="contactMobile != null">
  924. contact_mobile = #{contactMobile,jdbcType=VARCHAR},
  925. </if>
  926. <if test="fixedTel != null">
  927. fixed_tel = #{fixedTel,jdbcType=VARCHAR},
  928. </if>
  929. <if test="qq != null">
  930. qq = #{qq,jdbcType=VARCHAR},
  931. </if>
  932. <if test="postalAddress != null">
  933. postal_address = #{postalAddress,jdbcType=VARCHAR},
  934. </if>
  935. <if test="postcode != null">
  936. postcode = #{postcode,jdbcType=VARCHAR},
  937. </if>
  938. <if test="unitName != null">
  939. unit_name = #{unitName,jdbcType=VARCHAR},
  940. </if>
  941. <if test="registeredCapital != null">
  942. registered_capital = #{registeredCapital,jdbcType=DECIMAL},
  943. </if>
  944. <if test="licenceNumber != null">
  945. licence_number = #{licenceNumber,jdbcType=VARCHAR},
  946. </if>
  947. <if test="licenceProvince != null">
  948. licence_province = #{licenceProvince,jdbcType=INTEGER},
  949. </if>
  950. <if test="licenceCity != null">
  951. licence_city = #{licenceCity,jdbcType=INTEGER},
  952. </if>
  953. <if test="licenceArea != null">
  954. licence_area = #{licenceArea,jdbcType=INTEGER},
  955. </if>
  956. <if test="licenceScanningUrl != null">
  957. licence_scanning_url = #{licenceScanningUrl,jdbcType=VARCHAR},
  958. </if>
  959. <if test="orgCode != null">
  960. org_code = #{orgCode,jdbcType=VARCHAR},
  961. </if>
  962. <if test="orgCodeUrl != null">
  963. org_code_url = #{orgCodeUrl,jdbcType=VARCHAR},
  964. </if>
  965. <if test="bankAccount != null">
  966. bank_account = #{bankAccount,jdbcType=VARCHAR},
  967. </if>
  968. <if test="banks != null">
  969. banks = #{banks,jdbcType=VARCHAR},
  970. </if>
  971. <if test="bankBranch != null">
  972. bank_branch = #{bankBranch,jdbcType=VARCHAR},
  973. </if>
  974. <if test="bankCardNumber != null">
  975. bank_card_number = #{bankCardNumber,jdbcType=VARCHAR},
  976. </if>
  977. <if test="validationAmount != null">
  978. validation_amount = #{validationAmount,jdbcType=DECIMAL},
  979. </if>
  980. <if test="identityType != null">
  981. identity_type = #{identityType,jdbcType=INTEGER},
  982. </if>
  983. <if test="locationProvince != null">
  984. location_province = #{locationProvince,jdbcType=INTEGER},
  985. </if>
  986. <if test="locationCity != null">
  987. location_city = #{locationCity,jdbcType=INTEGER},
  988. </if>
  989. <if test="locationArea != null">
  990. location_area = #{locationArea,jdbcType=INTEGER},
  991. </if>
  992. <if test="legalPerson != null">
  993. legal_person = #{legalPerson,jdbcType=VARCHAR},
  994. </if>
  995. <if test="legalPersonIdCard != null">
  996. legal_person_id_card = #{legalPersonIdCard,jdbcType=VARCHAR},
  997. </if>
  998. <if test="lastYearTaxReportUrl != null">
  999. last_year_tax_report_url = #{lastYearTaxReportUrl,jdbcType=VARCHAR},
  1000. </if>
  1001. <if test="auditStatus != null">
  1002. audit_status = #{auditStatus,jdbcType=INTEGER},
  1003. </if>
  1004. <if test="process != null">
  1005. `process` = #{process,jdbcType=INTEGER},
  1006. </if>
  1007. <if test="wrongCount != null">
  1008. wrong_count = #{wrongCount,jdbcType=INTEGER},
  1009. </if>
  1010. <if test="paymentDate != null">
  1011. payment_date = #{paymentDate,jdbcType=TIMESTAMP},
  1012. </if>
  1013. <if test="listed != null">
  1014. listed = #{listed,jdbcType=INTEGER},
  1015. </if>
  1016. <if test="listedDate != null">
  1017. listed_date = #{listedDate,jdbcType=TIMESTAMP},
  1018. </if>
  1019. <if test="listedType != null">
  1020. listed_type = #{listedType,jdbcType=INTEGER},
  1021. </if>
  1022. <if test="stockCode != null">
  1023. stock_code = #{stockCode,jdbcType=VARCHAR},
  1024. </if>
  1025. <if test="certificateNumber != null">
  1026. certificate_number = #{certificateNumber,jdbcType=VARCHAR},
  1027. </if>
  1028. <if test="issuingDate != null">
  1029. issuing_date = #{issuingDate,jdbcType=TIMESTAMP},
  1030. </if>
  1031. <if test="cogContacts != null">
  1032. cog_contacts = #{cogContacts,jdbcType=INTEGER},
  1033. </if>
  1034. <if test="techPrincipal != null">
  1035. tech_principal = #{techPrincipal,jdbcType=VARCHAR},
  1036. </if>
  1037. <if test="contactsFixedTel != null">
  1038. contacts_fixed_tel = #{contactsFixedTel,jdbcType=VARCHAR},
  1039. </if>
  1040. <if test="contactsFax != null">
  1041. contacts_fax = #{contactsFax,jdbcType=VARCHAR},
  1042. </if>
  1043. <if test="legalPersonTel != null">
  1044. legal_person_tel = #{legalPersonTel,jdbcType=VARCHAR},
  1045. </if>
  1046. <if test="legalPersonFax != null">
  1047. legal_person_fax = #{legalPersonFax,jdbcType=VARCHAR},
  1048. </if>
  1049. <if test="legalPersonEmail != null">
  1050. legal_person_email = #{legalPersonEmail,jdbcType=VARCHAR},
  1051. </if>
  1052. <if test="registrationTime != null">
  1053. registration_time = #{registrationTime,jdbcType=TIMESTAMP},
  1054. </if>
  1055. <if test="ratepayCode != null">
  1056. ratepay_code = #{ratepayCode,jdbcType=VARCHAR},
  1057. </if>
  1058. <if test="industry != null">
  1059. industry = #{industry,jdbcType=INTEGER},
  1060. </if>
  1061. <if test="enterpriseScale != null">
  1062. enterprise_scale = #{enterpriseScale,jdbcType=VARCHAR},
  1063. </if>
  1064. <if test="registerType != null">
  1065. register_type = #{registerType,jdbcType=VARCHAR},
  1066. </if>
  1067. <if test="foreignInvestment != null">
  1068. foreign_investment = #{foreignInvestment,jdbcType=VARCHAR},
  1069. </if>
  1070. <if test="field != null">
  1071. field = #{field,jdbcType=VARCHAR},
  1072. </if>
  1073. <if test="taxAuthority != null">
  1074. tax_authority = #{taxAuthority,jdbcType=INTEGER},
  1075. </if>
  1076. <if test="ratepayMethod != null">
  1077. ratepay_method = #{ratepayMethod,jdbcType=INTEGER},
  1078. </if>
  1079. <if test="highTechZone != null">
  1080. high_tech_zone = #{highTechZone,jdbcType=INTEGER},
  1081. </if>
  1082. <if test="riskInvestment != null">
  1083. risk_investment = #{riskInvestment,jdbcType=INTEGER},
  1084. </if>
  1085. <if test="businessScope != null">
  1086. business_scope = #{businessScope,jdbcType=VARCHAR},
  1087. </if>
  1088. <if test="highTechName != null">
  1089. high_tech_name = #{highTechName,jdbcType=VARCHAR},
  1090. </if>
  1091. <if test="patentProryStatementUrl != null">
  1092. patent_prory_statement_url = #{patentProryStatementUrl,jdbcType=VARCHAR},
  1093. </if>
  1094. <if test="international != null">
  1095. international = #{international,jdbcType=INTEGER},
  1096. </if>
  1097. <if test="reviewInstructions != null">
  1098. review_instructions = #{reviewInstructions,jdbcType=VARCHAR},
  1099. </if>
  1100. <if test="investment != null">
  1101. investment = #{investment,jdbcType=INTEGER},
  1102. </if>
  1103. <if test="yearSalesAmount != null">
  1104. year_sales_amount = #{yearSalesAmount,jdbcType=DECIMAL},
  1105. </if>
  1106. <if test="lastYearResearchAmount != null">
  1107. last_year_research_amount = #{lastYearResearchAmount,jdbcType=DECIMAL},
  1108. </if>
  1109. <if test="assets != null">
  1110. assets = #{assets,jdbcType=DECIMAL},
  1111. </if>
  1112. <if test="qualification != null">
  1113. qualification = #{qualification,jdbcType=VARCHAR},
  1114. </if>
  1115. <if test="cooperationSituation != null">
  1116. cooperation_situation = #{cooperationSituation,jdbcType=VARCHAR},
  1117. </if>
  1118. <if test="honorPicture != null">
  1119. honor_picture = #{honorPicture,jdbcType=VARCHAR},
  1120. </if>
  1121. <if test="salesTarget != null">
  1122. sales_target = #{salesTarget,jdbcType=VARCHAR},
  1123. </if>
  1124. <if test="intendedProject != null">
  1125. intended_project = #{intendedProject,jdbcType=VARCHAR},
  1126. </if>
  1127. <if test="contactsDep != null">
  1128. contacts_dep = #{contactsDep,jdbcType=VARCHAR},
  1129. </if>
  1130. <if test="contactsPosition != null">
  1131. contacts_position = #{contactsPosition,jdbcType=VARCHAR},
  1132. </if>
  1133. </set>
  1134. where id = #{id,jdbcType=VARCHAR}
  1135. </update>
  1136. <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.OrganizationIdentity">
  1137. update organization_identity
  1138. set `uid` = #{uid,jdbcType=VARCHAR},
  1139. contacts = #{contacts,jdbcType=VARCHAR},
  1140. contact_mobile = #{contactMobile,jdbcType=VARCHAR},
  1141. fixed_tel = #{fixedTel,jdbcType=VARCHAR},
  1142. qq = #{qq,jdbcType=VARCHAR},
  1143. postal_address = #{postalAddress,jdbcType=VARCHAR},
  1144. postcode = #{postcode,jdbcType=VARCHAR},
  1145. unit_name = #{unitName,jdbcType=VARCHAR},
  1146. registered_capital = #{registeredCapital,jdbcType=DECIMAL},
  1147. licence_number = #{licenceNumber,jdbcType=VARCHAR},
  1148. licence_province = #{licenceProvince,jdbcType=INTEGER},
  1149. licence_city = #{licenceCity,jdbcType=INTEGER},
  1150. licence_area = #{licenceArea,jdbcType=INTEGER},
  1151. licence_scanning_url = #{licenceScanningUrl,jdbcType=VARCHAR},
  1152. org_code = #{orgCode,jdbcType=VARCHAR},
  1153. org_code_url = #{orgCodeUrl,jdbcType=VARCHAR},
  1154. bank_account = #{bankAccount,jdbcType=VARCHAR},
  1155. banks = #{banks,jdbcType=VARCHAR},
  1156. bank_branch = #{bankBranch,jdbcType=VARCHAR},
  1157. bank_card_number = #{bankCardNumber,jdbcType=VARCHAR},
  1158. validation_amount = #{validationAmount,jdbcType=DECIMAL},
  1159. identity_type = #{identityType,jdbcType=INTEGER},
  1160. location_province = #{locationProvince,jdbcType=INTEGER},
  1161. location_city = #{locationCity,jdbcType=INTEGER},
  1162. location_area = #{locationArea,jdbcType=INTEGER},
  1163. legal_person = #{legalPerson,jdbcType=VARCHAR},
  1164. legal_person_id_card = #{legalPersonIdCard,jdbcType=VARCHAR},
  1165. last_year_tax_report_url = #{lastYearTaxReportUrl,jdbcType=VARCHAR},
  1166. audit_status = #{auditStatus,jdbcType=INTEGER},
  1167. `process` = #{process,jdbcType=INTEGER},
  1168. wrong_count = #{wrongCount,jdbcType=INTEGER},
  1169. payment_date = #{paymentDate,jdbcType=TIMESTAMP},
  1170. listed = #{listed,jdbcType=INTEGER},
  1171. listed_date = #{listedDate,jdbcType=TIMESTAMP},
  1172. listed_type = #{listedType,jdbcType=INTEGER},
  1173. stock_code = #{stockCode,jdbcType=VARCHAR},
  1174. certificate_number = #{certificateNumber,jdbcType=VARCHAR},
  1175. issuing_date = #{issuingDate,jdbcType=TIMESTAMP},
  1176. cog_contacts = #{cogContacts,jdbcType=INTEGER},
  1177. tech_principal = #{techPrincipal,jdbcType=VARCHAR},
  1178. contacts_fixed_tel = #{contactsFixedTel,jdbcType=VARCHAR},
  1179. contacts_fax = #{contactsFax,jdbcType=VARCHAR},
  1180. legal_person_tel = #{legalPersonTel,jdbcType=VARCHAR},
  1181. legal_person_fax = #{legalPersonFax,jdbcType=VARCHAR},
  1182. legal_person_email = #{legalPersonEmail,jdbcType=VARCHAR},
  1183. registration_time = #{registrationTime,jdbcType=TIMESTAMP},
  1184. ratepay_code = #{ratepayCode,jdbcType=VARCHAR},
  1185. industry = #{industry,jdbcType=INTEGER},
  1186. enterprise_scale = #{enterpriseScale,jdbcType=VARCHAR},
  1187. register_type = #{registerType,jdbcType=VARCHAR},
  1188. foreign_investment = #{foreignInvestment,jdbcType=VARCHAR},
  1189. field = #{field,jdbcType=VARCHAR},
  1190. tax_authority = #{taxAuthority,jdbcType=INTEGER},
  1191. ratepay_method = #{ratepayMethod,jdbcType=INTEGER},
  1192. high_tech_zone = #{highTechZone,jdbcType=INTEGER},
  1193. risk_investment = #{riskInvestment,jdbcType=INTEGER},
  1194. business_scope = #{businessScope,jdbcType=VARCHAR},
  1195. high_tech_name = #{highTechName,jdbcType=VARCHAR},
  1196. patent_prory_statement_url = #{patentProryStatementUrl,jdbcType=VARCHAR},
  1197. international = #{international,jdbcType=INTEGER},
  1198. review_instructions = #{reviewInstructions,jdbcType=VARCHAR},
  1199. investment = #{investment,jdbcType=INTEGER},
  1200. year_sales_amount = #{yearSalesAmount,jdbcType=DECIMAL},
  1201. last_year_research_amount = #{lastYearResearchAmount,jdbcType=DECIMAL},
  1202. assets = #{assets,jdbcType=DECIMAL},
  1203. qualification = #{qualification,jdbcType=VARCHAR},
  1204. cooperation_situation = #{cooperationSituation,jdbcType=VARCHAR},
  1205. honor_picture = #{honorPicture,jdbcType=VARCHAR},
  1206. sales_target = #{salesTarget,jdbcType=VARCHAR},
  1207. intended_project = #{intendedProject,jdbcType=VARCHAR},
  1208. contacts_dep = #{contactsDep,jdbcType=VARCHAR},
  1209. contacts_position = #{contactsPosition,jdbcType=VARCHAR}
  1210. where id = #{id,jdbcType=VARCHAR}
  1211. </update>
  1212. <select id="selectOrgIdentityByUserId" parameterType="java.lang.String" resultMap="OrganizationIdentityMap">
  1213. select
  1214. <include refid="OrganizationIdentityAllSql" />
  1215. from organization_identity
  1216. where uid = #{uid,jdbcType=VARCHAR}
  1217. </select>
  1218. <select id="selectOrgIdentityBoByUserId" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgIdentityBo">
  1219. select
  1220. t.id,t.uid,t.contacts,t.fixed_tel as fixedTel,
  1221. t.qq,t.postal_address
  1222. as postalAddress ,t.postcode,
  1223. u.email ,t.legal_person
  1224. as legalPerson
  1225. from user u LEFT JOIN organization_identity t
  1226. on t.uid =
  1227. u.id
  1228. where t.uid=#{uid,jdbcType=VARCHAR}
  1229. </select>
  1230. <select id="selectAllOrgIndentity" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgUnitNames">
  1231. select u.id as uid, i.unit_name as unitName
  1232. from user u INNER JOIN
  1233. organization_identity i on u.id = i.uid
  1234. where
  1235. i.audit_status = 5
  1236. and u.lvl &gt; 0
  1237. <if test="_parameter != null">
  1238. and u.aid = #{aid,jdbcType=VARCHAR}
  1239. </if>
  1240. </select>
  1241. <select id="selectBasicInfo" resultType="com.goafanti.user.bo.OrgBasicInfoBo">
  1242. select oi.id,
  1243. oi.uid as
  1244. uid, oi.unit_name as unitName, oi.licence_province as licenceProvince,
  1245. oi.licence_city as licenceCity, oi.licence_area as licenceArea, oi.postal_address as
  1246. postalAddress,
  1247. oi.contacts_fixed_tel as
  1248. contactsFixedTel, oi.contacts_fax as
  1249. contactsFax,oi.legal_person_tel as
  1250. legalPersonTel,
  1251. oi.legal_person_fax as legalPersonFax,
  1252. oi.legal_person_email as legalPersonEmail,
  1253. oi.registered_capital as
  1254. registeredCapital,
  1255. oi.registration_time as registrationTime,
  1256. oi.legal_person as legalPerson,
  1257. oi.legal_person_id_card as
  1258. legalPersonIdCard, oi.org_code as orgCode,
  1259. oi.ratepay_code as
  1260. ratepayCode, oi.industry, oi.enterprise_scale as
  1261. enterpriseScale,
  1262. oi.register_type as registerType,
  1263. oi.foreign_investment as
  1264. foreignInvestment, oi.field, oi.tax_authority
  1265. as taxAuthority,
  1266. oi.listed_date as listedDate,
  1267. oi.ratepay_method as ratepayMethod,
  1268. oi.listed, oi.high_tech_zone as highTechZone,
  1269. oi.risk_investment as
  1270. riskInvestment, oi.stock_code as stockCode,
  1271. oi.business_scope as
  1272. businessScope, oi.high_tech_name as highTechName,
  1273. oi.listed_type as
  1274. listedType,
  1275. ohr.id as hid, ohr.firm_total as firmTotal, ohr.tech_total
  1276. as techTotal
  1277. from organization_identity oi
  1278. LEFT JOIN org_human_resource
  1279. ohr
  1280. on oi.uid = ohr.uid and ohr.year = #{1}
  1281. where oi.uid = #{0}
  1282. </select>
  1283. <select id="selectOrgIdentityDetailByUserId" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgIdentityDetailBo">
  1284. select
  1285. id, uid, unit_name as unitName, identity_type as identityType,
  1286. legal_person as legalPerson, legal_person_id_card as legalPersonIdCard, registration_time as registrationTime,
  1287. licence_number as licenceNumber, licence_province as licenceProvince, licence_city as licenceCity,
  1288. licence_area as licenceArea, licence_scanning_url as licenceScanningUrl, org_code as orgCode,
  1289. org_code_url as orgCodeUrl, banks, bank_branch as bankBranch, bank_card_number as bankCardNumber,
  1290. location_province as locationProvince, location_city as locationCity, location_area as locationArea,
  1291. validation_amount as validationAmount, payment_date as paymentDate, audit_status as auditStatus,
  1292. last_year_tax_report_url as lastYearTaxReportUrl
  1293. from organization_identity
  1294. where uid = #{uid,jdbcType=VARCHAR}
  1295. </select>
  1296. <select id="selectAuditorOrgIdentityDetailByUserId" resultType="com.goafanti.user.bo.AuditorOrgIdentityDetailBo">
  1297. select
  1298. u.aid, u.mid, u.lvl,
  1299. oi.id, oi.uid, oi.unit_name as unitName, oi.identity_type as identityType,
  1300. oi.legal_person as legalPerson, oi.legal_person_id_card as legalPersonIdCard, oi.registration_time as registrationTime,
  1301. oi.licence_number as licenceNumber, oi.licence_province as licenceProvince, oi.licence_city as licenceCity,
  1302. oi.licence_area as licenceArea, oi.licence_scanning_url as licenceScanningUrl, oi.org_code as orgCode,
  1303. oi.org_code_url as orgCodeUrl, oi.banks, bank_branch as bankBranch, oi.bank_card_number as bankCardNumber,
  1304. oi.location_province as locationProvince, oi.location_city as locationCity, oi.location_area as locationArea,
  1305. oi.validation_amount as validationAmount, oi.payment_date as paymentDate, oi.audit_status as auditStatus,
  1306. oi.last_year_tax_report_url as lastYearTaxReportUrl, oi.field, oi.registered_capital as registeredCapital,
  1307. ratepay.id as ratepayId
  1308. from user u
  1309. LEFT JOIN organization_identity oi on oi.uid = u.id
  1310. LEFT JOIN org_ratepay ratepay on ratepay.uid = u.id and ratepay.year = #{year,jdbcType=INTEGER} and deleted_sign = 0
  1311. where u.id = #{uid,jdbcType=VARCHAR}
  1312. </select>
  1313. <select id="selectManagerUnitNames" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgUnitNames">
  1314. select u.id as uid, i.unit_name as unitName
  1315. from user u INNER JOIN
  1316. organization_identity i on u.id = i.uid
  1317. where u.lvl = 1
  1318. <if test="_parameter != null">
  1319. and u.mid = #{aid,jdbcType=VARCHAR}
  1320. </if>
  1321. </select>
  1322. <select id="selectManagerAchievementOrgOwner" resultType="com.goafanti.user.bo.OrgUnitNames">
  1323. select u.id as uid, i.unit_name as unitName
  1324. from user u INNER JOIN
  1325. organization_identity i on u.id = i.uid
  1326. where u.lvl = 1 and i.unit_name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
  1327. <if test="aid != null">
  1328. and u.mid = #{aid,jdbcType=VARCHAR}
  1329. </if>
  1330. </select>
  1331. <select id="selectAchievementOrgOwner" resultType="com.goafanti.user.bo.OrgUnitNames">
  1332. select u.id as uid, i.unit_name as unitName
  1333. from user u INNER JOIN
  1334. organization_identity i on u.id = i.uid
  1335. where u.lvl = 1 and i.unit_name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
  1336. <if test="aid != null">
  1337. and u.aid = #{aid,jdbcType=VARCHAR}
  1338. </if>
  1339. </select>
  1340. <select id="findSearchSubscriberListByPage" parameterType="String" resultType="com.goafanti.portal.bo.OrgSubscriberListBo">
  1341. SELECT
  1342. u.id as uid,
  1343. oi.unit_name as unitName,
  1344. u.number,
  1345. oi.id as identityId,
  1346. info.logo_url as logoUrl,
  1347. oi.licence_province as province,
  1348. adc.achievement_count as achievementNum,
  1349. adc.demand_count as demandNum
  1350. FROM
  1351. <![CDATA[ user ]]> u
  1352. LEFT JOIN organization_identity oi ON oi.uid = u.id
  1353. LEFT JOIN organization_info info on info.uid = u.id
  1354. LEFT JOIN organization_tech ot on ot.uid = u.id
  1355. LEFT JOIN achievement_demand_count adc on adc.uid = u.id
  1356. WHERE
  1357. u.type = 1
  1358. <if test="null != level and level==1 ">
  1359. AND u.lvl <![CDATA[ >= ]]> 1
  1360. </if>
  1361. <if test="null !=level and level==0">
  1362. AND u.lvl = 0
  1363. </if>
  1364. <if test="province != null">
  1365. AND oi.licence_province = #{province,jdbcType=INTEGER}
  1366. </if>
  1367. <if test="city != null">
  1368. AND oi.licence_city = #{city,jdbcType=INTEGER}
  1369. </if>
  1370. <if test="area != null">
  1371. AND oi.licence_area = #{area,jdbcType=INTEGER}
  1372. </if>
  1373. <if test="field != null">
  1374. AND ot.search_area_category like CONCAT(#{field,jdbcType=VARCHAR},'%')
  1375. </if>
  1376. <if test="name != null">
  1377. AND oi.unit_name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
  1378. </if>
  1379. ORDER BY u.number
  1380. <if test="page_sql!=null">
  1381. ${page_sql}
  1382. </if>
  1383. </select>
  1384. <select id="findSearchSubscriberCount" parameterType="String" resultType="java.lang.Integer">
  1385. SELECT
  1386. count(1)
  1387. FROM
  1388. <![CDATA[ user ]]> u
  1389. LEFT JOIN organization_identity oi ON oi.uid = u.id
  1390. LEFT JOIN organization_info info on info.uid = u.id
  1391. LEFT JOIN organization_tech ot on ot.uid = u.id
  1392. WHERE
  1393. u.type = 1
  1394. <if test="null != level and level==1 ">
  1395. AND u.lvl <![CDATA[ >= ]]> 1
  1396. </if>
  1397. <if test="null !=level and level==0">
  1398. AND u.lvl = 0
  1399. </if>
  1400. <if test="province != null">
  1401. AND oi.licence_province = #{province,jdbcType=INTEGER}
  1402. </if>
  1403. <if test="city != null">
  1404. AND oi.licence_city = #{city,jdbcType=INTEGER}
  1405. </if>
  1406. <if test="area != null">
  1407. AND oi.licence_area = #{area,jdbcType=INTEGER}
  1408. </if>
  1409. <if test="field != null">
  1410. AND ot.search_area_category like CONCAT(#{field,jdbcType=VARCHAR},'%')
  1411. </if>
  1412. <if test="name != null">
  1413. AND oi.unit_name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
  1414. </if>
  1415. </select>
  1416. <update id="updateServiceByUid" parameterType="com.goafanti.common.model.OrganizationIdentity">
  1417. update organization_identity
  1418. <set>
  1419. <if test="contacts != null">
  1420. contacts = #{contacts,jdbcType=VARCHAR},
  1421. </if>
  1422. <if test="contactMobile != null">
  1423. contact_mobile = #{contactMobile,jdbcType=VARCHAR},
  1424. </if>
  1425. <if test="fixedTel != null">
  1426. fixed_tel = #{fixedTel,jdbcType=VARCHAR},
  1427. </if>
  1428. <if test="qq != null">
  1429. qq = #{qq,jdbcType=VARCHAR},
  1430. </if>
  1431. <if test="postalAddress != null">
  1432. postal_address = #{postalAddress,jdbcType=VARCHAR},
  1433. </if>
  1434. <if test="postcode != null">
  1435. postcode = #{postcode,jdbcType=VARCHAR},
  1436. </if>
  1437. <if test="unitName != null">
  1438. unit_name = #{unitName,jdbcType=VARCHAR},
  1439. </if>
  1440. <if test="registeredCapital != null">
  1441. registered_capital = #{registeredCapital,jdbcType=DECIMAL},
  1442. </if>
  1443. <if test="licenceNumber != null">
  1444. licence_number = #{licenceNumber,jdbcType=VARCHAR},
  1445. </if>
  1446. <if test="licenceProvince != null">
  1447. licence_province = #{licenceProvince,jdbcType=INTEGER},
  1448. </if>
  1449. <if test="licenceCity != null">
  1450. licence_city = #{licenceCity,jdbcType=INTEGER},
  1451. </if>
  1452. <if test="licenceArea != null">
  1453. licence_area = #{licenceArea,jdbcType=INTEGER},
  1454. </if>
  1455. <if test="licenceScanningUrl != null">
  1456. licence_scanning_url = #{licenceScanningUrl,jdbcType=VARCHAR},
  1457. </if>
  1458. <if test="orgCode != null">
  1459. org_code = #{orgCode,jdbcType=VARCHAR},
  1460. </if>
  1461. <if test="orgCodeUrl != null">
  1462. org_code_url = #{orgCodeUrl,jdbcType=VARCHAR},
  1463. </if>
  1464. <if test="bankAccount != null">
  1465. bank_account = #{bankAccount,jdbcType=VARCHAR},
  1466. </if>
  1467. <if test="banks != null">
  1468. banks = #{banks,jdbcType=VARCHAR},
  1469. </if>
  1470. <if test="bankBranch != null">
  1471. bank_branch = #{bankBranch,jdbcType=VARCHAR},
  1472. </if>
  1473. <if test="bankCardNumber != null">
  1474. bank_card_number = #{bankCardNumber,jdbcType=VARCHAR},
  1475. </if>
  1476. <if test="validationAmount != null">
  1477. validation_amount = #{validationAmount,jdbcType=DECIMAL},
  1478. </if>
  1479. <if test="identityType != null">
  1480. identity_type = #{identityType,jdbcType=INTEGER},
  1481. </if>
  1482. <if test="locationProvince != null">
  1483. location_province = #{locationProvince,jdbcType=INTEGER},
  1484. </if>
  1485. <if test="locationCity != null">
  1486. location_city = #{locationCity,jdbcType=INTEGER},
  1487. </if>
  1488. <if test="locationArea != null">
  1489. location_area = #{locationArea,jdbcType=INTEGER},
  1490. </if>
  1491. <if test="legalPerson != null">
  1492. legal_person = #{legalPerson,jdbcType=VARCHAR},
  1493. </if>
  1494. <if test="legalPersonIdCard != null">
  1495. legal_person_id_card = #{legalPersonIdCard,jdbcType=VARCHAR},
  1496. </if>
  1497. <if test="lastYearTaxReportUrl != null">
  1498. last_year_tax_report_url = #{lastYearTaxReportUrl,jdbcType=VARCHAR},
  1499. </if>
  1500. <if test="auditStatus != null">
  1501. audit_status = #{auditStatus,jdbcType=INTEGER},
  1502. </if>
  1503. <if test="process != null">
  1504. `process` = #{process,jdbcType=INTEGER},
  1505. </if>
  1506. <if test="wrongCount != null">
  1507. wrong_count = #{wrongCount,jdbcType=INTEGER},
  1508. </if>
  1509. <if test="paymentDate != null">
  1510. payment_date = #{paymentDate,jdbcType=TIMESTAMP},
  1511. </if>
  1512. <if test="listed != null">
  1513. listed = #{listed,jdbcType=INTEGER},
  1514. </if>
  1515. <if test="listedDate != null">
  1516. listed_date = #{listedDate,jdbcType=TIMESTAMP},
  1517. </if>
  1518. <if test="listedType != null">
  1519. listed_type = #{listedType,jdbcType=INTEGER},
  1520. </if>
  1521. <if test="stockCode != null">
  1522. stock_code = #{stockCode,jdbcType=VARCHAR},
  1523. </if>
  1524. <if test="certificateNumber != null">
  1525. certificate_number = #{certificateNumber,jdbcType=VARCHAR},
  1526. </if>
  1527. <if test="issuingDate != null">
  1528. issuing_date = #{issuingDate,jdbcType=TIMESTAMP},
  1529. </if>
  1530. <if test="cogContacts != null">
  1531. cog_contacts = #{cogContacts,jdbcType=INTEGER},
  1532. </if>
  1533. <if test="techPrincipal != null">
  1534. tech_principal = #{techPrincipal,jdbcType=VARCHAR},
  1535. </if>
  1536. <if test="contactsFixedTel != null">
  1537. contacts_fixed_tel = #{contactsFixedTel,jdbcType=VARCHAR},
  1538. </if>
  1539. <if test="contactsFax != null">
  1540. contacts_fax = #{contactsFax,jdbcType=VARCHAR},
  1541. </if>
  1542. <if test="legalPersonTel != null">
  1543. legal_person_tel = #{legalPersonTel,jdbcType=VARCHAR},
  1544. </if>
  1545. <if test="legalPersonFax != null">
  1546. legal_person_fax = #{legalPersonFax,jdbcType=VARCHAR},
  1547. </if>
  1548. <if test="legalPersonEmail != null">
  1549. legal_person_email = #{legalPersonEmail,jdbcType=VARCHAR},
  1550. </if>
  1551. <if test="registrationTime != null">
  1552. registration_time = #{registrationTime,jdbcType=TIMESTAMP},
  1553. </if>
  1554. <if test="ratepayCode != null">
  1555. ratepay_code = #{ratepayCode,jdbcType=VARCHAR},
  1556. </if>
  1557. <if test="industry != null">
  1558. industry = #{industry,jdbcType=INTEGER},
  1559. </if>
  1560. <if test="enterpriseScale != null">
  1561. enterprise_scale = #{enterpriseScale,jdbcType=VARCHAR},
  1562. </if>
  1563. <if test="registerType != null">
  1564. register_type = #{registerType,jdbcType=VARCHAR},
  1565. </if>
  1566. <if test="foreignInvestment != null">
  1567. foreign_investment = #{foreignInvestment,jdbcType=VARCHAR},
  1568. </if>
  1569. <if test="field != null">
  1570. field = #{field,jdbcType=VARCHAR},
  1571. </if>
  1572. <if test="taxAuthority != null">
  1573. tax_authority = #{taxAuthority,jdbcType=INTEGER},
  1574. </if>
  1575. <if test="ratepayMethod != null">
  1576. ratepay_method = #{ratepayMethod,jdbcType=INTEGER},
  1577. </if>
  1578. <if test="highTechZone != null">
  1579. high_tech_zone = #{highTechZone,jdbcType=INTEGER},
  1580. </if>
  1581. <if test="riskInvestment != null">
  1582. risk_investment = #{riskInvestment,jdbcType=INTEGER},
  1583. </if>
  1584. <if test="businessScope != null">
  1585. business_scope = #{businessScope,jdbcType=VARCHAR},
  1586. </if>
  1587. <if test="highTechName != null">
  1588. high_tech_name = #{highTechName,jdbcType=VARCHAR},
  1589. </if>
  1590. <if test="patentProryStatementUrl != null">
  1591. patent_prory_statement_url = #{patentProryStatementUrl,jdbcType=VARCHAR},
  1592. </if>
  1593. <if test="international != null">
  1594. international = #{international,jdbcType=INTEGER},
  1595. </if>
  1596. <if test="reviewInstructions != null">
  1597. review_instructions = #{reviewInstructions,jdbcType=VARCHAR},
  1598. </if>
  1599. <if test="investment != null">
  1600. investment = #{investment,jdbcType=INTEGER},
  1601. </if>
  1602. <if test="yearSalesAmount != null">
  1603. year_sales_amount = #{yearSalesAmount,jdbcType=DECIMAL},
  1604. </if>
  1605. <if test="lastYearResearchAmount != null">
  1606. last_year_research_amount = #{lastYearResearchAmount,jdbcType=DECIMAL},
  1607. </if>
  1608. <if test="assets != null">
  1609. assets = #{assets,jdbcType=DECIMAL},
  1610. </if>
  1611. <if test="qualification != null">
  1612. qualification = #{qualification,jdbcType=VARCHAR},
  1613. </if>
  1614. <if test="cooperationSituation != null">
  1615. cooperation_situation = #{cooperationSituation,jdbcType=VARCHAR},
  1616. </if>
  1617. <if test="honorPicture != null">
  1618. honor_picture = #{honorPicture,jdbcType=VARCHAR},
  1619. </if>
  1620. <if test="salesTarget != null">
  1621. sales_target = #{salesTarget,jdbcType=VARCHAR},
  1622. </if>
  1623. <if test="intendedProject != null">
  1624. intended_project = #{intendedProject,jdbcType=VARCHAR},
  1625. </if>
  1626. <if test="contactsDep != null">
  1627. contacts_dep = #{contactsDep,jdbcType=VARCHAR},
  1628. </if>
  1629. <if test="contactsPosition != null">
  1630. contacts_position = #{contactsPosition,jdbcType=VARCHAR},
  1631. </if>
  1632. </set>
  1633. where uid = #{uid,jdbcType=VARCHAR}
  1634. </update>
  1635. <insert id="insertBatch" parameterType="com.goafanti.user.bo.InputUserChannel">
  1636. INSERT INTO organization_identity
  1637. (id, uid, contacts, contact_mobile,location_province,location_city)VALUES
  1638. <foreach item="item" index="index" collection="list" separator=",">
  1639. (UUID(), #{item.uid,jdbcType=VARCHAR}, #{item.contacts,jdbcType=VARCHAR},
  1640. #{item.contactMobile,jdbcType=VARCHAR}, #{item.province,jdbcType=TIMESTAMP}, #{item.city,jdbcType=TIMESTAMP})
  1641. </foreach>
  1642. </insert>
  1643. <select id="selectByOrgCode" parameterType="java.lang.String" resultMap="OrganizationIdentityMap">
  1644. select
  1645. <include refid="OrganizationIdentityAllSql" />
  1646. from organization_identity
  1647. where org_code = #{orgCode}
  1648. </select>
  1649. </mapper>