OrganizationIdentityMapper.xml 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860
  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. <id column="id" property="id" jdbcType="VARCHAR" />
  6. <result column="uid" property="uid" jdbcType="VARCHAR" />
  7. <result column="contacts" property="contacts" jdbcType="VARCHAR" />
  8. <result column="contact_mobile" property="contactMobile" jdbcType="VARCHAR" />
  9. <result column="fixed_tel" property="fixedTel" jdbcType="VARCHAR" />
  10. <result column="qq" property="qq" jdbcType="VARCHAR" />
  11. <result column="postal_address" property="postalAddress" jdbcType="VARCHAR" />
  12. <result column="postcode" property="postcode" jdbcType="VARCHAR" />
  13. <result column="aft_username" property="aftUsername" jdbcType="VARCHAR" />
  14. <result column="unit_name" property="unitName" jdbcType="VARCHAR" />
  15. <result column="registered_capital" property="registeredCapital" jdbcType="DECIMAL" />
  16. <result column="licence_number" property="licenceNumber" jdbcType="VARCHAR" />
  17. <result column="licence_province" property="licenceProvince" jdbcType="VARCHAR" />
  18. <result column="licence_city" property="licenceCity" jdbcType="VARCHAR" />
  19. <result column="licence_area" property="licenceArea" jdbcType="VARCHAR" />
  20. <result column="licence_scanning_url" property="licenceScanningUrl" jdbcType="VARCHAR" />
  21. <result column="org_code" property="orgCode" jdbcType="VARCHAR" />
  22. <result column="org_code_url" property="orgCodeUrl" jdbcType="VARCHAR" />
  23. <result column="bank_account" property="bankAccount" jdbcType="VARCHAR" />
  24. <result column="banks" property="banks" jdbcType="VARCHAR" />
  25. <result column="bank_branch" property="bankBranch" jdbcType="VARCHAR" />
  26. <result column="bank_card_number" property="bankCardNumber" jdbcType="VARCHAR" />
  27. <result column="validation_amount" property="validationAmount" jdbcType="DECIMAL" />
  28. <result column="identity_type" property="identityType" jdbcType="INTEGER" />
  29. <result column="location_province" property="locationProvince" jdbcType="VARCHAR" />
  30. <result column="location_city" property="locationCity" jdbcType="VARCHAR" />
  31. <result column="location_area" property="locationArea" jdbcType="VARCHAR" />
  32. <result column="legal_person" property="legalPerson" jdbcType="VARCHAR" />
  33. <result column="legal_person_id_card" property="legalPersonIdCard" jdbcType="VARCHAR" />
  34. <result column="last_year_tax_report_url" property="lastYearTaxReportUrl" jdbcType="VARCHAR" />
  35. <result column="audit_status" property="auditStatus" jdbcType="INTEGER" />
  36. <result column="process" property="process" jdbcType="INTEGER" />
  37. <result column="wrong_count" property="wrongCount" jdbcType="INTEGER" />
  38. <result column="payment_date" property="paymentDate" jdbcType="TIMESTAMP" />
  39. <result column="first_contacts" property="firstContacts" jdbcType="VARCHAR" />
  40. <result column="first_mobile" property="firstMobile" jdbcType="VARCHAR" />
  41. <result column="second_contacts" property="secondContacts" jdbcType="VARCHAR" />
  42. <result column="second_mobile" property="secondMobile" jdbcType="VARCHAR" />
  43. <result column="third_contacts" property="thirdContacts" jdbcType="VARCHAR" />
  44. <result column="third_mobile" property="thirdMobile" jdbcType="VARCHAR" />
  45. <result column="listed" property="listed" jdbcType="INTEGER" />
  46. <result column="listed_date" property="listedDate" jdbcType="TIMESTAMP" />
  47. <result column="listed_type" property="listedType" jdbcType="INTEGER" />
  48. <result column="stock_code" property="stockCode" jdbcType="VARCHAR" />
  49. <result column="certificate_number" property="certificateNumber" jdbcType="VARCHAR" />
  50. <result column="issuing_date" property="issuingDate" jdbcType="TIMESTAMP" />
  51. <result column="cog_contacts" property="cogContacts" jdbcType="INTEGER" />
  52. <result column="consultant" property="consultant" jdbcType="VARCHAR" />
  53. <result column="contacts_fixed_tel" property="contactsFixedTel" jdbcType="VARCHAR" />
  54. <result column="contacts_fax" property="contactsFax" jdbcType="VARCHAR" />
  55. <result column="legal_person_tel" property="legalPersonTel" jdbcType="VARCHAR" />
  56. <result column="legal_person_fax" property="legalPersonFax" jdbcType="VARCHAR" />
  57. <result column="legal_person_email" property="legalPersonEmail" jdbcType="VARCHAR" />
  58. <result column="registration_time" property="registrationTime" jdbcType="TIMESTAMP" />
  59. <result column="ratepay_code" property="ratepayCode" jdbcType="VARCHAR" />
  60. <result column="industry" property="industry" jdbcType="INTEGER" />
  61. <result column="enterprise_scale" property="enterpriseScale" jdbcType="INTEGER" />
  62. <result column="register_type" property="registerType" jdbcType="VARCHAR" />
  63. <result column="foreign_investment" property="foreignInvestment" jdbcType="VARCHAR" />
  64. <result column="field" property="field" jdbcType="VARCHAR" />
  65. <result column="tax_authority" property="taxAuthority" jdbcType="INTEGER" />
  66. <result column="ratepay_method" property="ratepayMethod" jdbcType="INTEGER" />
  67. <result column="high_tech_zone" property="highTechZone" jdbcType="INTEGER" />
  68. <result column="risk_investment" property="riskInvestment" jdbcType="INTEGER" />
  69. <result column="business_scope" property="businessScope" jdbcType="VARCHAR" />
  70. <result column="high_tech_name" property="highTechName" jdbcType="VARCHAR" />
  71. </resultMap>
  72. <sql id="Base_Column_List" >
  73. id, uid, contacts, contact_mobile, fixed_tel, qq, postal_address, postcode, aft_username,
  74. unit_name, registered_capital, licence_number, licence_province, licence_city, licence_area,
  75. licence_scanning_url, org_code, org_code_url, bank_account, banks, bank_branch, bank_card_number,
  76. validation_amount, identity_type, location_province, location_city, location_area,
  77. legal_person, legal_person_id_card, last_year_tax_report_url, audit_status, process,
  78. wrong_count, payment_date, first_contacts, first_mobile, second_contacts, second_mobile,
  79. third_contacts, third_mobile, listed, listed_date, listed_type, stock_code, certificate_number,
  80. issuing_date, cog_contacts, consultant, contacts_fixed_tel, contacts_fax, legal_person_tel,
  81. legal_person_fax, legal_person_email, registration_time, ratepay_code, industry,
  82. enterprise_scale, register_type, foreign_investment, field, tax_authority, ratepay_method,
  83. high_tech_zone, risk_investment, business_scope, high_tech_name
  84. </sql>
  85. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
  86. select
  87. <include refid="Base_Column_List" />
  88. from organization_identity
  89. where id = #{id,jdbcType=VARCHAR}
  90. </select>
  91. <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
  92. delete from organization_identity
  93. where id = #{id,jdbcType=VARCHAR}
  94. </delete>
  95. <insert id="insert" parameterType="com.goafanti.common.model.OrganizationIdentity" >
  96. insert into organization_identity (id, uid, contacts,
  97. contact_mobile, fixed_tel, qq,
  98. postal_address, postcode, aft_username,
  99. unit_name, registered_capital, licence_number,
  100. licence_province, licence_city, licence_area,
  101. licence_scanning_url, org_code, org_code_url,
  102. bank_account, banks, bank_branch,
  103. bank_card_number, validation_amount, identity_type,
  104. location_province, location_city, location_area,
  105. legal_person, legal_person_id_card, last_year_tax_report_url,
  106. audit_status, process, wrong_count,
  107. payment_date, first_contacts, first_mobile,
  108. second_contacts, second_mobile, third_contacts,
  109. third_mobile, listed, listed_date,
  110. listed_type, stock_code, certificate_number,
  111. issuing_date, cog_contacts, consultant,
  112. contacts_fixed_tel, contacts_fax, legal_person_tel,
  113. legal_person_fax, legal_person_email, registration_time,
  114. ratepay_code, industry, enterprise_scale,
  115. register_type, foreign_investment, field,
  116. tax_authority, ratepay_method, high_tech_zone,
  117. risk_investment, business_scope, high_tech_name)
  118. values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR},
  119. #{contactMobile,jdbcType=VARCHAR}, #{fixedTel,jdbcType=VARCHAR}, #{qq,jdbcType=VARCHAR},
  120. #{postalAddress,jdbcType=VARCHAR}, #{postcode,jdbcType=VARCHAR}, #{aftUsername,jdbcType=VARCHAR},
  121. #{unitName,jdbcType=VARCHAR}, #{registeredCapital,jdbcType=DECIMAL}, #{licenceNumber,jdbcType=VARCHAR},
  122. #{licenceProvince,jdbcType=VARCHAR}, #{licenceCity,jdbcType=VARCHAR}, #{licenceArea,jdbcType=VARCHAR},
  123. #{licenceScanningUrl,jdbcType=VARCHAR}, #{orgCode,jdbcType=VARCHAR}, #{orgCodeUrl,jdbcType=VARCHAR},
  124. #{bankAccount,jdbcType=VARCHAR}, #{banks,jdbcType=VARCHAR}, #{bankBranch,jdbcType=VARCHAR},
  125. #{bankCardNumber,jdbcType=VARCHAR}, #{validationAmount,jdbcType=DECIMAL}, #{identityType,jdbcType=INTEGER},
  126. #{locationProvince,jdbcType=VARCHAR}, #{locationCity,jdbcType=VARCHAR}, #{locationArea,jdbcType=VARCHAR},
  127. #{legalPerson,jdbcType=VARCHAR}, #{legalPersonIdCard,jdbcType=VARCHAR}, #{lastYearTaxReportUrl,jdbcType=VARCHAR},
  128. #{auditStatus,jdbcType=INTEGER}, #{process,jdbcType=INTEGER}, #{wrongCount,jdbcType=INTEGER},
  129. #{paymentDate,jdbcType=TIMESTAMP}, #{firstContacts,jdbcType=VARCHAR}, #{firstMobile,jdbcType=VARCHAR},
  130. #{secondContacts,jdbcType=VARCHAR}, #{secondMobile,jdbcType=VARCHAR}, #{thirdContacts,jdbcType=VARCHAR},
  131. #{thirdMobile,jdbcType=VARCHAR}, #{listed,jdbcType=INTEGER}, #{listedDate,jdbcType=TIMESTAMP},
  132. #{listedType,jdbcType=INTEGER}, #{stockCode,jdbcType=VARCHAR}, #{certificateNumber,jdbcType=VARCHAR},
  133. #{issuingDate,jdbcType=TIMESTAMP}, #{cogContacts,jdbcType=INTEGER}, #{consultant,jdbcType=VARCHAR},
  134. #{contactsFixedTel,jdbcType=VARCHAR}, #{contactsFax,jdbcType=VARCHAR}, #{legalPersonTel,jdbcType=VARCHAR},
  135. #{legalPersonFax,jdbcType=VARCHAR}, #{legalPersonEmail,jdbcType=VARCHAR}, #{registrationTime,jdbcType=TIMESTAMP},
  136. #{ratepayCode,jdbcType=VARCHAR}, #{industry,jdbcType=INTEGER}, #{enterpriseScale,jdbcType=INTEGER},
  137. #{registerType,jdbcType=VARCHAR}, #{foreignInvestment,jdbcType=VARCHAR}, #{field,jdbcType=VARCHAR},
  138. #{taxAuthority,jdbcType=INTEGER}, #{ratepayMethod,jdbcType=INTEGER}, #{highTechZone,jdbcType=INTEGER},
  139. #{riskInvestment,jdbcType=INTEGER}, #{businessScope,jdbcType=VARCHAR}, #{highTechName,jdbcType=VARCHAR})
  140. </insert>
  141. <insert id="insertSelective" parameterType="com.goafanti.common.model.OrganizationIdentity" >
  142. insert into organization_identity
  143. <trim prefix="(" suffix=")" suffixOverrides="," >
  144. <if test="id != null" >
  145. id,
  146. </if>
  147. <if test="uid != null" >
  148. uid,
  149. </if>
  150. <if test="contacts != null" >
  151. contacts,
  152. </if>
  153. <if test="contactMobile != null" >
  154. contact_mobile,
  155. </if>
  156. <if test="fixedTel != null" >
  157. fixed_tel,
  158. </if>
  159. <if test="qq != null" >
  160. qq,
  161. </if>
  162. <if test="postalAddress != null" >
  163. postal_address,
  164. </if>
  165. <if test="postcode != null" >
  166. postcode,
  167. </if>
  168. <if test="aftUsername != null" >
  169. aft_username,
  170. </if>
  171. <if test="unitName != null" >
  172. unit_name,
  173. </if>
  174. <if test="registeredCapital != null" >
  175. registered_capital,
  176. </if>
  177. <if test="licenceNumber != null" >
  178. licence_number,
  179. </if>
  180. <if test="licenceProvince != null" >
  181. licence_province,
  182. </if>
  183. <if test="licenceCity != null" >
  184. licence_city,
  185. </if>
  186. <if test="licenceArea != null" >
  187. licence_area,
  188. </if>
  189. <if test="licenceScanningUrl != null" >
  190. licence_scanning_url,
  191. </if>
  192. <if test="orgCode != null" >
  193. org_code,
  194. </if>
  195. <if test="orgCodeUrl != null" >
  196. org_code_url,
  197. </if>
  198. <if test="bankAccount != null" >
  199. bank_account,
  200. </if>
  201. <if test="banks != null" >
  202. banks,
  203. </if>
  204. <if test="bankBranch != null" >
  205. bank_branch,
  206. </if>
  207. <if test="bankCardNumber != null" >
  208. bank_card_number,
  209. </if>
  210. <if test="validationAmount != null" >
  211. validation_amount,
  212. </if>
  213. <if test="identityType != null" >
  214. identity_type,
  215. </if>
  216. <if test="locationProvince != null" >
  217. location_province,
  218. </if>
  219. <if test="locationCity != null" >
  220. location_city,
  221. </if>
  222. <if test="locationArea != null" >
  223. location_area,
  224. </if>
  225. <if test="legalPerson != null" >
  226. legal_person,
  227. </if>
  228. <if test="legalPersonIdCard != null" >
  229. legal_person_id_card,
  230. </if>
  231. <if test="lastYearTaxReportUrl != null" >
  232. last_year_tax_report_url,
  233. </if>
  234. <if test="auditStatus != null" >
  235. audit_status,
  236. </if>
  237. <if test="process != null" >
  238. process,
  239. </if>
  240. <if test="wrongCount != null" >
  241. wrong_count,
  242. </if>
  243. <if test="paymentDate != null" >
  244. payment_date,
  245. </if>
  246. <if test="firstContacts != null" >
  247. first_contacts,
  248. </if>
  249. <if test="firstMobile != null" >
  250. first_mobile,
  251. </if>
  252. <if test="secondContacts != null" >
  253. second_contacts,
  254. </if>
  255. <if test="secondMobile != null" >
  256. second_mobile,
  257. </if>
  258. <if test="thirdContacts != null" >
  259. third_contacts,
  260. </if>
  261. <if test="thirdMobile != null" >
  262. third_mobile,
  263. </if>
  264. <if test="listed != null" >
  265. listed,
  266. </if>
  267. <if test="listedDate != null" >
  268. listed_date,
  269. </if>
  270. <if test="listedType != null" >
  271. listed_type,
  272. </if>
  273. <if test="stockCode != null" >
  274. stock_code,
  275. </if>
  276. <if test="certificateNumber != null" >
  277. certificate_number,
  278. </if>
  279. <if test="issuingDate != null" >
  280. issuing_date,
  281. </if>
  282. <if test="cogContacts != null" >
  283. cog_contacts,
  284. </if>
  285. <if test="consultant != null" >
  286. consultant,
  287. </if>
  288. <if test="contactsFixedTel != null" >
  289. contacts_fixed_tel,
  290. </if>
  291. <if test="contactsFax != null" >
  292. contacts_fax,
  293. </if>
  294. <if test="legalPersonTel != null" >
  295. legal_person_tel,
  296. </if>
  297. <if test="legalPersonFax != null" >
  298. legal_person_fax,
  299. </if>
  300. <if test="legalPersonEmail != null" >
  301. legal_person_email,
  302. </if>
  303. <if test="registrationTime != null" >
  304. registration_time,
  305. </if>
  306. <if test="ratepayCode != null" >
  307. ratepay_code,
  308. </if>
  309. <if test="industry != null" >
  310. industry,
  311. </if>
  312. <if test="enterpriseScale != null" >
  313. enterprise_scale,
  314. </if>
  315. <if test="registerType != null" >
  316. register_type,
  317. </if>
  318. <if test="foreignInvestment != null" >
  319. foreign_investment,
  320. </if>
  321. <if test="field != null" >
  322. field,
  323. </if>
  324. <if test="taxAuthority != null" >
  325. tax_authority,
  326. </if>
  327. <if test="ratepayMethod != null" >
  328. ratepay_method,
  329. </if>
  330. <if test="highTechZone != null" >
  331. high_tech_zone,
  332. </if>
  333. <if test="riskInvestment != null" >
  334. risk_investment,
  335. </if>
  336. <if test="businessScope != null" >
  337. business_scope,
  338. </if>
  339. <if test="highTechName != null" >
  340. high_tech_name,
  341. </if>
  342. </trim>
  343. <trim prefix="values (" suffix=")" suffixOverrides="," >
  344. <if test="id != null" >
  345. #{id,jdbcType=VARCHAR},
  346. </if>
  347. <if test="uid != null" >
  348. #{uid,jdbcType=VARCHAR},
  349. </if>
  350. <if test="contacts != null" >
  351. #{contacts,jdbcType=VARCHAR},
  352. </if>
  353. <if test="contactMobile != null" >
  354. #{contactMobile,jdbcType=VARCHAR},
  355. </if>
  356. <if test="fixedTel != null" >
  357. #{fixedTel,jdbcType=VARCHAR},
  358. </if>
  359. <if test="qq != null" >
  360. #{qq,jdbcType=VARCHAR},
  361. </if>
  362. <if test="postalAddress != null" >
  363. #{postalAddress,jdbcType=VARCHAR},
  364. </if>
  365. <if test="postcode != null" >
  366. #{postcode,jdbcType=VARCHAR},
  367. </if>
  368. <if test="aftUsername != null" >
  369. #{aftUsername,jdbcType=VARCHAR},
  370. </if>
  371. <if test="unitName != null" >
  372. #{unitName,jdbcType=VARCHAR},
  373. </if>
  374. <if test="registeredCapital != null" >
  375. #{registeredCapital,jdbcType=DECIMAL},
  376. </if>
  377. <if test="licenceNumber != null" >
  378. #{licenceNumber,jdbcType=VARCHAR},
  379. </if>
  380. <if test="licenceProvince != null" >
  381. #{licenceProvince,jdbcType=VARCHAR},
  382. </if>
  383. <if test="licenceCity != null" >
  384. #{licenceCity,jdbcType=VARCHAR},
  385. </if>
  386. <if test="licenceArea != null" >
  387. #{licenceArea,jdbcType=VARCHAR},
  388. </if>
  389. <if test="licenceScanningUrl != null" >
  390. #{licenceScanningUrl,jdbcType=VARCHAR},
  391. </if>
  392. <if test="orgCode != null" >
  393. #{orgCode,jdbcType=VARCHAR},
  394. </if>
  395. <if test="orgCodeUrl != null" >
  396. #{orgCodeUrl,jdbcType=VARCHAR},
  397. </if>
  398. <if test="bankAccount != null" >
  399. #{bankAccount,jdbcType=VARCHAR},
  400. </if>
  401. <if test="banks != null" >
  402. #{banks,jdbcType=VARCHAR},
  403. </if>
  404. <if test="bankBranch != null" >
  405. #{bankBranch,jdbcType=VARCHAR},
  406. </if>
  407. <if test="bankCardNumber != null" >
  408. #{bankCardNumber,jdbcType=VARCHAR},
  409. </if>
  410. <if test="validationAmount != null" >
  411. #{validationAmount,jdbcType=DECIMAL},
  412. </if>
  413. <if test="identityType != null" >
  414. #{identityType,jdbcType=INTEGER},
  415. </if>
  416. <if test="locationProvince != null" >
  417. #{locationProvince,jdbcType=VARCHAR},
  418. </if>
  419. <if test="locationCity != null" >
  420. #{locationCity,jdbcType=VARCHAR},
  421. </if>
  422. <if test="locationArea != null" >
  423. #{locationArea,jdbcType=VARCHAR},
  424. </if>
  425. <if test="legalPerson != null" >
  426. #{legalPerson,jdbcType=VARCHAR},
  427. </if>
  428. <if test="legalPersonIdCard != null" >
  429. #{legalPersonIdCard,jdbcType=VARCHAR},
  430. </if>
  431. <if test="lastYearTaxReportUrl != null" >
  432. #{lastYearTaxReportUrl,jdbcType=VARCHAR},
  433. </if>
  434. <if test="auditStatus != null" >
  435. #{auditStatus,jdbcType=INTEGER},
  436. </if>
  437. <if test="process != null" >
  438. #{process,jdbcType=INTEGER},
  439. </if>
  440. <if test="wrongCount != null" >
  441. #{wrongCount,jdbcType=INTEGER},
  442. </if>
  443. <if test="paymentDate != null" >
  444. #{paymentDate,jdbcType=TIMESTAMP},
  445. </if>
  446. <if test="firstContacts != null" >
  447. #{firstContacts,jdbcType=VARCHAR},
  448. </if>
  449. <if test="firstMobile != null" >
  450. #{firstMobile,jdbcType=VARCHAR},
  451. </if>
  452. <if test="secondContacts != null" >
  453. #{secondContacts,jdbcType=VARCHAR},
  454. </if>
  455. <if test="secondMobile != null" >
  456. #{secondMobile,jdbcType=VARCHAR},
  457. </if>
  458. <if test="thirdContacts != null" >
  459. #{thirdContacts,jdbcType=VARCHAR},
  460. </if>
  461. <if test="thirdMobile != null" >
  462. #{thirdMobile,jdbcType=VARCHAR},
  463. </if>
  464. <if test="listed != null" >
  465. #{listed,jdbcType=INTEGER},
  466. </if>
  467. <if test="listedDate != null" >
  468. #{listedDate,jdbcType=TIMESTAMP},
  469. </if>
  470. <if test="listedType != null" >
  471. #{listedType,jdbcType=INTEGER},
  472. </if>
  473. <if test="stockCode != null" >
  474. #{stockCode,jdbcType=VARCHAR},
  475. </if>
  476. <if test="certificateNumber != null" >
  477. #{certificateNumber,jdbcType=VARCHAR},
  478. </if>
  479. <if test="issuingDate != null" >
  480. #{issuingDate,jdbcType=TIMESTAMP},
  481. </if>
  482. <if test="cogContacts != null" >
  483. #{cogContacts,jdbcType=INTEGER},
  484. </if>
  485. <if test="consultant != null" >
  486. #{consultant,jdbcType=VARCHAR},
  487. </if>
  488. <if test="contactsFixedTel != null" >
  489. #{contactsFixedTel,jdbcType=VARCHAR},
  490. </if>
  491. <if test="contactsFax != null" >
  492. #{contactsFax,jdbcType=VARCHAR},
  493. </if>
  494. <if test="legalPersonTel != null" >
  495. #{legalPersonTel,jdbcType=VARCHAR},
  496. </if>
  497. <if test="legalPersonFax != null" >
  498. #{legalPersonFax,jdbcType=VARCHAR},
  499. </if>
  500. <if test="legalPersonEmail != null" >
  501. #{legalPersonEmail,jdbcType=VARCHAR},
  502. </if>
  503. <if test="registrationTime != null" >
  504. #{registrationTime,jdbcType=TIMESTAMP},
  505. </if>
  506. <if test="ratepayCode != null" >
  507. #{ratepayCode,jdbcType=VARCHAR},
  508. </if>
  509. <if test="industry != null" >
  510. #{industry,jdbcType=INTEGER},
  511. </if>
  512. <if test="enterpriseScale != null" >
  513. #{enterpriseScale,jdbcType=INTEGER},
  514. </if>
  515. <if test="registerType != null" >
  516. #{registerType,jdbcType=VARCHAR},
  517. </if>
  518. <if test="foreignInvestment != null" >
  519. #{foreignInvestment,jdbcType=VARCHAR},
  520. </if>
  521. <if test="field != null" >
  522. #{field,jdbcType=VARCHAR},
  523. </if>
  524. <if test="taxAuthority != null" >
  525. #{taxAuthority,jdbcType=INTEGER},
  526. </if>
  527. <if test="ratepayMethod != null" >
  528. #{ratepayMethod,jdbcType=INTEGER},
  529. </if>
  530. <if test="highTechZone != null" >
  531. #{highTechZone,jdbcType=INTEGER},
  532. </if>
  533. <if test="riskInvestment != null" >
  534. #{riskInvestment,jdbcType=INTEGER},
  535. </if>
  536. <if test="businessScope != null" >
  537. #{businessScope,jdbcType=VARCHAR},
  538. </if>
  539. <if test="highTechName != null" >
  540. #{highTechName,jdbcType=VARCHAR},
  541. </if>
  542. </trim>
  543. </insert>
  544. <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrganizationIdentity" >
  545. update organization_identity
  546. <set >
  547. <if test="uid != null" >
  548. uid = #{uid,jdbcType=VARCHAR},
  549. </if>
  550. <if test="contacts != null" >
  551. contacts = #{contacts,jdbcType=VARCHAR},
  552. </if>
  553. <if test="contactMobile != null" >
  554. contact_mobile = #{contactMobile,jdbcType=VARCHAR},
  555. </if>
  556. <if test="fixedTel != null" >
  557. fixed_tel = #{fixedTel,jdbcType=VARCHAR},
  558. </if>
  559. <if test="qq != null" >
  560. qq = #{qq,jdbcType=VARCHAR},
  561. </if>
  562. <if test="postalAddress != null" >
  563. postal_address = #{postalAddress,jdbcType=VARCHAR},
  564. </if>
  565. <if test="postcode != null" >
  566. postcode = #{postcode,jdbcType=VARCHAR},
  567. </if>
  568. <if test="aftUsername != null" >
  569. aft_username = #{aftUsername,jdbcType=VARCHAR},
  570. </if>
  571. <if test="unitName != null" >
  572. unit_name = #{unitName,jdbcType=VARCHAR},
  573. </if>
  574. <if test="registeredCapital != null" >
  575. registered_capital = #{registeredCapital,jdbcType=DECIMAL},
  576. </if>
  577. <if test="licenceNumber != null" >
  578. licence_number = #{licenceNumber,jdbcType=VARCHAR},
  579. </if>
  580. <if test="licenceProvince != null" >
  581. licence_province = #{licenceProvince,jdbcType=VARCHAR},
  582. </if>
  583. <if test="licenceCity != null" >
  584. licence_city = #{licenceCity,jdbcType=VARCHAR},
  585. </if>
  586. <if test="licenceArea != null" >
  587. licence_area = #{licenceArea,jdbcType=VARCHAR},
  588. </if>
  589. <if test="licenceScanningUrl != null" >
  590. licence_scanning_url = #{licenceScanningUrl,jdbcType=VARCHAR},
  591. </if>
  592. <if test="orgCode != null" >
  593. org_code = #{orgCode,jdbcType=VARCHAR},
  594. </if>
  595. <if test="orgCodeUrl != null" >
  596. org_code_url = #{orgCodeUrl,jdbcType=VARCHAR},
  597. </if>
  598. <if test="bankAccount != null" >
  599. bank_account = #{bankAccount,jdbcType=VARCHAR},
  600. </if>
  601. <if test="banks != null" >
  602. banks = #{banks,jdbcType=VARCHAR},
  603. </if>
  604. <if test="bankBranch != null" >
  605. bank_branch = #{bankBranch,jdbcType=VARCHAR},
  606. </if>
  607. <if test="bankCardNumber != null" >
  608. bank_card_number = #{bankCardNumber,jdbcType=VARCHAR},
  609. </if>
  610. <if test="validationAmount != null" >
  611. validation_amount = #{validationAmount,jdbcType=DECIMAL},
  612. </if>
  613. <if test="identityType != null" >
  614. identity_type = #{identityType,jdbcType=INTEGER},
  615. </if>
  616. <if test="locationProvince != null" >
  617. location_province = #{locationProvince,jdbcType=VARCHAR},
  618. </if>
  619. <if test="locationCity != null" >
  620. location_city = #{locationCity,jdbcType=VARCHAR},
  621. </if>
  622. <if test="locationArea != null" >
  623. location_area = #{locationArea,jdbcType=VARCHAR},
  624. </if>
  625. <if test="legalPerson != null" >
  626. legal_person = #{legalPerson,jdbcType=VARCHAR},
  627. </if>
  628. <if test="legalPersonIdCard != null" >
  629. legal_person_id_card = #{legalPersonIdCard,jdbcType=VARCHAR},
  630. </if>
  631. <if test="lastYearTaxReportUrl != null" >
  632. last_year_tax_report_url = #{lastYearTaxReportUrl,jdbcType=VARCHAR},
  633. </if>
  634. <if test="auditStatus != null" >
  635. audit_status = #{auditStatus,jdbcType=INTEGER},
  636. </if>
  637. <if test="process != null" >
  638. process = #{process,jdbcType=INTEGER},
  639. </if>
  640. <if test="wrongCount != null" >
  641. wrong_count = #{wrongCount,jdbcType=INTEGER},
  642. </if>
  643. <if test="paymentDate != null" >
  644. payment_date = #{paymentDate,jdbcType=TIMESTAMP},
  645. </if>
  646. <if test="firstContacts != null" >
  647. first_contacts = #{firstContacts,jdbcType=VARCHAR},
  648. </if>
  649. <if test="firstMobile != null" >
  650. first_mobile = #{firstMobile,jdbcType=VARCHAR},
  651. </if>
  652. <if test="secondContacts != null" >
  653. second_contacts = #{secondContacts,jdbcType=VARCHAR},
  654. </if>
  655. <if test="secondMobile != null" >
  656. second_mobile = #{secondMobile,jdbcType=VARCHAR},
  657. </if>
  658. <if test="thirdContacts != null" >
  659. third_contacts = #{thirdContacts,jdbcType=VARCHAR},
  660. </if>
  661. <if test="thirdMobile != null" >
  662. third_mobile = #{thirdMobile,jdbcType=VARCHAR},
  663. </if>
  664. <if test="listed != null" >
  665. listed = #{listed,jdbcType=INTEGER},
  666. </if>
  667. <if test="listedDate != null" >
  668. listed_date = #{listedDate,jdbcType=TIMESTAMP},
  669. </if>
  670. <if test="listedType != null" >
  671. listed_type = #{listedType,jdbcType=INTEGER},
  672. </if>
  673. <if test="stockCode != null" >
  674. stock_code = #{stockCode,jdbcType=VARCHAR},
  675. </if>
  676. <if test="certificateNumber != null" >
  677. certificate_number = #{certificateNumber,jdbcType=VARCHAR},
  678. </if>
  679. <if test="issuingDate != null" >
  680. issuing_date = #{issuingDate,jdbcType=TIMESTAMP},
  681. </if>
  682. <if test="cogContacts != null" >
  683. cog_contacts = #{cogContacts,jdbcType=INTEGER},
  684. </if>
  685. <if test="consultant != null" >
  686. consultant = #{consultant,jdbcType=VARCHAR},
  687. </if>
  688. <if test="contactsFixedTel != null" >
  689. contacts_fixed_tel = #{contactsFixedTel,jdbcType=VARCHAR},
  690. </if>
  691. <if test="contactsFax != null" >
  692. contacts_fax = #{contactsFax,jdbcType=VARCHAR},
  693. </if>
  694. <if test="legalPersonTel != null" >
  695. legal_person_tel = #{legalPersonTel,jdbcType=VARCHAR},
  696. </if>
  697. <if test="legalPersonFax != null" >
  698. legal_person_fax = #{legalPersonFax,jdbcType=VARCHAR},
  699. </if>
  700. <if test="legalPersonEmail != null" >
  701. legal_person_email = #{legalPersonEmail,jdbcType=VARCHAR},
  702. </if>
  703. <if test="registrationTime != null" >
  704. registration_time = #{registrationTime,jdbcType=TIMESTAMP},
  705. </if>
  706. <if test="ratepayCode != null" >
  707. ratepay_code = #{ratepayCode,jdbcType=VARCHAR},
  708. </if>
  709. <if test="industry != null" >
  710. industry = #{industry,jdbcType=INTEGER},
  711. </if>
  712. <if test="enterpriseScale != null" >
  713. enterprise_scale = #{enterpriseScale,jdbcType=INTEGER},
  714. </if>
  715. <if test="registerType != null" >
  716. register_type = #{registerType,jdbcType=VARCHAR},
  717. </if>
  718. <if test="foreignInvestment != null" >
  719. foreign_investment = #{foreignInvestment,jdbcType=VARCHAR},
  720. </if>
  721. <if test="field != null" >
  722. field = #{field,jdbcType=VARCHAR},
  723. </if>
  724. <if test="taxAuthority != null" >
  725. tax_authority = #{taxAuthority,jdbcType=INTEGER},
  726. </if>
  727. <if test="ratepayMethod != null" >
  728. ratepay_method = #{ratepayMethod,jdbcType=INTEGER},
  729. </if>
  730. <if test="highTechZone != null" >
  731. high_tech_zone = #{highTechZone,jdbcType=INTEGER},
  732. </if>
  733. <if test="riskInvestment != null" >
  734. risk_investment = #{riskInvestment,jdbcType=INTEGER},
  735. </if>
  736. <if test="businessScope != null" >
  737. business_scope = #{businessScope,jdbcType=VARCHAR},
  738. </if>
  739. <if test="highTechName != null" >
  740. high_tech_name = #{highTechName,jdbcType=VARCHAR},
  741. </if>
  742. </set>
  743. where id = #{id,jdbcType=VARCHAR}
  744. </update>
  745. <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.OrganizationIdentity" >
  746. update organization_identity
  747. set uid = #{uid,jdbcType=VARCHAR},
  748. contacts = #{contacts,jdbcType=VARCHAR},
  749. contact_mobile = #{contactMobile,jdbcType=VARCHAR},
  750. fixed_tel = #{fixedTel,jdbcType=VARCHAR},
  751. qq = #{qq,jdbcType=VARCHAR},
  752. postal_address = #{postalAddress,jdbcType=VARCHAR},
  753. postcode = #{postcode,jdbcType=VARCHAR},
  754. aft_username = #{aftUsername,jdbcType=VARCHAR},
  755. unit_name = #{unitName,jdbcType=VARCHAR},
  756. registered_capital = #{registeredCapital,jdbcType=DECIMAL},
  757. licence_number = #{licenceNumber,jdbcType=VARCHAR},
  758. licence_province = #{licenceProvince,jdbcType=VARCHAR},
  759. licence_city = #{licenceCity,jdbcType=VARCHAR},
  760. licence_area = #{licenceArea,jdbcType=VARCHAR},
  761. licence_scanning_url = #{licenceScanningUrl,jdbcType=VARCHAR},
  762. org_code = #{orgCode,jdbcType=VARCHAR},
  763. org_code_url = #{orgCodeUrl,jdbcType=VARCHAR},
  764. bank_account = #{bankAccount,jdbcType=VARCHAR},
  765. banks = #{banks,jdbcType=VARCHAR},
  766. bank_branch = #{bankBranch,jdbcType=VARCHAR},
  767. bank_card_number = #{bankCardNumber,jdbcType=VARCHAR},
  768. validation_amount = #{validationAmount,jdbcType=DECIMAL},
  769. identity_type = #{identityType,jdbcType=INTEGER},
  770. location_province = #{locationProvince,jdbcType=VARCHAR},
  771. location_city = #{locationCity,jdbcType=VARCHAR},
  772. location_area = #{locationArea,jdbcType=VARCHAR},
  773. legal_person = #{legalPerson,jdbcType=VARCHAR},
  774. legal_person_id_card = #{legalPersonIdCard,jdbcType=VARCHAR},
  775. last_year_tax_report_url = #{lastYearTaxReportUrl,jdbcType=VARCHAR},
  776. audit_status = #{auditStatus,jdbcType=INTEGER},
  777. process = #{process,jdbcType=INTEGER},
  778. wrong_count = #{wrongCount,jdbcType=INTEGER},
  779. payment_date = #{paymentDate,jdbcType=TIMESTAMP},
  780. first_contacts = #{firstContacts,jdbcType=VARCHAR},
  781. first_mobile = #{firstMobile,jdbcType=VARCHAR},
  782. second_contacts = #{secondContacts,jdbcType=VARCHAR},
  783. second_mobile = #{secondMobile,jdbcType=VARCHAR},
  784. third_contacts = #{thirdContacts,jdbcType=VARCHAR},
  785. third_mobile = #{thirdMobile,jdbcType=VARCHAR},
  786. listed = #{listed,jdbcType=INTEGER},
  787. listed_date = #{listedDate,jdbcType=TIMESTAMP},
  788. listed_type = #{listedType,jdbcType=INTEGER},
  789. stock_code = #{stockCode,jdbcType=VARCHAR},
  790. certificate_number = #{certificateNumber,jdbcType=VARCHAR},
  791. issuing_date = #{issuingDate,jdbcType=TIMESTAMP},
  792. cog_contacts = #{cogContacts,jdbcType=INTEGER},
  793. consultant = #{consultant,jdbcType=VARCHAR},
  794. contacts_fixed_tel = #{contactsFixedTel,jdbcType=VARCHAR},
  795. contacts_fax = #{contactsFax,jdbcType=VARCHAR},
  796. legal_person_tel = #{legalPersonTel,jdbcType=VARCHAR},
  797. legal_person_fax = #{legalPersonFax,jdbcType=VARCHAR},
  798. legal_person_email = #{legalPersonEmail,jdbcType=VARCHAR},
  799. registration_time = #{registrationTime,jdbcType=TIMESTAMP},
  800. ratepay_code = #{ratepayCode,jdbcType=VARCHAR},
  801. industry = #{industry,jdbcType=INTEGER},
  802. enterprise_scale = #{enterpriseScale,jdbcType=INTEGER},
  803. register_type = #{registerType,jdbcType=VARCHAR},
  804. foreign_investment = #{foreignInvestment,jdbcType=VARCHAR},
  805. field = #{field,jdbcType=VARCHAR},
  806. tax_authority = #{taxAuthority,jdbcType=INTEGER},
  807. ratepay_method = #{ratepayMethod,jdbcType=INTEGER},
  808. high_tech_zone = #{highTechZone,jdbcType=INTEGER},
  809. risk_investment = #{riskInvestment,jdbcType=INTEGER},
  810. business_scope = #{businessScope,jdbcType=VARCHAR},
  811. high_tech_name = #{highTechName,jdbcType=VARCHAR}
  812. where id = #{id,jdbcType=VARCHAR}
  813. </update>
  814. <select id="selectOrgIdentityByUserId" parameterType="java.lang.String" resultMap="BaseResultMap">
  815. select
  816. <include refid="Base_Column_List" />
  817. from organization_identity
  818. where uid = #{uid,jdbcType=VARCHAR}
  819. </select>
  820. <select id="selectOrgIdentityBoByUserId" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgIdentityBo">
  821. select t.id,t.uid,t.contacts,t.fixed_tel as fixedTel ,t.qq,t.postal_address as postalAddress ,t.postcode,
  822. t.first_contacts as firstContacts, t.first_mobile as firstMobile,
  823. t.second_contacts as secondContacts, t.second_mobile as secondMobile,
  824. t.third_contacts as thirdContacts, t.third_mobile as thirdMobile,
  825. u.email ,t.legal_person as legalPerson
  826. from user u LEFT JOIN organization_identity t
  827. on t.uid = u.id
  828. where t.uid=#{uid,jdbcType=VARCHAR}
  829. </select>
  830. <select id="selectAllOrgIndentity" resultMap="BaseResultMap">
  831. select
  832. <include refid="Base_Column_List" />
  833. from organization_identity where audit_status = 5
  834. </select>
  835. <select id="selectBasicInfo" resultType="com.goafanti.user.bo.OrgBasicInfoBo" >
  836. select oi.id,
  837. oi.uid as uid, oi.unit_name as unitName, oi.licence_province as province,
  838. oi.licence_city as city, oi.licence_area as area, oi.postal_address as postalAddress,
  839. oi.postcode, oi.contacts, oi.contact_mobile as contactMobile,
  840. oi.contacts_fixed_tel as contactsFixedTel, oi.contacts_fax as contactsFax,oi.legal_person_tel as legalPersonTel,
  841. oi.legal_person_fax as legalPersonFax, oi.legal_person_email as legalPersonEmail, oi.registered_capital as registeredCapital,
  842. oi.registration_time as registrationTime, oi.legal_person as legalPerson, oi.legal_person_id_card as legalPersonIdCard, oi.org_code as orgCode,
  843. oi.ratepay_code as ratepayCode, oi.industry, oi.enterprise_scale as enterpriseScale, oi.register_type as registerType,
  844. oi.foreign_investment as foreignInvestment, oi.field, oi.tax_authority as taxAuthority,
  845. oi.ratepay_method as ratepayMethod, oi.listed, oi.high_tech_zone as highTechZone, oi.risk_investment as riskInvestment,
  846. oi.business_scope as businessScope, oi.high_tech_name as highTechName,
  847. ohr.id as hid, ohr.firm_total as firmTotal, ohr.tech_total as techTotal
  848. from organization_identity oi
  849. LEFT JOIN org_human_resource ohr
  850. on oi.uid = ohr.uid and ohr.year = #{1}
  851. where oi.uid = #{0}
  852. </select>
  853. </mapper>