OrganizationIdentityMapper.xml 58 KB

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