OrganizationIdentityMapper.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648
  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="INTEGER" />
  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. </resultMap>
  54. <sql id="Base_Column_List" >
  55. id, uid, contacts, contact_mobile, fixed_tel, qq, postal_address, postcode, aft_username,
  56. unit_name, registered_capital, licence_number, licence_province, licence_city, licence_area,
  57. licence_scanning_url, org_code, org_code_url, bank_account, banks, bank_branch, bank_card_number,
  58. validation_amount, identity_type, location_province, location_city, location_area,
  59. legal_person, legal_person_id_card, last_year_tax_report_url, audit_status, process, wrong_count,
  60. payment_date, first_contacts, first_mobile, second_contacts, second_mobile, third_contacts ,third_mobile,
  61. listed, listed_date, listed_type, stock_code, certificate_number, issuing_date, cog_contacts, consultant
  62. </sql>
  63. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
  64. select
  65. <include refid="Base_Column_List" />
  66. from organization_identity
  67. where id = #{id,jdbcType=VARCHAR}
  68. </select>
  69. <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
  70. delete from organization_identity
  71. where id = #{id,jdbcType=VARCHAR}
  72. </delete>
  73. <insert id="insert" parameterType="com.goafanti.common.model.OrganizationIdentity" >
  74. insert into organization_identity (id, uid, contacts,
  75. contact_mobile, fixed_tel, qq,
  76. postal_address, postcode, aft_username,
  77. unit_name, registered_capital, licence_number,
  78. licence_province, licence_city, licence_area,
  79. licence_scanning_url, org_code, org_code_url,
  80. bank_account, banks, bank_branch,
  81. bank_card_number, validation_amount, identity_type,
  82. location_province, location_city, location_area,
  83. legal_person, legal_person_id_card, last_year_tax_report_url,
  84. audit_status, process, wrong_count, payment_date,
  85. first_contacts, first_mobile, second_contacts,
  86. second_mobile, third_contacts , third_mobile,
  87. listed, listed_date, listed_type, stock_code,
  88. certificate_number, issuing_date, cog_contacts, consultant
  89. )
  90. values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR},
  91. #{contactMobile,jdbcType=VARCHAR}, #{fixedTel,jdbcType=VARCHAR}, #{qq,jdbcType=VARCHAR},
  92. #{postalAddress,jdbcType=VARCHAR}, #{postcode,jdbcType=VARCHAR}, #{aftUsername,jdbcType=VARCHAR},
  93. #{unitName,jdbcType=VARCHAR}, #{registeredCapital,jdbcType=INTEGER}, #{licenceNumber,jdbcType=VARCHAR},
  94. #{licenceProvince,jdbcType=VARCHAR}, #{licenceCity,jdbcType=VARCHAR}, #{licenceArea,jdbcType=VARCHAR},
  95. #{licenceScanningUrl,jdbcType=VARCHAR}, #{orgCode,jdbcType=VARCHAR}, #{orgCodeUrl,jdbcType=VARCHAR},
  96. #{bankAccount,jdbcType=VARCHAR}, #{banks,jdbcType=VARCHAR}, #{bankBranch,jdbcType=VARCHAR},
  97. #{bankCardNumber,jdbcType=VARCHAR}, #{validationAmount,jdbcType=DECIMAL}, #{identityType,jdbcType=INTEGER},
  98. #{locationProvince,jdbcType=VARCHAR}, #{locationCity,jdbcType=VARCHAR}, #{locationArea,jdbcType=VARCHAR},
  99. #{legalPerson,jdbcType=VARCHAR}, #{legalPersonIdCard,jdbcType=VARCHAR}, #{lastYearTaxReportUrl,jdbcType=VARCHAR},
  100. #{auditStatus,jdbcType=INTEGER}, #{process,jdbcType=INTEGER}, #{wrongCount,jdbcType=INTEGER}, #{paymentDate,jdbcType=TIMESTAMP},
  101. #{firstContacts,jdbcType=VARCHAR}, #{firstMobile,jdbcType=VARCHAR}, #{secondContacts,jdbcType=VARCHAR},
  102. #{secondMobile,jdbcType=VARCHAR}, #{thirdContacts,jdbcType=VARCHAR}, #{thirdMobile,jdbcType=VARCHAR},
  103. #{listed,jdbcType=INTEGER}, #{listedDate,jdbcType=TIMESTAMP}, #{listedType,jdbcType=INTEGER}, #{stockCode,jdbcType=VARCHAR},
  104. #{certificateNumber,jdbcType=VARCHAR}, #{issuingDate,jdbcType=TIMESTAMP},
  105. #{cogContacts,jdbcType=INTEGER}, #{consultant,jdbcType=VARCHAR}
  106. )
  107. </insert>
  108. <insert id="insertSelective" parameterType="com.goafanti.common.model.OrganizationIdentity" >
  109. insert into organization_identity
  110. <trim prefix="(" suffix=")" suffixOverrides="," >
  111. <if test="id != null" >
  112. id,
  113. </if>
  114. <if test="uid != null" >
  115. uid,
  116. </if>
  117. <if test="contacts != null" >
  118. contacts,
  119. </if>
  120. <if test="contactMobile != null" >
  121. contact_mobile,
  122. </if>
  123. <if test="fixedTel != null" >
  124. fixed_tel,
  125. </if>
  126. <if test="qq != null" >
  127. qq,
  128. </if>
  129. <if test="postalAddress != null" >
  130. postal_address,
  131. </if>
  132. <if test="postcode != null" >
  133. postcode,
  134. </if>
  135. <if test="aftUsername != null" >
  136. aft_username,
  137. </if>
  138. <if test="unitName != null" >
  139. unit_name,
  140. </if>
  141. <if test="registeredCapital != null" >
  142. registered_capital,
  143. </if>
  144. <if test="licenceNumber != null" >
  145. licence_number,
  146. </if>
  147. <if test="licenceProvince != null" >
  148. licence_province,
  149. </if>
  150. <if test="licenceCity != null" >
  151. licence_city,
  152. </if>
  153. <if test="licenceArea != null" >
  154. licence_area,
  155. </if>
  156. <if test="licenceScanningUrl != null" >
  157. licence_scanning_url,
  158. </if>
  159. <if test="orgCode != null" >
  160. org_code,
  161. </if>
  162. <if test="orgCodeUrl != null" >
  163. org_code_url,
  164. </if>
  165. <if test="bankAccount != null" >
  166. bank_account,
  167. </if>
  168. <if test="banks != null" >
  169. banks,
  170. </if>
  171. <if test="bankBranch != null" >
  172. bank_branch,
  173. </if>
  174. <if test="bankCardNumber != null" >
  175. bank_card_number,
  176. </if>
  177. <if test="validationAmount != null" >
  178. validation_amount,
  179. </if>
  180. <if test="identityType != null" >
  181. identity_type,
  182. </if>
  183. <if test="locationProvince != null" >
  184. location_province,
  185. </if>
  186. <if test="locationCity != null" >
  187. location_city,
  188. </if>
  189. <if test="locationArea != null" >
  190. location_area,
  191. </if>
  192. <if test="legalPerson != null" >
  193. legal_person,
  194. </if>
  195. <if test="legalPersonIdCard != null" >
  196. legal_person_id_card,
  197. </if>
  198. <if test="lastYearTaxReportUrl != null" >
  199. last_year_tax_report_url,
  200. </if>
  201. <if test="auditStatus != null" >
  202. audit_status,
  203. </if>
  204. <if test="process != null" >
  205. process,
  206. </if>
  207. <if test="wrongCount != null" >
  208. wrong_count,
  209. </if>
  210. <if test="paymentDate != null" >
  211. payment_date,
  212. </if>
  213. <if test="firstContacts!= null">
  214. first_contacts,
  215. </if>
  216. <if test="firstMobile != null">
  217. first_mobile,
  218. </if>
  219. <if test="secondContacts != null">
  220. second_contacts,
  221. </if>
  222. <if test="secondMobile != null">
  223. second_mobile,
  224. </if>
  225. <if test="thirdContacts != null">
  226. third_contacts,
  227. </if>
  228. <if test="thirdMobile != null">
  229. third_mobile,
  230. </if>
  231. <if test="listed != null">
  232. listed,
  233. </if>
  234. <if test="listedDate != null">
  235. listed_date,
  236. </if>
  237. <if test="listedType != null">
  238. listed_type,
  239. </if>
  240. <if test="stockCode != null">
  241. stock_code,
  242. </if>
  243. <if test="certificateNumber != null">
  244. certificate_number,
  245. </if>
  246. <if test="issuingDate != null">
  247. issuing_date,
  248. </if>
  249. <if test="cogContacts != null">
  250. cog_contacts,
  251. </if>
  252. <if test="consultant != null">
  253. consultant,
  254. </if>
  255. </trim>
  256. <trim prefix="values (" suffix=")" suffixOverrides="," >
  257. <if test="id != null" >
  258. #{id,jdbcType=VARCHAR},
  259. </if>
  260. <if test="uid != null" >
  261. #{uid,jdbcType=VARCHAR},
  262. </if>
  263. <if test="contacts != null" >
  264. #{contacts,jdbcType=VARCHAR},
  265. </if>
  266. <if test="contactMobile != null" >
  267. #{contactMobile,jdbcType=VARCHAR},
  268. </if>
  269. <if test="fixedTel != null" >
  270. #{fixedTel,jdbcType=VARCHAR},
  271. </if>
  272. <if test="qq != null" >
  273. #{qq,jdbcType=VARCHAR},
  274. </if>
  275. <if test="postalAddress != null" >
  276. #{postalAddress,jdbcType=VARCHAR},
  277. </if>
  278. <if test="postcode != null" >
  279. #{postcode,jdbcType=VARCHAR},
  280. </if>
  281. <if test="aftUsername != null" >
  282. #{aftUsername,jdbcType=VARCHAR},
  283. </if>
  284. <if test="unitName != null" >
  285. #{unitName,jdbcType=VARCHAR},
  286. </if>
  287. <if test="registeredCapital != null" >
  288. #{registeredCapital,jdbcType=INTEGER},
  289. </if>
  290. <if test="licenceNumber != null" >
  291. #{licenceNumber,jdbcType=VARCHAR},
  292. </if>
  293. <if test="licenceProvince != null" >
  294. #{licenceProvince,jdbcType=VARCHAR},
  295. </if>
  296. <if test="licenceCity != null" >
  297. #{licenceCity,jdbcType=VARCHAR},
  298. </if>
  299. <if test="licenceArea != null" >
  300. #{licenceArea,jdbcType=VARCHAR},
  301. </if>
  302. <if test="licenceScanningUrl != null" >
  303. #{licenceScanningUrl,jdbcType=VARCHAR},
  304. </if>
  305. <if test="orgCode != null" >
  306. #{orgCode,jdbcType=VARCHAR},
  307. </if>
  308. <if test="orgCodeUrl != null" >
  309. #{orgCodeUrl,jdbcType=VARCHAR},
  310. </if>
  311. <if test="bankAccount != null" >
  312. #{bankAccount,jdbcType=VARCHAR},
  313. </if>
  314. <if test="banks != null" >
  315. #{banks,jdbcType=VARCHAR},
  316. </if>
  317. <if test="bankBranch != null" >
  318. #{bankBranch,jdbcType=VARCHAR},
  319. </if>
  320. <if test="bankCardNumber != null" >
  321. #{bankCardNumber,jdbcType=VARCHAR},
  322. </if>
  323. <if test="validationAmount != null" >
  324. #{validationAmount,jdbcType=DECIMAL},
  325. </if>
  326. <if test="identityType != null" >
  327. #{identityType,jdbcType=INTEGER},
  328. </if>
  329. <if test="locationProvince != null" >
  330. #{locationProvince,jdbcType=VARCHAR},
  331. </if>
  332. <if test="locationCity != null" >
  333. #{locationCity,jdbcType=VARCHAR},
  334. </if>
  335. <if test="locationArea != null" >
  336. #{locationArea,jdbcType=VARCHAR},
  337. </if>
  338. <if test="legalPerson != null" >
  339. #{legalPerson,jdbcType=VARCHAR},
  340. </if>
  341. <if test="legalPersonIdCard != null" >
  342. #{legalPersonIdCard,jdbcType=VARCHAR},
  343. </if>
  344. <if test="lastYearTaxReportUrl != null" >
  345. #{lastYearTaxReportUrl,jdbcType=VARCHAR},
  346. </if>
  347. <if test="auditStatus != null" >
  348. #{auditStatus,jdbcType=INTEGER},
  349. </if>
  350. <if test="process != null" >
  351. #{process,jdbcType=INTEGER},
  352. </if>
  353. <if test="wrongCount != null" >
  354. #{wrongCount,jdbcType=INTEGER},
  355. </if>
  356. <if test="paymentDate != null" >
  357. #{paymentDate,jdbcType=TIMESTAMP},
  358. </if>
  359. <if test="firstContacts!= null">
  360. #{firstContacts,jdbcType=VARCHAR},
  361. </if>
  362. <if test="firstMobile != null">
  363. #{firstMobile,jdbcType=VARCHAR},
  364. </if>
  365. <if test="secondContacts != null">
  366. #{secondContacts,jdbcType=VARCHAR},
  367. </if>
  368. <if test="secondMobile != null">
  369. #{secondMobile,jdbcType=VARCHAR},
  370. </if>
  371. <if test="thirdContacts != null">
  372. #{thirdContacts,jdbcType=VARCHAR},
  373. </if>
  374. <if test="thirdMobile != null">
  375. #{thirdMobile,jdbcType=VARCHAR},
  376. </if>
  377. <if test="listed != null" >
  378. #{listed,jdbcType=INTEGER},
  379. </if>
  380. <if test="listedDate != null" >
  381. #{listedDate,jdbcType=TIMESTAMP},
  382. </if>
  383. <if test="listedType != null" >
  384. #{listedType,jdbcType=INTEGER},
  385. </if>
  386. <if test="stockCode != null" >
  387. #{stockCode,jdbcType=VARCHAR},
  388. </if>
  389. <if test="certificateNumber != null" >
  390. #{certificateNumber,jdbcType=VARCHAR},
  391. </if>
  392. <if test="issuingDate != null" >
  393. #{issuingDate,jdbcType=TIMESTAMP},
  394. </if>
  395. <if test="cogContacts != null" >
  396. #{cogContacts,jdbcType=INTEGER},
  397. </if>
  398. <if test="consultant != null" >
  399. #{consultant,jdbcType=VARCHAR},
  400. </if>
  401. </trim>
  402. </insert>
  403. <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrganizationIdentity" >
  404. update organization_identity
  405. <set >
  406. <if test="uid != null" >
  407. uid = #{uid,jdbcType=VARCHAR},
  408. </if>
  409. <if test="contacts != null" >
  410. contacts = #{contacts,jdbcType=VARCHAR},
  411. </if>
  412. <if test="contactMobile != null" >
  413. contact_mobile = #{contactMobile,jdbcType=VARCHAR},
  414. </if>
  415. <if test="fixedTel != null" >
  416. fixed_tel = #{fixedTel,jdbcType=VARCHAR},
  417. </if>
  418. <if test="qq != null" >
  419. qq = #{qq,jdbcType=VARCHAR},
  420. </if>
  421. <if test="postalAddress != null" >
  422. postal_address = #{postalAddress,jdbcType=VARCHAR},
  423. </if>
  424. <if test="postcode != null" >
  425. postcode = #{postcode,jdbcType=VARCHAR},
  426. </if>
  427. <if test="aftUsername != null" >
  428. aft_username = #{aftUsername,jdbcType=VARCHAR},
  429. </if>
  430. <if test="unitName != null" >
  431. unit_name = #{unitName,jdbcType=VARCHAR},
  432. </if>
  433. <if test="registeredCapital != null" >
  434. registered_capital = #{registeredCapital,jdbcType=INTEGER},
  435. </if>
  436. <if test="licenceNumber != null" >
  437. licence_number = #{licenceNumber,jdbcType=VARCHAR},
  438. </if>
  439. <if test="licenceProvince != null" >
  440. licence_province = #{licenceProvince,jdbcType=VARCHAR},
  441. </if>
  442. <if test="licenceCity != null" >
  443. licence_city = #{licenceCity,jdbcType=VARCHAR},
  444. </if>
  445. <if test="licenceArea != null" >
  446. licence_area = #{licenceArea,jdbcType=VARCHAR},
  447. </if>
  448. <if test="licenceScanningUrl != null" >
  449. licence_scanning_url = #{licenceScanningUrl,jdbcType=VARCHAR},
  450. </if>
  451. <if test="orgCode != null" >
  452. org_code = #{orgCode,jdbcType=VARCHAR},
  453. </if>
  454. <if test="orgCodeUrl != null" >
  455. org_code_url = #{orgCodeUrl,jdbcType=VARCHAR},
  456. </if>
  457. <if test="bankAccount != null" >
  458. bank_account = #{bankAccount,jdbcType=VARCHAR},
  459. </if>
  460. <if test="banks != null" >
  461. banks = #{banks,jdbcType=VARCHAR},
  462. </if>
  463. <if test="bankBranch != null" >
  464. bank_branch = #{bankBranch,jdbcType=VARCHAR},
  465. </if>
  466. <if test="bankCardNumber != null" >
  467. bank_card_number = #{bankCardNumber,jdbcType=VARCHAR},
  468. </if>
  469. <if test="validationAmount != null" >
  470. validation_amount = #{validationAmount,jdbcType=DECIMAL},
  471. </if>
  472. <if test="identityType != null" >
  473. identity_type = #{identityType,jdbcType=INTEGER},
  474. </if>
  475. <if test="locationProvince != null" >
  476. location_province = #{locationProvince,jdbcType=VARCHAR},
  477. </if>
  478. <if test="locationCity != null" >
  479. location_city = #{locationCity,jdbcType=VARCHAR},
  480. </if>
  481. <if test="locationArea != null" >
  482. location_area = #{locationArea,jdbcType=VARCHAR},
  483. </if>
  484. <if test="legalPerson != null" >
  485. legal_person = #{legalPerson,jdbcType=VARCHAR},
  486. </if>
  487. <if test="legalPersonIdCard != null" >
  488. legal_person_id_card = #{legalPersonIdCard,jdbcType=VARCHAR},
  489. </if>
  490. <if test="lastYearTaxReportUrl != null" >
  491. last_year_tax_report_url = #{lastYearTaxReportUrl,jdbcType=VARCHAR},
  492. </if>
  493. <if test="auditStatus != null" >
  494. audit_status = #{auditStatus,jdbcType=INTEGER},
  495. </if>
  496. <if test="process != null" >
  497. process = #{process,jdbcType=INTEGER},
  498. </if>
  499. <if test="wrongCount != null" >
  500. wrong_count = #{wrongCount,jdbcType=INTEGER},
  501. </if>
  502. <if test="paymentDate != null" >
  503. payment_date = #{paymentDate,jdbcType=TIMESTAMP},
  504. </if>
  505. <if test="firstContacts!= null">
  506. first_contacts = #{firstContacts,jdbcType=VARCHAR},
  507. </if>
  508. <if test="firstMobile != null">
  509. first_mobile = #{firstMobile,jdbcType=VARCHAR},
  510. </if>
  511. <if test="secondContacts != null">
  512. second_contacts = #{secondContacts,jdbcType=VARCHAR},
  513. </if>
  514. <if test="secondMobile != null">
  515. second_mobile = #{secondMobile,jdbcType=VARCHAR},
  516. </if>
  517. <if test="thirdContacts != null">
  518. third_contacts = #{thirdContacts,jdbcType=VARCHAR},
  519. </if>
  520. <if test="thirdMobile != null">
  521. third_mobile = #{thirdMobile,jdbcType=VARCHAR},
  522. </if>
  523. <if test="listed != null" >
  524. listed = #{listed,jdbcType=INTEGER},
  525. </if>
  526. <if test="listedDate != null" >
  527. listed_date = #{listedDate,jdbcType=TIMESTAMP},
  528. </if>
  529. <if test="listedType != null" >
  530. listed_type = #{listedType,jdbcType=INTEGER},
  531. </if>
  532. <if test="stockCode != null" >
  533. stock_code = #{stockCode,jdbcType=VARCHAR},
  534. </if>
  535. <if test="certificateNumber != null" >
  536. certificate_number = #{certificateNumber,jdbcType=VARCHAR},
  537. </if>
  538. <if test="issuingDate != null" >
  539. issuing_date = #{issuingDate,jdbcType=TIMESTAMP},
  540. </if>
  541. <if test="cogContacts != null" >
  542. cog_contacts = #{cogContacts,jdbcType=INTEGER},
  543. </if>
  544. <if test="consultant != null" >
  545. consultant = #{consultant,jdbcType=VARCHAR},
  546. </if>
  547. </set>
  548. where id = #{id,jdbcType=VARCHAR}
  549. </update>
  550. <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.OrganizationIdentity" >
  551. update organization_identity
  552. set uid = #{uid,jdbcType=VARCHAR},
  553. contacts = #{contacts,jdbcType=VARCHAR},
  554. contact_mobile = #{contactMobile,jdbcType=VARCHAR},
  555. fixed_tel = #{fixedTel,jdbcType=VARCHAR},
  556. qq = #{qq,jdbcType=VARCHAR},
  557. postal_address = #{postalAddress,jdbcType=VARCHAR},
  558. postcode = #{postcode,jdbcType=VARCHAR},
  559. aft_username = #{aftUsername,jdbcType=VARCHAR},
  560. unit_name = #{unitName,jdbcType=VARCHAR},
  561. registered_capital = #{registeredCapital,jdbcType=INTEGER},
  562. licence_number = #{licenceNumber,jdbcType=VARCHAR},
  563. licence_province = #{licenceProvince,jdbcType=VARCHAR},
  564. licence_city = #{licenceCity,jdbcType=VARCHAR},
  565. licence_area = #{licenceArea,jdbcType=VARCHAR},
  566. licence_scanning_url = #{licenceScanningUrl,jdbcType=VARCHAR},
  567. org_code = #{orgCode,jdbcType=VARCHAR},
  568. org_code_url = #{orgCodeUrl,jdbcType=VARCHAR},
  569. bank_account = #{bankAccount,jdbcType=VARCHAR},
  570. banks = #{banks,jdbcType=VARCHAR},
  571. bank_branch = #{bankBranch,jdbcType=VARCHAR},
  572. bank_card_number = #{bankCardNumber,jdbcType=VARCHAR},
  573. validation_amount = #{validationAmount,jdbcType=DECIMAL},
  574. identity_type = #{identityType,jdbcType=INTEGER},
  575. location_province = #{locationProvince,jdbcType=VARCHAR},
  576. location_city = #{locationCity,jdbcType=VARCHAR},
  577. location_area = #{locationArea,jdbcType=VARCHAR},
  578. legal_person = #{legalPerson,jdbcType=VARCHAR},
  579. legal_person_id_card = #{legalPersonIdCard,jdbcType=VARCHAR},
  580. last_year_tax_report_url = #{lastYearTaxReportUrl,jdbcType=VARCHAR},
  581. audit_status = #{auditStatus,jdbcType=INTEGER},
  582. process = #{process,jdbcType=INTEGER},
  583. wrong_count = #{wrongCount,jdbcType=INTEGER},
  584. payment_date = #{paymentDate,jdbcType=TIMESTAMP},
  585. first_contacts = #{firstContacts,jdbcType=VARCHAR},
  586. first_mobile = #{firstMobile,jdbcType=VARCHAR},
  587. second_contacts = #{secondContacts,jdbcType=VARCHAR},
  588. second_mobile = #{secondMobile,jdbcType=VARCHAR},
  589. third_contacts = #{thirdContacts,jdbcType=VARCHAR},
  590. third_mobile = #{thirdMobile,jdbcType=VARCHAR},
  591. listed = #{listed,jdbcType=INTEGER},
  592. listed_date = #{listedDate,jdbcType=TIMESTAMP},
  593. listed_type = #{listedType,jdbcType=INTEGER},
  594. stock_code = #{stockCode,jdbcType=VARCHAR},
  595. certificate_number = #{certificateNumber,jdbcType=VARCHAR},
  596. issuing_date = #{issuingDate,jdbcType=TIMESTAMP},
  597. cog_contacts = #{cogContacts,jdbcType=INTEGER},
  598. consultant = #{consultant,jdbcType=VARCHAR}
  599. }
  600. where id = #{id,jdbcType=VARCHAR}
  601. </update>
  602. <select id="selectOrgIdentityByUserId" parameterType="java.lang.String" resultMap="BaseResultMap">
  603. select
  604. <include refid="Base_Column_List" />
  605. from organization_identity
  606. where uid = #{uid,jdbcType=VARCHAR}
  607. </select>
  608. <select id="selectOrgIdentityBoByUserId" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgIdentityBo">
  609. select t.id,t.uid,t.contacts,t.fixed_tel as fixedTel ,t.qq,t.postal_address as postalAddress ,t.postcode,
  610. t.first_contacts as firstContacts, t.first_mobile as firstMobile,
  611. t.second_contacts as secondContacts, t.second_mobile as secondMobile,
  612. t.third_contacts as thirdContacts, t.third_mobile as thirdMobile,
  613. u.email ,t.legal_person as legalPerson
  614. from user u LEFT JOIN organization_identity t
  615. on t.uid = u.id
  616. where t.uid=#{uid,jdbcType=VARCHAR}
  617. </select>
  618. <select id="selectAllOrgIndentity" resultMap="BaseResultMap">
  619. select
  620. <include refid="Base_Column_List" />
  621. from organization_identity where audit_status = 5
  622. </select>
  623. </mapper>