OrganizationIdentityMapper.xml 58 KB

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