OrganizationIdentityMapper.xml 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446
  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. a.id as uid,
  1215. a.identify_name as identifyName,
  1216. a.mobile,
  1217. a.email,
  1218. a.introduction,
  1219. a.company_logo_url as companyLogoUrl,
  1220. a.society_tag as societyTag,
  1221. a.authentication,
  1222. a.type,
  1223. b.id,
  1224. b.industry,
  1225. b.enterprise_scale as enterpriseScale,
  1226. b.registered_capital as registeredCapital,
  1227. b.legal_person as legalPerson,
  1228. b.legal_person_tel as legalPersonTel,
  1229. b.legal_person_id_card as legalPersonIdCard,
  1230. b.legal_person_email as legalPersonEmail,
  1231. b.listed,
  1232. b.registered_capital as registeredCapital,
  1233. b.high_tech_zone as highTechZone,
  1234. b.licence_province as licenceProvince,
  1235. b.licence_city as licenceCity,
  1236. b.licence_area as licenceArea,
  1237. b.postal_address as postalAddress,
  1238. b.fixed_tel as fixedTel,
  1239. b.org_code_url as orgCodeUrl,
  1240. b.org_code as orgCode,
  1241. b.business_scope as businessScope
  1242. from
  1243. user a left join organization_identity b on
  1244. a.id = b.uid
  1245. where
  1246. a.id = #{uid,jdbcType=VARCHAR}
  1247. </select>
  1248. <select id="selectAllOrgIndentity" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgUnitNames">
  1249. select u.id as uid, i.unit_name as unitName
  1250. from user u INNER JOIN
  1251. organization_identity i on u.id = i.uid
  1252. where
  1253. i.audit_status = 5
  1254. and u.lvl &gt; 0
  1255. <if test="_parameter != null">
  1256. and u.aid = #{aid,jdbcType=VARCHAR}
  1257. </if>
  1258. </select>
  1259. <select id="selectBasicInfo" resultType="com.goafanti.user.bo.OrgBasicInfoBo">
  1260. select oi.id,
  1261. oi.uid as
  1262. uid, oi.unit_name as unitName, oi.licence_province as licenceProvince,
  1263. oi.licence_city as licenceCity, oi.licence_area as licenceArea, oi.postal_address as
  1264. postalAddress,
  1265. oi.contacts_fixed_tel as
  1266. contactsFixedTel, oi.contacts_fax as
  1267. contactsFax,oi.legal_person_tel as
  1268. legalPersonTel,
  1269. oi.legal_person_fax as legalPersonFax,
  1270. oi.legal_person_email as legalPersonEmail,
  1271. oi.registered_capital as
  1272. registeredCapital,
  1273. oi.registration_time as registrationTime,
  1274. oi.legal_person as legalPerson,
  1275. oi.legal_person_id_card as
  1276. legalPersonIdCard, oi.org_code as orgCode,
  1277. oi.ratepay_code as
  1278. ratepayCode, oi.industry, oi.enterprise_scale as
  1279. enterpriseScale,
  1280. oi.register_type as registerType,
  1281. oi.foreign_investment as
  1282. foreignInvestment, oi.field, oi.tax_authority
  1283. as taxAuthority,
  1284. oi.listed_date as listedDate,
  1285. oi.ratepay_method as ratepayMethod,
  1286. oi.listed, oi.high_tech_zone as highTechZone,
  1287. oi.risk_investment as
  1288. riskInvestment, oi.stock_code as stockCode,
  1289. oi.business_scope as
  1290. businessScope, oi.high_tech_name as highTechName,
  1291. oi.listed_type as
  1292. listedType,
  1293. ohr.id as hid, ohr.firm_total as firmTotal, ohr.tech_total
  1294. as techTotal
  1295. from organization_identity oi
  1296. LEFT JOIN org_human_resource
  1297. ohr
  1298. on oi.uid = ohr.uid and ohr.year = #{1}
  1299. where oi.uid = #{0}
  1300. </select>
  1301. <select id="selectOrgIdentityDetailByUserId" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgIdentityDetailBo">
  1302. select
  1303. id, uid, unit_name as unitName, identity_type as identityType,
  1304. legal_person as legalPerson, legal_person_id_card as legalPersonIdCard, registration_time as registrationTime,
  1305. licence_number as licenceNumber, licence_province as licenceProvince, licence_city as licenceCity,
  1306. licence_area as licenceArea, licence_scanning_url as licenceScanningUrl, org_code as orgCode,
  1307. org_code_url as orgCodeUrl, banks, bank_branch as bankBranch, bank_card_number as bankCardNumber,
  1308. location_province as locationProvince, location_city as locationCity, location_area as locationArea,
  1309. validation_amount as validationAmount, payment_date as paymentDate, audit_status as auditStatus,
  1310. last_year_tax_report_url as lastYearTaxReportUrl
  1311. from organization_identity
  1312. where uid = #{uid,jdbcType=VARCHAR}
  1313. </select>
  1314. <select id="selectAuditorOrgIdentityDetailByUserId" resultType="com.goafanti.user.bo.AuditorOrgIdentityDetailBo">
  1315. select
  1316. u.aid, u.mid, u.lvl,
  1317. oi.id, oi.uid, oi.unit_name as unitName, oi.identity_type as identityType,
  1318. oi.legal_person as legalPerson, oi.legal_person_id_card as legalPersonIdCard, oi.registration_time as registrationTime,
  1319. oi.licence_number as licenceNumber, oi.licence_province as licenceProvince, oi.licence_city as licenceCity,
  1320. oi.licence_area as licenceArea, oi.licence_scanning_url as licenceScanningUrl, oi.org_code as orgCode,
  1321. oi.org_code_url as orgCodeUrl, oi.banks, bank_branch as bankBranch, oi.bank_card_number as bankCardNumber,
  1322. oi.location_province as locationProvince, oi.location_city as locationCity, oi.location_area as locationArea,
  1323. oi.validation_amount as validationAmount, oi.payment_date as paymentDate, oi.audit_status as auditStatus,
  1324. oi.last_year_tax_report_url as lastYearTaxReportUrl, oi.field, oi.registered_capital as registeredCapital,
  1325. ratepay.id as ratepayId
  1326. from user u
  1327. LEFT JOIN organization_identity oi on oi.uid = u.id
  1328. LEFT JOIN org_ratepay ratepay on ratepay.uid = u.id and ratepay.year = #{year,jdbcType=INTEGER} and deleted_sign = 0
  1329. where u.id = #{uid,jdbcType=VARCHAR}
  1330. </select>
  1331. <select id="selectManagerUnitNames" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgUnitNames">
  1332. select u.id as uid, i.unit_name as unitName
  1333. from user u INNER JOIN
  1334. organization_identity i on u.id = i.uid
  1335. where u.lvl = 1
  1336. <if test="_parameter != null">
  1337. and u.mid = #{aid,jdbcType=VARCHAR}
  1338. </if>
  1339. </select>
  1340. <select id="selectManagerAchievementOrgOwner" resultType="com.goafanti.user.bo.OrgUnitNames">
  1341. select u.id as uid, i.unit_name as unitName
  1342. from user u INNER JOIN
  1343. organization_identity i on u.id = i.uid
  1344. where u.lvl = 1 and i.unit_name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
  1345. <if test="aid != null">
  1346. and u.mid = #{aid,jdbcType=VARCHAR}
  1347. </if>
  1348. </select>
  1349. <select id="selectAchievementOrgOwner" resultType="com.goafanti.user.bo.OrgUnitNames">
  1350. select u.id as uid, i.unit_name as unitName
  1351. from user u INNER JOIN
  1352. organization_identity i on u.id = i.uid
  1353. where u.lvl = 1 and i.unit_name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
  1354. <if test="aid != null">
  1355. and u.aid = #{aid,jdbcType=VARCHAR}
  1356. </if>
  1357. </select>
  1358. <select id="findSearchSubscriberListByPage" parameterType="String" resultType="com.goafanti.portal.bo.OrgSubscriberListBo">
  1359. SELECT
  1360. u.id as uid,
  1361. oi.unit_name as unitName,
  1362. u.number,
  1363. oi.id as identityId,
  1364. info.logo_url as logoUrl,
  1365. oi.licence_province as province,
  1366. adc.achievement_count as achievementNum,
  1367. adc.demand_count as demandNum
  1368. FROM
  1369. <![CDATA[ user ]]> u
  1370. LEFT JOIN organization_identity oi ON oi.uid = u.id
  1371. LEFT JOIN organization_info info on info.uid = u.id
  1372. LEFT JOIN organization_tech ot on ot.uid = u.id
  1373. LEFT JOIN achievement_demand_count adc on adc.uid = u.id
  1374. WHERE
  1375. u.type = 1
  1376. <if test="null != level and level==1 ">
  1377. AND u.lvl <![CDATA[ >= ]]> 1
  1378. </if>
  1379. <if test="null !=level and level==0">
  1380. AND u.lvl = 0
  1381. </if>
  1382. <if test="province != null">
  1383. AND oi.licence_province = #{province,jdbcType=INTEGER}
  1384. </if>
  1385. <if test="city != null">
  1386. AND oi.licence_city = #{city,jdbcType=INTEGER}
  1387. </if>
  1388. <if test="area != null">
  1389. AND oi.licence_area = #{area,jdbcType=INTEGER}
  1390. </if>
  1391. <if test="field != null">
  1392. AND ot.search_area_category like CONCAT(#{field,jdbcType=VARCHAR},'%')
  1393. </if>
  1394. <if test="name != null">
  1395. AND oi.unit_name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
  1396. </if>
  1397. ORDER BY u.number
  1398. <if test="page_sql!=null">
  1399. ${page_sql}
  1400. </if>
  1401. </select>
  1402. <select id="findSearchSubscriberCount" parameterType="String" resultType="java.lang.Integer">
  1403. SELECT
  1404. count(1)
  1405. FROM
  1406. <![CDATA[ user ]]> u
  1407. LEFT JOIN organization_identity oi ON oi.uid = u.id
  1408. LEFT JOIN organization_info info on info.uid = u.id
  1409. LEFT JOIN organization_tech ot on ot.uid = u.id
  1410. WHERE
  1411. u.type = 1
  1412. <if test="null != level and level==1 ">
  1413. AND u.lvl <![CDATA[ >= ]]> 1
  1414. </if>
  1415. <if test="null !=level and level==0">
  1416. AND u.lvl = 0
  1417. </if>
  1418. <if test="province != null">
  1419. AND oi.licence_province = #{province,jdbcType=INTEGER}
  1420. </if>
  1421. <if test="city != null">
  1422. AND oi.licence_city = #{city,jdbcType=INTEGER}
  1423. </if>
  1424. <if test="area != null">
  1425. AND oi.licence_area = #{area,jdbcType=INTEGER}
  1426. </if>
  1427. <if test="field != null">
  1428. AND ot.search_area_category like CONCAT(#{field,jdbcType=VARCHAR},'%')
  1429. </if>
  1430. <if test="name != null">
  1431. AND oi.unit_name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
  1432. </if>
  1433. </select>
  1434. </mapper>