KwsEnterpriseDao.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  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.sckw.system.dao.KwsEnterpriseDao">
  4. <resultMap id="BaseResultMap" type="com.sckw.system.model.KwsEnterprise">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="firm_name" jdbcType="VARCHAR" property="firmName" />
  7. <result column="code" jdbcType="VARCHAR" property="code" />
  8. <result column="contacts" jdbcType="VARCHAR" property="contacts" />
  9. <result column="telephone" jdbcType="VARCHAR" property="telephone" />
  10. <result column="legal_name" jdbcType="VARCHAR" property="legalName" />
  11. <result column="legal_telephone" jdbcType="VARCHAR" property="legalTelephone" />
  12. <result column="head" jdbcType="VARCHAR" property="head" />
  13. <result column="integral" jdbcType="INTEGER" property="integral" />
  14. <result column="balance" jdbcType="DECIMAL" property="balance" />
  15. <result column="experience" jdbcType="INTEGER" property="experience" />
  16. <result column="member_level" jdbcType="INTEGER" property="memberLevel" />
  17. <result column="reg_time" jdbcType="TIMESTAMP" property="regTime" />
  18. <result column="reg_source" jdbcType="VARCHAR" property="regSource" />
  19. <result column="org_code" jdbcType="VARCHAR" property="orgCode" />
  20. <result column="city_code" jdbcType="INTEGER" property="cityCode" />
  21. <result column="detail_address" jdbcType="VARCHAR" property="detailAddress" />
  22. <result column="lat" jdbcType="VARCHAR" property="lat" />
  23. <result column="lng" jdbcType="VARCHAR" property="lng" />
  24. <result column="approval" jdbcType="INTEGER" property="approval" />
  25. <result column="approval_time" jdbcType="TIMESTAMP" property="approvalTime" />
  26. <result column="manager" jdbcType="BIGINT" property="manager" />
  27. <result column="remark" jdbcType="VARCHAR" property="remark" />
  28. <result column="status" jdbcType="INTEGER" property="status" />
  29. <result column="create_by" jdbcType="BIGINT" property="createBy" />
  30. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  31. <result column="update_by" jdbcType="BIGINT" property="updateBy" />
  32. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  33. <result column="del_flag" jdbcType="INTEGER" property="delFlag" />
  34. </resultMap>
  35. <sql id="Base_Column_List">
  36. id, firm_name, code, contacts, telephone, legal_name, legal_telephone, head, integral,
  37. balance, experience, member_level, reg_time, reg_source, org_code, city_code, detail_address,
  38. lat, lng, approval, approval_time, manager, remark, status, create_by, create_time,
  39. update_by, update_time, del_flag
  40. </sql>
  41. <select id="selectByKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
  42. select
  43. <include refid="Base_Column_List" />
  44. from kws_enterprise
  45. where id = #{id,jdbcType=BIGINT}
  46. </select>
  47. <select id="findList" resultType="com.sckw.system.model.KwsEnterprise" parameterType="com.sckw.system.model.vo.req.EntFindPageReqVo">
  48. select a.*
  49. from kws_enterprise a
  50. where a.del_flag = 0
  51. <if test="firmName != null and firmName != ''">
  52. and a.firm_name = #{firmName}
  53. </if>
  54. <if test="contacts != null and contacts != ''">
  55. and a.contacts = #{contacts}
  56. </if>
  57. <if test="telephone != null and telephone != ''">
  58. and a.telephone = #{telephone}
  59. </if>
  60. <if test="legalName != null and legalName != ''">
  61. and a.legal_name = #{legalName}
  62. </if>
  63. <if test="legalTelephone != null and legalTelephone != ''">
  64. and a.legal_telephone = #{legalName}
  65. </if>
  66. <if test="approval !=">
  67. and a.approval = #{approval}
  68. </if>
  69. order by a.create_time
  70. </select>
  71. <select id="findByUserId" resultType="com.sckw.system.model.KwsEnterprise">
  72. select distinct a.*
  73. from kws_enterprise a
  74. inner join kws_dept b on a.id = b.ent_id
  75. inner join kws_user_dept c on b.id = c.dept_id
  76. inner join kws_user d on c.user_id = d.id
  77. where d.id = #{id}
  78. and a.del_flag = 0
  79. and b.del_flag = 0
  80. and c.del_flag = 0
  81. and d.del_flag = 0
  82. and a.status = 0
  83. and b.status = 0
  84. and c.status = 0
  85. and d.status = 0
  86. </select>
  87. <insert id="insert" parameterType="com.sckw.system.model.KwsEnterprise">
  88. insert into kws_enterprise
  89. <trim prefix="(" suffix=")" suffixOverrides=",">
  90. <if test="id != null">
  91. id,
  92. </if>
  93. <if test="firmName != null">
  94. firm_name,
  95. </if>
  96. <if test="code != null">
  97. code,
  98. </if>
  99. <if test="contacts != null">
  100. contacts,
  101. </if>
  102. <if test="telephone != null">
  103. telephone,
  104. </if>
  105. <if test="legalName != null">
  106. legal_name,
  107. </if>
  108. <if test="legalTelephone != null">
  109. legal_telephone,
  110. </if>
  111. <if test="head != null">
  112. head,
  113. </if>
  114. <if test="integral != null">
  115. integral,
  116. </if>
  117. <if test="balance != null">
  118. balance,
  119. </if>
  120. <if test="experience != null">
  121. experience,
  122. </if>
  123. <if test="memberLevel != null">
  124. member_level,
  125. </if>
  126. <if test="regTime != null">
  127. reg_time,
  128. </if>
  129. <if test="regSource != null">
  130. reg_source,
  131. </if>
  132. <if test="orgCode != null">
  133. org_code,
  134. </if>
  135. <if test="cityCode != null">
  136. city_code,
  137. </if>
  138. <if test="detailAddress != null">
  139. detail_address,
  140. </if>
  141. <if test="lat != null">
  142. lat,
  143. </if>
  144. <if test="lng != null">
  145. lng,
  146. </if>
  147. <if test="approval != null">
  148. approval,
  149. </if>
  150. <if test="approvalTime != null">
  151. approval_time,
  152. </if>
  153. <if test="manager != null">
  154. manager,
  155. </if>
  156. <if test="remark != null">
  157. remark,
  158. </if>
  159. <if test="status != null">
  160. status,
  161. </if>
  162. <if test="createBy != null">
  163. create_by,
  164. </if>
  165. <if test="createTime != null">
  166. create_time,
  167. </if>
  168. <if test="updateBy != null">
  169. update_by,
  170. </if>
  171. <if test="updateTime != null">
  172. update_time,
  173. </if>
  174. <if test="delFlag != null">
  175. del_flag,
  176. </if>
  177. </trim>
  178. <trim prefix="values (" suffix=")" suffixOverrides=",">
  179. <if test="id != null">
  180. #{id,jdbcType=BIGINT},
  181. </if>
  182. <if test="firmName != null">
  183. #{firmName,jdbcType=VARCHAR},
  184. </if>
  185. <if test="code != null">
  186. #{code,jdbcType=VARCHAR},
  187. </if>
  188. <if test="contacts != null">
  189. #{contacts,jdbcType=VARCHAR},
  190. </if>
  191. <if test="telephone != null">
  192. #{telephone,jdbcType=VARCHAR},
  193. </if>
  194. <if test="legalName != null">
  195. #{legalName,jdbcType=VARCHAR},
  196. </if>
  197. <if test="legalTelephone != null">
  198. #{legalTelephone,jdbcType=VARCHAR},
  199. </if>
  200. <if test="head != null">
  201. #{head,jdbcType=VARCHAR},
  202. </if>
  203. <if test="integral != null">
  204. #{integral,jdbcType=INTEGER},
  205. </if>
  206. <if test="balance != null">
  207. #{balance,jdbcType=DECIMAL},
  208. </if>
  209. <if test="experience != null">
  210. #{experience,jdbcType=INTEGER},
  211. </if>
  212. <if test="memberLevel != null">
  213. #{memberLevel,jdbcType=INTEGER},
  214. </if>
  215. <if test="regTime != null">
  216. #{regTime,jdbcType=TIMESTAMP},
  217. </if>
  218. <if test="regSource != null">
  219. #{regSource,jdbcType=VARCHAR},
  220. </if>
  221. <if test="orgCode != null">
  222. #{orgCode,jdbcType=VARCHAR},
  223. </if>
  224. <if test="cityCode != null">
  225. #{cityCode,jdbcType=INTEGER},
  226. </if>
  227. <if test="detailAddress != null">
  228. #{detailAddress,jdbcType=VARCHAR},
  229. </if>
  230. <if test="lat != null">
  231. #{lat,jdbcType=VARCHAR},
  232. </if>
  233. <if test="lng != null">
  234. #{lng,jdbcType=VARCHAR},
  235. </if>
  236. <if test="approval != null">
  237. #{approval,jdbcType=INTEGER},
  238. </if>
  239. <if test="approvalTime != null">
  240. #{approvalTime,jdbcType=TIMESTAMP},
  241. </if>
  242. <if test="manager != null">
  243. #{manager,jdbcType=BIGINT},
  244. </if>
  245. <if test="remark != null">
  246. #{remark,jdbcType=VARCHAR},
  247. </if>
  248. <if test="status != null">
  249. #{status,jdbcType=INTEGER},
  250. </if>
  251. <if test="createBy != null">
  252. #{createBy,jdbcType=BIGINT},
  253. </if>
  254. <if test="createTime != null">
  255. #{createTime,jdbcType=TIMESTAMP},
  256. </if>
  257. <if test="updateBy != null">
  258. #{updateBy,jdbcType=BIGINT},
  259. </if>
  260. <if test="updateTime != null">
  261. #{updateTime,jdbcType=TIMESTAMP},
  262. </if>
  263. <if test="delFlag != null">
  264. #{delFlag,jdbcType=INTEGER},
  265. </if>
  266. </trim>
  267. </insert>
  268. <insert id="insertPPPPP" parameterType="com.sckw.system.model.KwsEnterprise">
  269. insert into kws_enterprise
  270. <trim prefix="(" suffix=")" suffixOverrides=",">
  271. <if test="id != null">
  272. id,
  273. </if>
  274. <if test="firmName != null">
  275. firm_name,
  276. </if>
  277. <if test="code != null">
  278. code,
  279. </if>
  280. <if test="contacts != null">
  281. contacts,
  282. </if>
  283. <if test="telephone != null">
  284. telephone,
  285. </if>
  286. <if test="legalName != null">
  287. legal_name,
  288. </if>
  289. <if test="legalTelephone != null">
  290. legal_telephone,
  291. </if>
  292. <if test="head != null">
  293. head,
  294. </if>
  295. <if test="integral != null">
  296. integral,
  297. </if>
  298. <if test="balance != null">
  299. balance,
  300. </if>
  301. <if test="experience != null">
  302. experience,
  303. </if>
  304. <if test="memberLevel != null">
  305. member_level,
  306. </if>
  307. <if test="regTime != null">
  308. reg_time,
  309. </if>
  310. <if test="regSource != null">
  311. reg_source,
  312. </if>
  313. <if test="orgCode != null">
  314. org_code,
  315. </if>
  316. <if test="cityCode != null">
  317. city_code,
  318. </if>
  319. <if test="detailAddress != null">
  320. detail_address,
  321. </if>
  322. <if test="lat != null">
  323. lat,
  324. </if>
  325. <if test="lng != null">
  326. lng,
  327. </if>
  328. <if test="approval != null">
  329. approval,
  330. </if>
  331. <if test="approvalTime != null">
  332. approval_time,
  333. </if>
  334. <if test="manager != null">
  335. manager,
  336. </if>
  337. <if test="remark != null">
  338. remark,
  339. </if>
  340. <if test="status != null">
  341. status,
  342. </if>
  343. <if test="createBy != null">
  344. create_by,
  345. </if>
  346. <if test="createTime != null">
  347. create_time,
  348. </if>
  349. <if test="updateBy != null">
  350. update_by,
  351. </if>
  352. <if test="updateTime != null">
  353. update_time,
  354. </if>
  355. <if test="delFlag != null">
  356. del_flag,
  357. </if>
  358. </trim>
  359. <trim prefix="values (" suffix=")" suffixOverrides=",">
  360. <if test="id != null">
  361. #{id,jdbcType=BIGINT},
  362. </if>
  363. <if test="firmName != null">
  364. #{firmName,jdbcType=VARCHAR},
  365. </if>
  366. <if test="code != null">
  367. #{code,jdbcType=VARCHAR},
  368. </if>
  369. <if test="contacts != null">
  370. #{contacts,jdbcType=VARCHAR},
  371. </if>
  372. <if test="telephone != null">
  373. #{telephone,jdbcType=VARCHAR},
  374. </if>
  375. <if test="legalName != null">
  376. #{legalName,jdbcType=VARCHAR},
  377. </if>
  378. <if test="legalTelephone != null">
  379. #{legalTelephone,jdbcType=VARCHAR},
  380. </if>
  381. <if test="head != null">
  382. #{head,jdbcType=VARCHAR},
  383. </if>
  384. <if test="integral != null">
  385. #{integral,jdbcType=INTEGER},
  386. </if>
  387. <if test="balance != null">
  388. #{balance,jdbcType=DECIMAL},
  389. </if>
  390. <if test="experience != null">
  391. #{experience,jdbcType=INTEGER},
  392. </if>
  393. <if test="memberLevel != null">
  394. #{memberLevel,jdbcType=INTEGER},
  395. </if>
  396. <if test="regTime != null">
  397. #{regTime,jdbcType=TIMESTAMP},
  398. </if>
  399. <if test="regSource != null">
  400. #{regSource,jdbcType=VARCHAR},
  401. </if>
  402. <if test="orgCode != null">
  403. #{orgCode,jdbcType=VARCHAR},
  404. </if>
  405. <if test="cityCode != null">
  406. #{cityCode,jdbcType=INTEGER},
  407. </if>
  408. <if test="detailAddress != null">
  409. #{detailAddress,jdbcType=VARCHAR},
  410. </if>
  411. <if test="lat != null">
  412. #{lat,jdbcType=VARCHAR},
  413. </if>
  414. <if test="lng != null">
  415. #{lng,jdbcType=VARCHAR},
  416. </if>
  417. <if test="approval != null">
  418. #{approval,jdbcType=INTEGER},
  419. </if>
  420. <if test="approvalTime != null">
  421. #{approvalTime,jdbcType=TIMESTAMP},
  422. </if>
  423. <if test="manager != null">
  424. #{manager,jdbcType=BIGINT},
  425. </if>
  426. <if test="remark != null">
  427. #{remark,jdbcType=VARCHAR},
  428. </if>
  429. <if test="status != null">
  430. #{status,jdbcType=INTEGER},
  431. </if>
  432. <if test="createBy != null">
  433. #{createBy,jdbcType=BIGINT},
  434. </if>
  435. <if test="createTime != null">
  436. #{createTime,jdbcType=TIMESTAMP},
  437. </if>
  438. <if test="updateBy != null">
  439. #{updateBy,jdbcType=BIGINT},
  440. </if>
  441. <if test="updateTime != null">
  442. #{updateTime,jdbcType=TIMESTAMP},
  443. </if>
  444. <if test="delFlag != null">
  445. #{delFlag,jdbcType=INTEGER},
  446. </if>
  447. </trim>
  448. </insert>
  449. <insert id="insertPPPPP" parameterType="com.sckw.system.model.KwsEnterprise">
  450. insert into kws_enterprise
  451. <trim prefix="(" suffix=")" suffixOverrides=",">
  452. <if test="id != null">
  453. id,
  454. </if>
  455. <if test="firmName != null">
  456. firm_name,
  457. </if>
  458. <if test="code != null">
  459. code,
  460. </if>
  461. <if test="contacts != null">
  462. contacts,
  463. </if>
  464. <if test="telephone != null">
  465. telephone,
  466. </if>
  467. <if test="legalName != null">
  468. legal_name,
  469. </if>
  470. <if test="legalTelephone != null">
  471. legal_telephone,
  472. </if>
  473. <if test="head != null">
  474. head,
  475. </if>
  476. <if test="integral != null">
  477. integral,
  478. </if>
  479. <if test="balance != null">
  480. balance,
  481. </if>
  482. <if test="experience != null">
  483. experience,
  484. </if>
  485. <if test="memberLevel != null">
  486. member_level,
  487. </if>
  488. <if test="regTime != null">
  489. reg_time,
  490. </if>
  491. <if test="regSource != null">
  492. reg_source,
  493. </if>
  494. <if test="orgCode != null">
  495. org_code,
  496. </if>
  497. <if test="cityCode != null">
  498. city_code,
  499. </if>
  500. <if test="detailAddress != null">
  501. detail_address,
  502. </if>
  503. <if test="lat != null">
  504. lat,
  505. </if>
  506. <if test="lng != null">
  507. lng,
  508. </if>
  509. <if test="approval != null">
  510. approval,
  511. </if>
  512. <if test="approvalTime != null">
  513. approval_time,
  514. </if>
  515. <if test="manager != null">
  516. manager,
  517. </if>
  518. <if test="remark != null">
  519. remark,
  520. </if>
  521. <if test="status != null">
  522. status,
  523. </if>
  524. <if test="createBy != null">
  525. create_by,
  526. </if>
  527. <if test="createTime != null">
  528. create_time,
  529. </if>
  530. <if test="updateBy != null">
  531. update_by,
  532. </if>
  533. <if test="updateTime != null">
  534. update_time,
  535. </if>
  536. <if test="delFlag != null">
  537. del_flag,
  538. </if>
  539. </trim>
  540. <trim prefix="values (" suffix=")" suffixOverrides=",">
  541. <if test="id != null">
  542. #{id,jdbcType=BIGINT},
  543. </if>
  544. <if test="firmName != null">
  545. #{firmName,jdbcType=VARCHAR},
  546. </if>
  547. <if test="code != null">
  548. #{code,jdbcType=VARCHAR},
  549. </if>
  550. <if test="contacts != null">
  551. #{contacts,jdbcType=VARCHAR},
  552. </if>
  553. <if test="telephone != null">
  554. #{telephone,jdbcType=VARCHAR},
  555. </if>
  556. <if test="legalName != null">
  557. #{legalName,jdbcType=VARCHAR},
  558. </if>
  559. <if test="legalTelephone != null">
  560. #{legalTelephone,jdbcType=VARCHAR},
  561. </if>
  562. <if test="head != null">
  563. #{head,jdbcType=VARCHAR},
  564. </if>
  565. <if test="integral != null">
  566. #{integral,jdbcType=INTEGER},
  567. </if>
  568. <if test="balance != null">
  569. #{balance,jdbcType=DECIMAL},
  570. </if>
  571. <if test="experience != null">
  572. #{experience,jdbcType=INTEGER},
  573. </if>
  574. <if test="memberLevel != null">
  575. #{memberLevel,jdbcType=INTEGER},
  576. </if>
  577. <if test="regTime != null">
  578. #{regTime,jdbcType=TIMESTAMP},
  579. </if>
  580. <if test="regSource != null">
  581. #{regSource,jdbcType=VARCHAR},
  582. </if>
  583. <if test="orgCode != null">
  584. #{orgCode,jdbcType=VARCHAR},
  585. </if>
  586. <if test="cityCode != null">
  587. #{cityCode,jdbcType=INTEGER},
  588. </if>
  589. <if test="detailAddress != null">
  590. #{detailAddress,jdbcType=VARCHAR},
  591. </if>
  592. <if test="lat != null">
  593. #{lat,jdbcType=VARCHAR},
  594. </if>
  595. <if test="lng != null">
  596. #{lng,jdbcType=VARCHAR},
  597. </if>
  598. <if test="approval != null">
  599. #{approval,jdbcType=INTEGER},
  600. </if>
  601. <if test="approvalTime != null">
  602. #{approvalTime,jdbcType=TIMESTAMP},
  603. </if>
  604. <if test="manager != null">
  605. #{manager,jdbcType=BIGINT},
  606. </if>
  607. <if test="remark != null">
  608. #{remark,jdbcType=VARCHAR},
  609. </if>
  610. <if test="status != null">
  611. #{status,jdbcType=INTEGER},
  612. </if>
  613. <if test="createBy != null">
  614. #{createBy,jdbcType=BIGINT},
  615. </if>
  616. <if test="createTime != null">
  617. #{createTime,jdbcType=TIMESTAMP},
  618. </if>
  619. <if test="updateBy != null">
  620. #{updateBy,jdbcType=BIGINT},
  621. </if>
  622. <if test="updateTime != null">
  623. #{updateTime,jdbcType=TIMESTAMP},
  624. </if>
  625. <if test="delFlag != null">
  626. #{delFlag,jdbcType=INTEGER},
  627. </if>
  628. </trim>
  629. </insert>
  630. <update id="update" parameterType="com.sckw.system.model.KwsEnterprise">
  631. update kws_enterprise
  632. <set>
  633. <if test="firmName != null">
  634. firm_name = #{firmName,jdbcType=VARCHAR},
  635. </if>
  636. <if test="code != null">
  637. code = #{code,jdbcType=VARCHAR},
  638. </if>
  639. <if test="contacts != null">
  640. contacts = #{contacts,jdbcType=VARCHAR},
  641. </if>
  642. <if test="telephone != null">
  643. telephone = #{telephone,jdbcType=VARCHAR},
  644. </if>
  645. <if test="legalName != null">
  646. legal_name = #{legalName,jdbcType=VARCHAR},
  647. </if>
  648. <if test="legalTelephone != null">
  649. legal_telephone = #{legalTelephone,jdbcType=VARCHAR},
  650. </if>
  651. <if test="head != null">
  652. head = #{head,jdbcType=VARCHAR},
  653. </if>
  654. <if test="integral != null">
  655. integral = #{integral,jdbcType=INTEGER},
  656. </if>
  657. <if test="balance != null">
  658. balance = #{balance,jdbcType=DECIMAL},
  659. </if>
  660. <if test="experience != null">
  661. experience = #{experience,jdbcType=INTEGER},
  662. </if>
  663. <if test="memberLevel != null">
  664. member_level = #{memberLevel,jdbcType=INTEGER},
  665. </if>
  666. <if test="regTime != null">
  667. reg_time = #{regTime,jdbcType=TIMESTAMP},
  668. </if>
  669. <if test="regSource != null">
  670. reg_source = #{regSource,jdbcType=VARCHAR},
  671. </if>
  672. <if test="orgCode != null">
  673. org_code = #{orgCode,jdbcType=VARCHAR},
  674. </if>
  675. <if test="cityCode != null">
  676. city_code = #{cityCode,jdbcType=INTEGER},
  677. </if>
  678. <if test="detailAddress != null">
  679. detail_address = #{detailAddress,jdbcType=VARCHAR},
  680. </if>
  681. <if test="lat != null">
  682. lat = #{lat,jdbcType=VARCHAR},
  683. </if>
  684. <if test="lng != null">
  685. lng = #{lng,jdbcType=VARCHAR},
  686. </if>
  687. <if test="approval != null">
  688. approval = #{approval,jdbcType=INTEGER},
  689. </if>
  690. <if test="approvalTime != null">
  691. approval_time = #{approvalTime,jdbcType=TIMESTAMP},
  692. </if>
  693. <if test="manager != null">
  694. manager = #{manager,jdbcType=BIGINT},
  695. </if>
  696. <if test="remark != null">
  697. remark = #{remark,jdbcType=VARCHAR},
  698. </if>
  699. <if test="status != null">
  700. status = #{status,jdbcType=INTEGER},
  701. </if>
  702. <if test="createBy != null">
  703. create_by = #{createBy,jdbcType=BIGINT},
  704. </if>
  705. <if test="createTime != null">
  706. create_time = #{createTime,jdbcType=TIMESTAMP},
  707. </if>
  708. <if test="updateBy != null">
  709. update_by = #{updateBy,jdbcType=BIGINT},
  710. </if>
  711. <if test="updateTime != null">
  712. update_time = #{updateTime,jdbcType=TIMESTAMP},
  713. </if>
  714. <if test="delFlag != null">
  715. del_flag = #{delFlag,jdbcType=INTEGER},
  716. </if>
  717. </set>
  718. where id = #{id,jdbcType=BIGINT}
  719. </update>
  720. </mapper>