OrganizationIdentityMapper.xml 62 KB

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