OrgInfoMapper.xml 38 KB

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