OrgInfoMapper.xml 33 KB

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