OrgInfoMapper.xml 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091
  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.chinaitop.depot.system.mapper.OrgInfoMapper" >
  4. <resultMap id="BaseResultMap" type="com.chinaitop.depot.system.model.OrgInfo" >
  5. <id column="org_id" property="orgId" jdbcType="INTEGER" />
  6. <result column="org_name" property="orgName" jdbcType="VARCHAR" />
  7. <result column="short_name" property="shortName" jdbcType="VARCHAR" />
  8. <result column="org_code" property="orgCode" jdbcType="VARCHAR" />
  9. <result column="org_class_id" property="orgClassId" jdbcType="INTEGER" />
  10. <result column="company_nature" property="companyNature" jdbcType="INTEGER" />
  11. <result column="busi_type" property="busiType" jdbcType="INTEGER" />
  12. <result column="address" property="address" jdbcType="VARCHAR" />
  13. <result column="contact" property="contact" jdbcType="VARCHAR" />
  14. <result column="fax" property="fax" jdbcType="VARCHAR" />
  15. <result column="charge_person" property="chargePerson" jdbcType="VARCHAR" />
  16. <result column="longitude" property="longitude" jdbcType="VARCHAR" />
  17. <result column="latitude" property="latitude" jdbcType="VARCHAR" />
  18. <result column="regist_capital" property="registCapital" jdbcType="INTEGER" />
  19. <result column="work_number" property="workNumber" jdbcType="INTEGER" />
  20. <result column="area_code" property="areaCode" jdbcType="INTEGER" />
  21. <result column="area_name" property="areaName" jdbcType="VARCHAR" />
  22. <result column="post" property="post" jdbcType="VARCHAR" />
  23. <result column="depot_class" property="depotClass" jdbcType="INTEGER" />
  24. <result column="design_capacity" property="designCapacity" jdbcType="DECIMAL" />
  25. <result column="effective_capacity" property="effectiveCapacity" jdbcType="DECIMAL" />
  26. <result column="depot_area" property="depotArea" jdbcType="DECIMAL" />
  27. <result column="complete_date" property="completeDate" jdbcType="TIMESTAMP" />
  28. <result column="use_date" property="useDate" jdbcType="TIMESTAMP" />
  29. <result column="company_org_code" property="companyOrgCode" jdbcType="VARCHAR" />
  30. <result column="credit_code" property="creditCode" jdbcType="VARCHAR" />
  31. <result column="regist_type" property="registType" jdbcType="INTEGER" />
  32. <result column="qualification" property="qualification" jdbcType="INTEGER" />
  33. <result column="independent_corporation" property="independentCorporation" jdbcType="INTEGER" />
  34. <result column="legal_person" property="legalPerson" jdbcType="VARCHAR" />
  35. <result column="whether_rent" property="whetherRent" jdbcType="INTEGER" />
  36. <result column="info_regist" property="infoRegist" jdbcType="VARCHAR" />
  37. <result column="regist_date" property="registDate" jdbcType="TIMESTAMP" />
  38. <result column="remark" property="remark" jdbcType="VARCHAR" />
  39. <result column="parent_id" property="parentId" jdbcType="INTEGER" />
  40. <result column="status" property="status" jdbcType="INTEGER" />
  41. <result column="del_flag" property="delFlag" jdbcType="INTEGER" />
  42. <result column="birds_eye" property="birdsEye" jdbcType="VARCHAR" />
  43. <result column="birds_Remote" property="birdsRemote" jdbcType="VARCHAR" />
  44. <result column="brief_introduction" property="briefIntroduction" jdbcType="VARCHAR" />
  45. <result column="invoice_title" property="invoiceTitle" jdbcType="VARCHAR" />
  46. <result column="regist_number" property="registNumber" jdbcType="VARCHAR" />
  47. <result column="bank_name" property="bankName" jdbcType="VARCHAR" />
  48. <result column="account_name" property="accountName" jdbcType="VARCHAR" />
  49. <result column="account_number" property="accountNumber" jdbcType="VARCHAR" />
  50. <result column="total_assets" property="totalAssets" jdbcType="INTEGER" />
  51. <result column="corporate_capacity" property="corporateCapacity" jdbcType="VARCHAR" />
  52. <result column="office_phone" property="officePhone" jdbcType="VARCHAR" />
  53. <result column="registered_address" property="registeredAddress" jdbcType="VARCHAR" />
  54. <result column="mail_box" property="mailBox" jdbcType="VARCHAR" />
  55. <result column="official_website" property="officialWebsite" jdbcType="VARCHAR" />
  56. <result column="house_number" property="houseNumber" jdbcType="INTEGER" />
  57. <result column="tank_number" property="tankNumber" jdbcType="INTEGER" />
  58. <result column="depot_property" property="depotProperty" jdbcType="VARCHAR" />
  59. <result column="level_code" property="levelCode" jdbcType="VARCHAR" />
  60. <result column="updatetime" property="updateTime" jdbcType="VARCHAR" />
  61. <result column="cityCouncil_code" property="cityCouncilCode" jdbcType="VARCHAR" />
  62. <result column="frlxfs" property="frlxfs" jdbcType="VARCHAR" />
  63. <result column="yxgr" property="yxgr" jdbcType="DECIMAL" />
  64. <result column="kqbm" property="kqbm" jdbcType="VARCHAR" />
  65. <result column="sfzk" property="sfzk" jdbcType="VARCHAR" />
  66. <result column="kq_number" property="kqNumber" jdbcType="INTEGER" />
  67. <result column="zc_province" property="zcProvince" jdbcType="INTEGER" />
  68. <result column="zc_city" property="zcCity" jdbcType="INTEGER" />
  69. <result column="zc_county" property="zcCounty" jdbcType="INTEGER" />
  70. <result column="unit_info_id" property="unitInfoId" jdbcType="VARCHAR" />
  71. </resultMap>
  72. <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.chinaitop.depot.system.model.OrgInfo">
  73. <result column="wjl" jdbcType="LONGVARCHAR" property="wjl" />
  74. </resultMap>
  75. <sql id="Example_Where_Clause" >
  76. <where >
  77. <foreach collection="oredCriteria" item="criteria" separator="or" >
  78. <if test="criteria.valid" >
  79. <trim prefix="(" suffix=")" prefixOverrides="and" >
  80. <foreach collection="criteria.criteria" item="criterion" >
  81. <choose >
  82. <when test="criterion.noValue" >
  83. and ${criterion.condition}
  84. </when>
  85. <when test="criterion.singleValue" >
  86. and ${criterion.condition} #{criterion.value}
  87. </when>
  88. <when test="criterion.betweenValue" >
  89. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  90. </when>
  91. <when test="criterion.listValue" >
  92. and ${criterion.condition}
  93. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  94. #{listItem}
  95. </foreach>
  96. </when>
  97. </choose>
  98. </foreach>
  99. </trim>
  100. </if>
  101. </foreach>
  102. </where>
  103. </sql>
  104. <sql id="Update_By_Example_Where_Clause" >
  105. <where >
  106. <foreach collection="example.oredCriteria" item="criteria" separator="or" >
  107. <if test="criteria.valid" >
  108. <trim prefix="(" suffix=")" prefixOverrides="and" >
  109. <foreach collection="criteria.criteria" item="criterion" >
  110. <choose >
  111. <when test="criterion.noValue" >
  112. and ${criterion.condition}
  113. </when>
  114. <when test="criterion.singleValue" >
  115. and ${criterion.condition} #{criterion.value}
  116. </when>
  117. <when test="criterion.betweenValue" >
  118. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  119. </when>
  120. <when test="criterion.listValue" >
  121. and ${criterion.condition}
  122. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  123. #{listItem}
  124. </foreach>
  125. </when>
  126. </choose>
  127. </foreach>
  128. </trim>
  129. </if>
  130. </foreach>
  131. </where>
  132. </sql>
  133. <sql id="Base_Column_List" >
  134. org_id, org_name, short_name, org_code, org_class_id, company_nature, busi_type,
  135. address, contact, fax, charge_person, longitude, latitude, regist_capital, work_number,
  136. area_code, area_name, post, depot_class, design_capacity, effective_capacity, depot_area,
  137. complete_date, use_date, company_org_code, credit_code, regist_type, qualification,
  138. independent_corporation, legal_person, whether_rent, info_regist, regist_date, remark,
  139. parent_id, status, del_flag, birds_eye, birds_Remote, brief_introduction, invoice_title,
  140. regist_number, bank_name, account_name, account_number,level_code,total_assets,corporate_capacity,
  141. office_phone,registered_address,mail_box,official_website,house_number,tank_number,depot_property,updatetime,
  142. cityCouncil_code,frlxfs,yxgr,kqbm,sfzk, kq_number, zc_province, zc_city, zc_county,unit_info_id
  143. </sql>
  144. <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.system.model.OrgInfoExample" >
  145. select
  146. <if test="distinct" >
  147. distinct
  148. </if>
  149. <include refid="Base_Column_List" />
  150. from org_info
  151. <if test="_parameter != null" >
  152. <include refid="Example_Where_Clause" />
  153. </if>
  154. <if test="orderByClause != null" >
  155. order by ${orderByClause}
  156. </if>
  157. </select>
  158. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  159. select
  160. <include refid="Base_Column_List" />
  161. from org_info
  162. where org_id = #{orgId,jdbcType=INTEGER}
  163. </select>
  164. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  165. delete from org_info
  166. where org_id = #{orgId,jdbcType=INTEGER}
  167. </delete>
  168. <delete id="deleteByExample" parameterType="com.chinaitop.depot.system.model.OrgInfoExample" >
  169. delete from org_info
  170. <if test="_parameter != null" >
  171. <include refid="Example_Where_Clause" />
  172. </if>
  173. </delete>
  174. <insert id="insert" parameterType="com.chinaitop.depot.system.model.OrgInfo" useGeneratedKeys="true" keyProperty="orgId">
  175. insert into org_info (org_id, org_name, short_name,
  176. org_code, org_class_id, company_nature,
  177. busi_type, address, contact,
  178. fax, charge_person, longitude,
  179. latitude, regist_capital, work_number,
  180. area_code, area_name, post,
  181. depot_class, design_capacity, effective_capacity,
  182. depot_area, complete_date, use_date,
  183. company_org_code, credit_code, regist_type,
  184. qualification, independent_corporation,
  185. legal_person, whether_rent, info_regist,
  186. regist_date, remark, parent_id,
  187. status, del_flag, birds_eye,
  188. birds_Remote, brief_introduction, invoice_title,
  189. regist_number, bank_name, account_name,
  190. account_number,total_assets,corporate_capacity,
  191. office_phone,registered_address,mail_box,official_website,
  192. house_number,tank_number,depot_property,level_code,wjl,frlxfs,yxgr,kqbm,sfzk, kq_number, zc_province, zc_city, zc_county,
  193. unit_info_id)
  194. values (#{orgId,jdbcType=INTEGER}, #{orgName,jdbcType=VARCHAR}, #{shortName,jdbcType=VARCHAR},
  195. #{orgCode,jdbcType=VARCHAR}, #{orgClassId,jdbcType=INTEGER}, #{companyNature,jdbcType=INTEGER},
  196. #{busiType,jdbcType=INTEGER}, #{address,jdbcType=VARCHAR}, #{contact,jdbcType=VARCHAR},
  197. #{fax,jdbcType=VARCHAR}, #{chargePerson,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR},
  198. #{latitude,jdbcType=VARCHAR}, #{registCapital,jdbcType=INTEGER}, #{workNumber,jdbcType=INTEGER},
  199. #{areaCode,jdbcType=INTEGER}, #{areaName,jdbcType=VARCHAR}, #{post,jdbcType=VARCHAR},
  200. #{depotClass,jdbcType=INTEGER}, #{designCapacity,jdbcType=DECIMAL}, #{effectiveCapacity,jdbcType=DECIMAL},
  201. #{depotArea,jdbcType=DECIMAL}, #{completeDate,jdbcType=TIMESTAMP}, #{useDate,jdbcType=TIMESTAMP},
  202. #{companyOrgCode,jdbcType=VARCHAR}, #{creditCode,jdbcType=VARCHAR}, #{registType,jdbcType=INTEGER},
  203. #{qualification,jdbcType=INTEGER}, #{independentCorporation,jdbcType=INTEGER},
  204. #{legalPerson,jdbcType=VARCHAR}, #{whetherRent,jdbcType=INTEGER}, #{infoRegist,jdbcType=VARCHAR},
  205. #{registDate,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER},
  206. #{status,jdbcType=INTEGER}, #{delFlag,jdbcType=INTEGER}, #{birdsEye,jdbcType=VARCHAR},
  207. #{birdsRemote,jdbcType=VARCHAR}, #{briefIntroduction,jdbcType=VARCHAR}, #{invoiceTitle,jdbcType=VARCHAR},
  208. #{registNumber,jdbcType=VARCHAR}, #{bankName,jdbcType=VARCHAR}, #{accountName,jdbcType=VARCHAR},
  209. #{accountNumber,jdbcType=VARCHAR}, #{totalAssets,jdbcType=INTEGER}, #{corporateCapacity,jdbcType=VARCHAR},
  210. #{officePhone,jdbcType=VARCHAR}, #{registeredAddress,jdbcType=VARCHAR}, #{mailBox,jdbcType=VARCHAR},
  211. #{officialWebsite,jdbcType=VARCHAR}, #{houseNumber,jdbcType=INTEGER}, #{tankNumber,jdbcType=INTEGER},
  212. #{depotProperty,jdbcType=VARCHAR}, #{levelCode,jdbcType=VARCHAR}, #{wjl,jdbcType=LONGVARCHAR},
  213. #{frlxfs,jdbcType=VARCHAR}, #{yxgr,jdbcType=DECIMAL}, #{kqbm,jdbcType=VARCHAR}, #{sfzk,jdbcType=VARCHAR},
  214. #{kqNumber,jdbcType=INTEGER}, #{zcProvince,jdbcType=INTEGER},#{zcCity,jdbcType=INTEGER}, #{zcCounty,jdbcType=INTEGER},
  215. #{unitInfoId,jdbcType=VARCHAR})
  216. </insert>
  217. <insert id="insertSelective" parameterType="com.chinaitop.depot.system.model.OrgInfo" useGeneratedKeys="true" keyProperty="orgId">
  218. insert into org_info
  219. <trim prefix="(" suffix=")" suffixOverrides="," >
  220. <if test="orgId != null" >
  221. org_id,
  222. </if>
  223. <if test="orgName != null" >
  224. org_name,
  225. </if>
  226. <if test="shortName != null" >
  227. short_name,
  228. </if>
  229. <if test="orgCode != null" >
  230. org_code,
  231. </if>
  232. <if test="orgClassId != null" >
  233. org_class_id,
  234. </if>
  235. <if test="companyNature != null" >
  236. company_nature,
  237. </if>
  238. <if test="busiType != null" >
  239. busi_type,
  240. </if>
  241. <if test="address != null" >
  242. address,
  243. </if>
  244. <if test="contact != null" >
  245. contact,
  246. </if>
  247. <if test="fax != null" >
  248. fax,
  249. </if>
  250. <if test="chargePerson != null" >
  251. charge_person,
  252. </if>
  253. <if test="longitude != null" >
  254. longitude,
  255. </if>
  256. <if test="latitude != null" >
  257. latitude,
  258. </if>
  259. <if test="registCapital != null" >
  260. regist_capital,
  261. </if>
  262. <if test="workNumber != null" >
  263. work_number,
  264. </if>
  265. <if test="areaCode != null" >
  266. area_code,
  267. </if>
  268. <if test="areaName != null" >
  269. area_name,
  270. </if>
  271. <if test="post != null" >
  272. post,
  273. </if>
  274. <if test="depotClass != null" >
  275. depot_class,
  276. </if>
  277. <if test="designCapacity != null" >
  278. design_capacity,
  279. </if>
  280. <if test="effectiveCapacity != null" >
  281. effective_capacity,
  282. </if>
  283. <if test="depotArea != null" >
  284. depot_area,
  285. </if>
  286. <if test="completeDate != null" >
  287. complete_date,
  288. </if>
  289. <if test="useDate != null" >
  290. use_date,
  291. </if>
  292. <if test="companyOrgCode != null" >
  293. company_org_code,
  294. </if>
  295. <if test="creditCode != null" >
  296. credit_code,
  297. </if>
  298. <if test="registType != null" >
  299. regist_type,
  300. </if>
  301. <if test="qualification != null" >
  302. qualification,
  303. </if>
  304. <if test="independentCorporation != null" >
  305. independent_corporation,
  306. </if>
  307. <if test="legalPerson != null" >
  308. legal_person,
  309. </if>
  310. <if test="whetherRent != null" >
  311. whether_rent,
  312. </if>
  313. <if test="infoRegist != null" >
  314. info_regist,
  315. </if>
  316. <if test="registDate != null" >
  317. regist_date,
  318. </if>
  319. <if test="remark != null" >
  320. remark,
  321. </if>
  322. <if test="parentId != null" >
  323. parent_id,
  324. </if>
  325. <if test="status != null" >
  326. status,
  327. </if>
  328. <if test="delFlag != null" >
  329. del_flag,
  330. </if>
  331. <if test="birdsEye != null" >
  332. birds_eye,
  333. </if>
  334. <if test="birdsRemote != null" >
  335. birds_Remote,
  336. </if>
  337. <if test="briefIntroduction != null" >
  338. brief_introduction,
  339. </if>
  340. <if test="invoiceTitle != null" >
  341. invoice_title,
  342. </if>
  343. <if test="registNumber != null" >
  344. regist_number,
  345. </if>
  346. <if test="bankName != null" >
  347. bank_name,
  348. </if>
  349. <if test="accountName != null" >
  350. account_name,
  351. </if>
  352. <if test="accountNumber != null" >
  353. account_number,
  354. </if>
  355. <if test="wjl != null">
  356. wjl,
  357. </if>
  358. <if test="frlxfs != null">
  359. frlxfs,
  360. </if>
  361. <if test="yxgr != null">
  362. yxgr,
  363. </if>
  364. <if test="kqbm != null">
  365. kqbm,
  366. </if>
  367. <if test="sfzk != null">
  368. sfzk,
  369. </if>
  370. <if test="kqNumber != null" >
  371. kq_number,
  372. </if>
  373. <if test="zcProvince != null" >
  374. zc_province,
  375. </if>
  376. <if test="zcCity != null" >
  377. zc_city,
  378. </if>
  379. <if test="zcCounty != null" >
  380. zc_county,
  381. </if>
  382. <if test="unitInfoId != null" >
  383. unit_info_id,
  384. </if>
  385. </trim>
  386. <trim prefix="values (" suffix=")" suffixOverrides="," >
  387. <if test="orgId != null" >
  388. #{orgId,jdbcType=INTEGER},
  389. </if>
  390. <if test="orgName != null" >
  391. #{orgName,jdbcType=VARCHAR},
  392. </if>
  393. <if test="shortName != null" >
  394. #{shortName,jdbcType=VARCHAR},
  395. </if>
  396. <if test="orgCode != null" >
  397. #{orgCode,jdbcType=VARCHAR},
  398. </if>
  399. <if test="orgClassId != null" >
  400. #{orgClassId,jdbcType=INTEGER},
  401. </if>
  402. <if test="companyNature != null" >
  403. #{companyNature,jdbcType=INTEGER},
  404. </if>
  405. <if test="busiType != null" >
  406. #{busiType,jdbcType=INTEGER},
  407. </if>
  408. <if test="address != null" >
  409. #{address,jdbcType=VARCHAR},
  410. </if>
  411. <if test="contact != null" >
  412. #{contact,jdbcType=VARCHAR},
  413. </if>
  414. <if test="fax != null" >
  415. #{fax,jdbcType=VARCHAR},
  416. </if>
  417. <if test="chargePerson != null" >
  418. #{chargePerson,jdbcType=VARCHAR},
  419. </if>
  420. <if test="longitude != null" >
  421. #{longitude,jdbcType=VARCHAR},
  422. </if>
  423. <if test="latitude != null" >
  424. #{latitude,jdbcType=VARCHAR},
  425. </if>
  426. <if test="registCapital != null" >
  427. #{registCapital,jdbcType=INTEGER},
  428. </if>
  429. <if test="workNumber != null" >
  430. #{workNumber,jdbcType=INTEGER},
  431. </if>
  432. <if test="areaCode != null" >
  433. #{areaCode,jdbcType=INTEGER},
  434. </if>
  435. <if test="areaName != null" >
  436. #{areaName,jdbcType=VARCHAR},
  437. </if>
  438. <if test="post != null" >
  439. #{post,jdbcType=VARCHAR},
  440. </if>
  441. <if test="depotClass != null" >
  442. #{depotClass,jdbcType=INTEGER},
  443. </if>
  444. <if test="designCapacity != null" >
  445. #{designCapacity,jdbcType=DECIMAL},
  446. </if>
  447. <if test="effectiveCapacity != null" >
  448. #{effectiveCapacity,jdbcType=DECIMAL},
  449. </if>
  450. <if test="depotArea != null" >
  451. #{depotArea,jdbcType=DECIMAL},
  452. </if>
  453. <if test="completeDate != null" >
  454. #{completeDate,jdbcType=TIMESTAMP},
  455. </if>
  456. <if test="useDate != null" >
  457. #{useDate,jdbcType=TIMESTAMP},
  458. </if>
  459. <if test="companyOrgCode != null" >
  460. #{companyOrgCode,jdbcType=VARCHAR},
  461. </if>
  462. <if test="creditCode != null" >
  463. #{creditCode,jdbcType=VARCHAR},
  464. </if>
  465. <if test="registType != null" >
  466. #{registType,jdbcType=INTEGER},
  467. </if>
  468. <if test="qualification != null" >
  469. #{qualification,jdbcType=INTEGER},
  470. </if>
  471. <if test="independentCorporation != null" >
  472. #{independentCorporation,jdbcType=INTEGER},
  473. </if>
  474. <if test="legalPerson != null" >
  475. #{legalPerson,jdbcType=VARCHAR},
  476. </if>
  477. <if test="whetherRent != null" >
  478. #{whetherRent,jdbcType=INTEGER},
  479. </if>
  480. <if test="infoRegist != null" >
  481. #{infoRegist,jdbcType=VARCHAR},
  482. </if>
  483. <if test="registDate != null" >
  484. #{registDate,jdbcType=TIMESTAMP},
  485. </if>
  486. <if test="remark != null" >
  487. #{remark,jdbcType=VARCHAR},
  488. </if>
  489. <if test="parentId != null" >
  490. #{parentId,jdbcType=INTEGER},
  491. </if>
  492. <if test="status != null" >
  493. #{status,jdbcType=INTEGER},
  494. </if>
  495. <if test="delFlag != null" >
  496. #{delFlag,jdbcType=INTEGER},
  497. </if>
  498. <if test="birdsEye != null" >
  499. #{birdsEye,jdbcType=VARCHAR},
  500. </if>
  501. <if test="birdsRemote != null" >
  502. #{birdsRemote,jdbcType=VARCHAR},
  503. </if>
  504. <if test="briefIntroduction != null" >
  505. #{briefIntroduction,jdbcType=VARCHAR},
  506. </if>
  507. <if test="invoiceTitle != null" >
  508. #{invoiceTitle,jdbcType=VARCHAR},
  509. </if>
  510. <if test="registNumber != null" >
  511. #{registNumber,jdbcType=VARCHAR},
  512. </if>
  513. <if test="bankName != null" >
  514. #{bankName,jdbcType=VARCHAR},
  515. </if>
  516. <if test="accountName != null" >
  517. #{accountName,jdbcType=VARCHAR},
  518. </if>
  519. <if test="accountNumber != null" >
  520. #{accountNumber,jdbcType=VARCHAR},
  521. </if>
  522. <if test="wjl != null">
  523. #{wjl,jdbcType=LONGVARCHAR},
  524. </if>
  525. <if test="frlxfs != null">
  526. #{frlxfs,jdbcType=VARCHAR},
  527. </if>
  528. <if test="yxgr != null" >
  529. #{yxgr,jdbcType=DECIMAL},
  530. </if>
  531. <if test="kqbm != null">
  532. #{kqbm,jdbcType=VARCHAR},
  533. </if>
  534. <if test="sfzk != null">
  535. #{sfzk,jdbcType=VARCHAR},
  536. </if>
  537. <if test="kqNumber != null" >
  538. #{kqNumber,jdbcType=INTEGER},
  539. </if>
  540. <if test="zcProvince != null" >
  541. #{zcProvince,jdbcType=INTEGER},
  542. </if>
  543. <if test="zcCity != null" >
  544. #{zcCity,jdbcType=INTEGER},
  545. </if>
  546. <if test="zcCounty != null" >
  547. #{zcCounty,jdbcType=INTEGER},
  548. </if>
  549. <if test="unitInfoId != null">
  550. #{unitInfoId,jdbcType=VARCHAR},
  551. </if>
  552. </trim>
  553. </insert>
  554. <select id="countByExample" parameterType="com.chinaitop.depot.system.model.OrgInfoExample" resultType="java.lang.Integer" >
  555. select count(*) from org_info
  556. <if test="_parameter != null" >
  557. <include refid="Example_Where_Clause" />
  558. </if>
  559. </select>
  560. <update id="updateByExampleSelective" parameterType="map" >
  561. update org_info
  562. <set >
  563. <if test="record.orgId != null" >
  564. org_id = #{record.orgId,jdbcType=INTEGER},
  565. </if>
  566. <if test="record.orgName != null" >
  567. org_name = #{record.orgName,jdbcType=VARCHAR},
  568. </if>
  569. <if test="record.shortName != null" >
  570. short_name = #{record.shortName,jdbcType=VARCHAR},
  571. </if>
  572. <if test="record.orgCode != null" >
  573. org_code = #{record.orgCode,jdbcType=VARCHAR},
  574. </if>
  575. <if test="record.orgClassId != null" >
  576. org_class_id = #{record.orgClassId,jdbcType=INTEGER},
  577. </if>
  578. <if test="record.companyNature != null" >
  579. company_nature = #{record.companyNature,jdbcType=INTEGER},
  580. </if>
  581. <if test="record.busiType != null" >
  582. busi_type = #{record.busiType,jdbcType=INTEGER},
  583. </if>
  584. <if test="record.address != null" >
  585. address = #{record.address,jdbcType=VARCHAR},
  586. </if>
  587. <if test="record.contact != null" >
  588. contact = #{record.contact,jdbcType=VARCHAR},
  589. </if>
  590. <if test="record.fax != null" >
  591. fax = #{record.fax,jdbcType=VARCHAR},
  592. </if>
  593. <if test="record.chargePerson != null" >
  594. charge_person = #{record.chargePerson,jdbcType=VARCHAR},
  595. </if>
  596. <if test="record.longitude != null" >
  597. longitude = #{record.longitude,jdbcType=VARCHAR},
  598. </if>
  599. <if test="record.latitude != null" >
  600. latitude = #{record.latitude,jdbcType=VARCHAR},
  601. </if>
  602. <if test="record.registCapital != null" >
  603. regist_capital = #{record.registCapital,jdbcType=INTEGER},
  604. </if>
  605. <if test="record.workNumber != null" >
  606. work_number = #{record.workNumber,jdbcType=INTEGER},
  607. </if>
  608. <if test="record.areaCode != null" >
  609. area_code = #{record.areaCode,jdbcType=INTEGER},
  610. </if>
  611. <if test="record.areaName != null" >
  612. area_name = #{record.areaName,jdbcType=VARCHAR},
  613. </if>
  614. <if test="record.post != null" >
  615. post = #{record.post,jdbcType=VARCHAR},
  616. </if>
  617. <if test="record.depotClass != null" >
  618. depot_class = #{record.depotClass,jdbcType=INTEGER},
  619. </if>
  620. <if test="record.designCapacity != null" >
  621. design_capacity = #{record.designCapacity,jdbcType=DECIMAL},
  622. </if>
  623. <if test="record.effectiveCapacity != null" >
  624. effective_capacity = #{record.effectiveCapacity,jdbcType=DECIMAL},
  625. </if>
  626. <if test="record.depotArea != null" >
  627. depot_area = #{record.depotArea,jdbcType=DECIMAL},
  628. </if>
  629. <if test="record.completeDate != null" >
  630. complete_date = #{record.completeDate,jdbcType=TIMESTAMP},
  631. </if>
  632. <if test="record.useDate != null" >
  633. use_date = #{record.useDate,jdbcType=TIMESTAMP},
  634. </if>
  635. <if test="record.companyOrgCode != null" >
  636. company_org_code = #{record.companyOrgCode,jdbcType=VARCHAR},
  637. </if>
  638. <if test="record.creditCode != null" >
  639. credit_code = #{record.creditCode,jdbcType=VARCHAR},
  640. </if>
  641. <if test="record.registType != null" >
  642. regist_type = #{record.registType,jdbcType=INTEGER},
  643. </if>
  644. <if test="record.qualification != null" >
  645. qualification = #{record.qualification,jdbcType=INTEGER},
  646. </if>
  647. <if test="record.independentCorporation != null" >
  648. independent_corporation = #{record.independentCorporation,jdbcType=INTEGER},
  649. </if>
  650. <if test="record.legalPerson != null" >
  651. legal_person = #{record.legalPerson,jdbcType=VARCHAR},
  652. </if>
  653. <if test="record.whetherRent != null" >
  654. whether_rent = #{record.whetherRent,jdbcType=INTEGER},
  655. </if>
  656. <if test="record.infoRegist != null" >
  657. info_regist = #{record.infoRegist,jdbcType=VARCHAR},
  658. </if>
  659. <if test="record.registDate != null" >
  660. regist_date = #{record.registDate,jdbcType=TIMESTAMP},
  661. </if>
  662. <if test="record.remark != null" >
  663. remark = #{record.remark,jdbcType=VARCHAR},
  664. </if>
  665. <if test="record.parentId != null" >
  666. parent_id = #{record.parentId,jdbcType=INTEGER},
  667. </if>
  668. <if test="record.status != null" >
  669. status = #{record.status,jdbcType=INTEGER},
  670. </if>
  671. <if test="record.delFlag != null" >
  672. del_flag = #{record.delFlag,jdbcType=INTEGER},
  673. </if>
  674. <if test="record.birdsEye != null" >
  675. birds_eye = #{record.birdsEye,jdbcType=VARCHAR},
  676. </if>
  677. <if test="record.birdsRemote != null" >
  678. birds_Remote = #{record.birdsRemote,jdbcType=VARCHAR},
  679. </if>
  680. <if test="record.briefIntroduction != null" >
  681. brief_introduction = #{record.briefIntroduction,jdbcType=VARCHAR},
  682. </if>
  683. <if test="record.invoiceTitle != null" >
  684. invoice_title = #{record.invoiceTitle,jdbcType=VARCHAR},
  685. </if>
  686. <if test="record.registNumber != null" >
  687. regist_number = #{record.registNumber,jdbcType=VARCHAR},
  688. </if>
  689. <if test="record.bankName != null" >
  690. bank_name = #{record.bankName,jdbcType=VARCHAR},
  691. </if>
  692. <if test="record.accountName != null" >
  693. account_name = #{record.accountName,jdbcType=VARCHAR},
  694. </if>
  695. <if test="record.accountNumber != null" >
  696. account_number = #{record.accountNumber,jdbcType=VARCHAR},
  697. </if>
  698. <if test="record.levelCode != null" >
  699. level_code = #{record.levelCode,jdbcType=VARCHAR},
  700. </if>
  701. <if test="record.wjl != null">
  702. wjl = #{record.wjl,jdbcType=LONGVARCHAR},
  703. </if>
  704. <if test="record.frlxfs != null">
  705. frlxfs = #{record.frlxfs,jdbcType=VARCHAR},
  706. </if>
  707. <if test="record.yxgr != null" >
  708. yxgr = #{record.yxgr,jdbcType=DECIMAL},
  709. </if>
  710. <if test="record.kqbm != null">
  711. kqbm = #{record.kqbm,jdbcType=VARCHAR},
  712. </if>
  713. <if test="record.sfzk != null">
  714. sfzk = #{record.sfzk,jdbcType=VARCHAR},
  715. </if>
  716. <if test="record.kqNumber != null" >
  717. kq_number = #{record.kqNumber,jdbcType=INTEGER},
  718. </if>
  719. <if test="record.zcProvince != null" >
  720. zc_province = #{record.zcProvince,jdbcType=INTEGER},
  721. </if>
  722. <if test="record.zcCity != null" >
  723. zc_city = #{record.zcCity,jdbcType=INTEGER},
  724. </if>
  725. <if test="record.zcCounty != null" >
  726. zc_county = #{record.zcCounty,jdbcType=INTEGER},
  727. </if>
  728. <if test="record.unitInfoId != null">
  729. unit_info_id = #{record.unitInfoId,jdbcType=VARCHAR},
  730. </if>
  731. </set>
  732. <if test="_parameter != null" >
  733. <include refid="Update_By_Example_Where_Clause" />
  734. </if>
  735. </update>
  736. <update id="updateByExample" parameterType="map" >
  737. update org_info
  738. set org_id = #{record.orgId,jdbcType=INTEGER},
  739. org_name = #{record.orgName,jdbcType=VARCHAR},
  740. short_name = #{record.shortName,jdbcType=VARCHAR},
  741. org_code = #{record.orgCode,jdbcType=VARCHAR},
  742. org_class_id = #{record.orgClassId,jdbcType=INTEGER},
  743. company_nature = #{record.companyNature,jdbcType=INTEGER},
  744. busi_type = #{record.busiType,jdbcType=INTEGER},
  745. address = #{record.address,jdbcType=VARCHAR},
  746. contact = #{record.contact,jdbcType=VARCHAR},
  747. fax = #{record.fax,jdbcType=VARCHAR},
  748. charge_person = #{record.chargePerson,jdbcType=VARCHAR},
  749. longitude = #{record.longitude,jdbcType=VARCHAR},
  750. latitude = #{record.latitude,jdbcType=VARCHAR},
  751. regist_capital = #{record.registCapital,jdbcType=INTEGER},
  752. work_number = #{record.workNumber,jdbcType=INTEGER},
  753. area_code = #{record.areaCode,jdbcType=INTEGER},
  754. area_name = #{record.areaName,jdbcType=VARCHAR},
  755. post = #{record.post,jdbcType=VARCHAR},
  756. depot_class = #{record.depotClass,jdbcType=INTEGER},
  757. design_capacity = #{record.designCapacity,jdbcType=DECIMAL},
  758. effective_capacity = #{record.effectiveCapacity,jdbcType=DECIMAL},
  759. depot_area = #{record.depotArea,jdbcType=DECIMAL},
  760. complete_date = #{record.completeDate,jdbcType=TIMESTAMP},
  761. use_date = #{record.useDate,jdbcType=TIMESTAMP},
  762. company_org_code = #{record.companyOrgCode,jdbcType=VARCHAR},
  763. credit_code = #{record.creditCode,jdbcType=VARCHAR},
  764. regist_type = #{record.registType,jdbcType=INTEGER},
  765. qualification = #{record.qualification,jdbcType=INTEGER},
  766. independent_corporation = #{record.independentCorporation,jdbcType=INTEGER},
  767. legal_person = #{record.legalPerson,jdbcType=VARCHAR},
  768. whether_rent = #{record.whetherRent,jdbcType=INTEGER},
  769. info_regist = #{record.infoRegist,jdbcType=VARCHAR},
  770. regist_date = #{record.registDate,jdbcType=TIMESTAMP},
  771. remark = #{record.remark,jdbcType=VARCHAR},
  772. parent_id = #{record.parentId,jdbcType=INTEGER},
  773. status = #{record.status,jdbcType=INTEGER},
  774. del_flag = #{record.delFlag,jdbcType=INTEGER},
  775. birds_eye = #{record.birdsEye,jdbcType=VARCHAR},
  776. birds_Remote = #{record.birdsRemote,jdbcType=VARCHAR},
  777. brief_introduction = #{record.briefIntroduction,jdbcType=VARCHAR},
  778. invoice_title = #{record.invoiceTitle,jdbcType=VARCHAR},
  779. regist_number = #{record.registNumber,jdbcType=VARCHAR},
  780. bank_name = #{record.bankName,jdbcType=VARCHAR},
  781. account_name = #{record.accountName,jdbcType=VARCHAR},
  782. account_number = #{record.accountNumber,jdbcType=VARCHAR},
  783. wjl = #{record.wjl,jdbcType=LONGVARCHAR},
  784. frlxfs = #{record.frlxfs,jdbcType=VARCHAR},
  785. yxgr = #{record.yxgr,jdbcType=DECIMAL},
  786. kqbm = #{record.kqbm,jdbcType=VARCHAR},
  787. sfzk = #{record.sfzk,jdbcType=VARCHAR},
  788. kq_number = #{record.kqNumber,jdbcType=INTEGER},
  789. zc_province = #{record.zcProvince,jdbcType=INTEGER},
  790. zc_city = #{record.zcCity,jdbcType=INTEGER},
  791. zc_county = #{record.zcCounty,jdbcType=INTEGER},
  792. unit_info_id = #{record.unitInfoId,jdbcType=VARCHAR}
  793. <if test="_parameter != null" >
  794. <include refid="Update_By_Example_Where_Clause" />
  795. </if>
  796. </update>
  797. <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.system.model.OrgInfo" >
  798. update org_info
  799. <set >
  800. <if test="orgName != null" >
  801. org_name = #{orgName,jdbcType=VARCHAR},
  802. </if>
  803. <if test="shortName != null" >
  804. short_name = #{shortName,jdbcType=VARCHAR},
  805. </if>
  806. <if test="orgCode != null" >
  807. org_code = #{orgCode,jdbcType=VARCHAR},
  808. </if>
  809. <if test="orgClassId != null" >
  810. org_class_id = #{orgClassId,jdbcType=INTEGER},
  811. </if>
  812. <if test="companyNature != null" >
  813. company_nature = #{companyNature,jdbcType=INTEGER},
  814. </if>
  815. <if test="busiType != null" >
  816. busi_type = #{busiType,jdbcType=INTEGER},
  817. </if>
  818. <if test="address != null" >
  819. address = #{address,jdbcType=VARCHAR},
  820. </if>
  821. <if test="contact != null" >
  822. contact = #{contact,jdbcType=VARCHAR},
  823. </if>
  824. <if test="fax != null" >
  825. fax = #{fax,jdbcType=VARCHAR},
  826. </if>
  827. <if test="chargePerson != null" >
  828. charge_person = #{chargePerson,jdbcType=VARCHAR},
  829. </if>
  830. <if test="longitude != null" >
  831. longitude = #{longitude,jdbcType=VARCHAR},
  832. </if>
  833. <if test="latitude != null" >
  834. latitude = #{latitude,jdbcType=VARCHAR},
  835. </if>
  836. <if test="registCapital != null" >
  837. regist_capital = #{registCapital,jdbcType=INTEGER},
  838. </if>
  839. <if test="workNumber != null" >
  840. work_number = #{workNumber,jdbcType=INTEGER},
  841. </if>
  842. <if test="areaCode != null" >
  843. area_code = #{areaCode,jdbcType=INTEGER},
  844. </if>
  845. <if test="areaName != null" >
  846. area_name = #{areaName,jdbcType=VARCHAR},
  847. </if>
  848. <if test="post != null" >
  849. post = #{post,jdbcType=VARCHAR},
  850. </if>
  851. <if test="depotClass != null" >
  852. depot_class = #{depotClass,jdbcType=INTEGER},
  853. </if>
  854. <if test="designCapacity != null" >
  855. design_capacity = #{designCapacity,jdbcType=DECIMAL},
  856. </if>
  857. <if test="effectiveCapacity != null" >
  858. effective_capacity = #{effectiveCapacity,jdbcType=DECIMAL},
  859. </if>
  860. <if test="depotArea != null" >
  861. depot_area = #{depotArea,jdbcType=DECIMAL},
  862. </if>
  863. <if test="completeDate != null" >
  864. complete_date = #{completeDate,jdbcType=TIMESTAMP},
  865. </if>
  866. <if test="useDate != null" >
  867. use_date = #{useDate,jdbcType=TIMESTAMP},
  868. </if>
  869. <if test="companyOrgCode != null" >
  870. company_org_code = #{companyOrgCode,jdbcType=VARCHAR},
  871. </if>
  872. <if test="creditCode != null" >
  873. credit_code = #{creditCode,jdbcType=VARCHAR},
  874. </if>
  875. <if test="registType != null" >
  876. regist_type = #{registType,jdbcType=INTEGER},
  877. </if>
  878. <if test="qualification != null" >
  879. qualification = #{qualification,jdbcType=INTEGER},
  880. </if>
  881. <if test="independentCorporation != null" >
  882. independent_corporation = #{independentCorporation,jdbcType=INTEGER},
  883. </if>
  884. <if test="legalPerson != null" >
  885. legal_person = #{legalPerson,jdbcType=VARCHAR},
  886. </if>
  887. <if test="whetherRent != null" >
  888. whether_rent = #{whetherRent,jdbcType=INTEGER},
  889. </if>
  890. <if test="infoRegist != null" >
  891. info_regist = #{infoRegist,jdbcType=VARCHAR},
  892. </if>
  893. <if test="registDate != null" >
  894. regist_date = #{registDate,jdbcType=TIMESTAMP},
  895. </if>
  896. <if test="remark != null" >
  897. remark = #{remark,jdbcType=VARCHAR},
  898. </if>
  899. <if test="parentId != null" >
  900. parent_id = #{parentId,jdbcType=INTEGER},
  901. </if>
  902. <if test="status != null" >
  903. status = #{status,jdbcType=INTEGER},
  904. </if>
  905. <if test="delFlag != null" >
  906. del_flag = #{delFlag,jdbcType=INTEGER},
  907. </if>
  908. <if test="birdsEye != null" >
  909. birds_eye = #{birdsEye,jdbcType=VARCHAR},
  910. </if>
  911. <if test="birdsRemote != null" >
  912. birds_Remote = #{birdsRemote,jdbcType=VARCHAR},
  913. </if>
  914. <if test="briefIntroduction != null" >
  915. brief_introduction = #{briefIntroduction,jdbcType=VARCHAR},
  916. </if>
  917. <if test="invoiceTitle != null" >
  918. invoice_title = #{invoiceTitle,jdbcType=VARCHAR},
  919. </if>
  920. <if test="registNumber != null" >
  921. regist_number = #{registNumber,jdbcType=VARCHAR},
  922. </if>
  923. <if test="bankName != null" >
  924. bank_name = #{bankName,jdbcType=VARCHAR},
  925. </if>
  926. <if test="accountName != null" >
  927. account_name = #{accountName,jdbcType=VARCHAR},
  928. </if>
  929. <if test="accountNumber != null" >
  930. account_number = #{accountNumber,jdbcType=VARCHAR},
  931. </if>
  932. <if test="totalAssets != null" >
  933. total_assets = #{totalAssets,jdbcType=INTEGER},
  934. </if>
  935. <if test="corporateCapacity != null" >
  936. corporate_capacity = #{corporateCapacity,jdbcType=VARCHAR},
  937. </if>
  938. <if test="officePhone != null" >
  939. office_phone = #{officePhone,jdbcType=VARCHAR},
  940. </if>
  941. <if test="registeredAddress != null" >
  942. registered_address = #{registeredAddress,jdbcType=VARCHAR},
  943. </if>
  944. <if test="mailBox != null" >
  945. mail_box = #{mailBox,jdbcType=VARCHAR},
  946. </if>
  947. <if test="officialWebsite != null" >
  948. official_website = #{officialWebsite,jdbcType=VARCHAR},
  949. </if>
  950. <if test="houseNumber != null" >
  951. house_number = #{houseNumber,jdbcType=INTEGER},
  952. </if>
  953. <if test="tankNumber != null" >
  954. tank_number = #{tankNumber,jdbcType=INTEGER},
  955. </if>
  956. <if test="depotProperty != null" >
  957. depot_property = #{depotProperty,jdbcType=VARCHAR},
  958. </if>
  959. <if test="levelCode != null" >
  960. level_code = #{levelCode,jdbcType=VARCHAR},
  961. </if>
  962. <if test="wjl != null">
  963. wjl = #{wjl,jdbcType=LONGVARCHAR},
  964. </if>
  965. <if test="frlxfs != null">
  966. frlxfs = #{frlxfs,jdbcType=VARCHAR},
  967. </if>
  968. <if test="yxgr != null" >
  969. yxgr = #{yxgr,jdbcType=DECIMAL},
  970. </if>
  971. <if test="kqbm != null">
  972. kqbm = #{kqbm,jdbcType=VARCHAR},
  973. </if>
  974. <if test="sfzk !=null">
  975. sfzk = #{sfzk,jdbcType=VARCHAR},
  976. </if>
  977. <if test="kqNumber != null" >
  978. kq_number = #{kqNumber,jdbcType=INTEGER},
  979. </if>
  980. <if test="zcProvince != null" >
  981. zc_province = #{zcProvince,jdbcType=INTEGER},
  982. </if>
  983. <if test="zcCity != null" >
  984. zc_city = #{zcCity,jdbcType=INTEGER},
  985. </if>
  986. <if test="zcCounty != null" >
  987. zc_county = #{zcCounty,jdbcType=INTEGER},
  988. </if>
  989. <if test="unitInfoId != null" >
  990. unit_info_id = #{unitInfoId,jdbcType=VARCHAR},
  991. </if>
  992. </set>
  993. where org_id = #{orgId,jdbcType=INTEGER}
  994. </update>
  995. <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.system.model.OrgInfo" >
  996. update org_info
  997. set org_name = #{orgName,jdbcType=VARCHAR},
  998. short_name = #{shortName,jdbcType=VARCHAR},
  999. org_code = #{orgCode,jdbcType=VARCHAR},
  1000. org_class_id = #{orgClassId,jdbcType=INTEGER},
  1001. company_nature = #{companyNature,jdbcType=INTEGER},
  1002. busi_type = #{busiType,jdbcType=INTEGER},
  1003. address = #{address,jdbcType=VARCHAR},
  1004. contact = #{contact,jdbcType=VARCHAR},
  1005. fax = #{fax,jdbcType=VARCHAR},
  1006. charge_person = #{chargePerson,jdbcType=VARCHAR},
  1007. longitude = #{longitude,jdbcType=VARCHAR},
  1008. latitude = #{latitude,jdbcType=VARCHAR},
  1009. regist_capital = #{registCapital,jdbcType=INTEGER},
  1010. work_number = #{workNumber,jdbcType=INTEGER},
  1011. area_code = #{areaCode,jdbcType=INTEGER},
  1012. area_name = #{areaName,jdbcType=VARCHAR},
  1013. post = #{post,jdbcType=VARCHAR},
  1014. depot_class = #{depotClass,jdbcType=INTEGER},
  1015. design_capacity = #{designCapacity,jdbcType=DECIMAL},
  1016. effective_capacity = #{effectiveCapacity,jdbcType=DECIMAL},
  1017. depot_area = #{depotArea,jdbcType=DECIMAL},
  1018. complete_date = #{completeDate,jdbcType=TIMESTAMP},
  1019. use_date = #{useDate,jdbcType=TIMESTAMP},
  1020. company_org_code = #{companyOrgCode,jdbcType=VARCHAR},
  1021. credit_code = #{creditCode,jdbcType=VARCHAR},
  1022. regist_type = #{registType,jdbcType=INTEGER},
  1023. qualification = #{qualification,jdbcType=INTEGER},
  1024. independent_corporation = #{independentCorporation,jdbcType=INTEGER},
  1025. legal_person = #{legalPerson,jdbcType=VARCHAR},
  1026. whether_rent = #{whetherRent,jdbcType=INTEGER},
  1027. info_regist = #{infoRegist,jdbcType=VARCHAR},
  1028. regist_date = #{registDate,jdbcType=TIMESTAMP},
  1029. remark = #{remark,jdbcType=VARCHAR},
  1030. parent_id = #{parentId,jdbcType=INTEGER},
  1031. status = #{status,jdbcType=INTEGER},
  1032. del_flag = #{delFlag,jdbcType=INTEGER},
  1033. birds_eye = #{birdsEye,jdbcType=VARCHAR},
  1034. birds_Remote = #{birdsRemote,jdbcType=VARCHAR},
  1035. brief_introduction = #{briefIntroduction,jdbcType=VARCHAR},
  1036. invoice_title = #{invoiceTitle,jdbcType=VARCHAR},
  1037. regist_number = #{registNumber,jdbcType=VARCHAR},
  1038. bank_name = #{bankName,jdbcType=VARCHAR},
  1039. account_name = #{accountName,jdbcType=VARCHAR},
  1040. account_number = #{accountNumber,jdbcType=VARCHAR},
  1041. total_assets = #{totalAssets,jdbcType=INTEGER},
  1042. corporate_capacity = #{corporateCapacity,jdbcType=VARCHAR},
  1043. office_phone = #{officePhone,jdbcType=VARCHAR},
  1044. registered_address = #{registeredAddress,jdbcType=VARCHAR},
  1045. mail_box = #{mailBox,jdbcType=VARCHAR},
  1046. official_website = #{officialWebsite,jdbcType=VARCHAR},
  1047. house_number = #{houseNumber,jdbcType=INTEGER},
  1048. tank_number = #{tankNumber,jdbcType=INTEGER},
  1049. depot_property = #{depotProperty,jdbcType=VARCHAR},
  1050. level_code = #{levelCode,jdbcType=VARCHAR},
  1051. wjl = #{wjl,jdbcType=LONGVARCHAR},
  1052. frlxfs = #{frlxfs,jdbcType=VARCHAR},
  1053. yxgr = #{yxgr,jdbcType=DECIMAL},
  1054. kqbm = #{kqbm,jdbcType=VARCHAR},
  1055. sfzk = #{sfzk,jdbcType=VARCHAR},
  1056. kq_number = #{kqNumber,jdbcType=INTEGER},
  1057. zc_province = #{zcProvince,jdbcType=INTEGER},
  1058. zc_city = #{zcCity,jdbcType=INTEGER},
  1059. zc_county = #{zcCounty,jdbcType=INTEGER},
  1060. unit_info_id = #{unitInfoId,jdbcType=VARCHAR}
  1061. where org_id = #{orgId,jdbcType=INTEGER}
  1062. </update>
  1063. <update id="updateOrgLevel" parameterType="map" statementType="CALLABLE" >
  1064. {call set_org_level(#{parentId,mode=IN},#{parentLevel,mode=IN})}
  1065. </update>
  1066. <resultMap id="BaseMap" type="com.chinaitop.depot.system.model.OrgInfo" >
  1067. <result column="levelCode" property="levelCode" jdbcType="VARCHAR" />
  1068. </resultMap>
  1069. <select id="getOrgLevel" parameterType="java.util.Map" resultMap="BaseMap">
  1070. SELECT concat(substr(level_code, length(level_code)-1, length(level_code))) levelCode FROM org_info
  1071. WHERE parent_id = #{parentId,jdbcType=INTEGER} and org_id != #{orgId,jdbcType=INTEGER}
  1072. </select>
  1073. <select id="getAllDepotInfo" resultMap="BaseResultMap" parameterType="map" >
  1074. select org.org_id, org.org_name, org.short_name, org.org_code, org.org_class_id, be.gbCode company_nature, org.busi_type,
  1075. org.address, org.contact, org.fax, org.charge_person, org.longitude, org.latitude, org.regist_capital, org.work_number,
  1076. org.area_code, org.area_name, org.post, org.depot_class, org.design_capacity, org.effective_capacity, org.depot_area,
  1077. org.complete_date, org.use_date, org.company_org_code, org.credit_code, org.regist_type, org.qualification,
  1078. org.independent_corporation, org.legal_person, org.whether_rent, org.info_regist, org.regist_date, org.remark,
  1079. org.parent_id, org.status, org.del_flag, org.birds_eye, org.birds_Remote, org.brief_introduction, org.invoice_title,
  1080. org.regist_number, org.bank_name, org.account_name, org.account_number, org.total_assets, org.corporate_capacity,
  1081. org.office_phone, org.registered_address, org.mail_box, org.official_website, org.house_number, org.tank_number,
  1082. org.depot_property,org.level_code,org.updatetime,org.unit_info_id
  1083. from org_info org
  1084. left join basic_enum be on org.company_nature = be.enumId
  1085. where org_class_id = 5318
  1086. </select>
  1087. </mapper>