SysOrgMapper.xml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.xunmei.system.mapper.SysOrgMapper">
  6. <resultMap type="com.xunmei.system.api.domain.SysOrg" id="SysOrgResult">
  7. <result property="id" column="id"/>
  8. <result property="address" column="address"/>
  9. <result property="code" column="code"/>
  10. <result property="guid" column="guid"/>
  11. <result property="isLock" column="is_lock"/>
  12. <result property="manager" column="manager"/>
  13. <result property="managerPhone" column="manager_phone"/>
  14. <result property="name" column="name"/>
  15. <result property="parentId" column="parent_id"/>
  16. <result property="phone" column="phone"/>
  17. <result property="cityCode" column="city_code"/>
  18. <result property="type" column="type"/>
  19. <result property="createTime" column="create_time"/>
  20. <result property="updateTime" column="update_time"/>
  21. <result property="path" column="path"/>
  22. <result property="parentGuid" column="parent_guid"/>
  23. <result property="deleted" column="deleted"/>
  24. <result property="sort" column="sort"/>
  25. <result property="source" column="source"/>
  26. <result property="shortName" column="short_name"/>
  27. <result property="remark" column="remark"/>
  28. <result property="source" column="source"/>
  29. <result property="createBy" column="create_by"/>
  30. <result property="updateBy" column="update_by"/>
  31. </resultMap>
  32. <sql id="selectSysOrgVo">
  33. select id,
  34. address,
  35. code,
  36. guid,
  37. is_lock,
  38. manager,
  39. manager_phone,
  40. name,
  41. parent_id,
  42. phone,
  43. city_code,
  44. type,
  45. create_time,
  46. update_time,
  47. parent_guid,
  48. deleted,
  49. sort,
  50. create_by,
  51. update_by,
  52. org_extend_id,
  53. source,
  54. short_name,
  55. remark,
  56. path
  57. from sys_org
  58. </sql>
  59. <select id="selectSysOrgList" parameterType="com.xunmei.system.api.domain.SysOrg"
  60. resultMap="SysOrgResult">
  61. <include refid="selectSysOrgVo"/>
  62. <where>
  63. <if test="address != null and address != ''">
  64. and address = #{address}
  65. </if>
  66. <if test="code != null and code != ''">
  67. and code = #{code}
  68. </if>
  69. <!-- <if test="deviceCount != null ">-->
  70. <!-- and device_count = #{deviceCount}-->
  71. <!-- </if>-->
  72. <if test="guid != null and guid != ''">
  73. and guid = #{guid}
  74. </if>
  75. <if test="isLock != null ">
  76. and is_lock = #{isLock}
  77. </if>
  78. <if test="manager != null and manager != ''">
  79. and manager = #{manager}
  80. </if>
  81. <if test="managerPhone != null and managerPhone != ''">
  82. and manager_phone = #{managerPhone}
  83. </if>
  84. <if test="name != null and name != ''">
  85. and name like concat('%', #{name}, '%')
  86. </if>
  87. <if test="parentId != null ">
  88. and parent_id = #{parentId}
  89. </if>
  90. <if test="phone != null and phone != ''">
  91. and phone = #{phone}
  92. </if>
  93. <if test="cityCode != null and cityCode != ''">
  94. and city_code = #{cityCode}
  95. </if>
  96. <!-- <if test="openYear != null ">-->
  97. <!-- and open_year = #{openYear}-->
  98. <!-- </if>-->
  99. <!-- <if test="fitYear != null ">-->
  100. <!-- and fit_year = #{fitYear}-->
  101. <!-- </if>-->
  102. <!-- <if test="floorage != null and floorage != ''">-->
  103. <!-- and floorage = #{floorage}-->
  104. <!-- </if>-->
  105. <!-- <if test="employee != null ">-->
  106. <!-- and employee = #{employee}-->
  107. <!-- </if>-->
  108. <!-- <if test="isOwnRight != null ">-->
  109. <!-- and is_own_right = #{isOwnRight}-->
  110. <!-- </if>-->
  111. <!-- <if test="isRent != null ">-->
  112. <!-- and is_rent = #{isRent}-->
  113. <!-- </if>-->
  114. <!-- <if test="isOnly != null ">-->
  115. <!-- and is_only = #{isOnly}-->
  116. <!-- </if>-->
  117. <!-- <if test="buildYear != null ">-->
  118. <!-- and build_year = #{buildYear}-->
  119. <!-- </if>-->
  120. <!-- <if test="placeType != null ">-->
  121. <!-- and place_type = #{placeType}-->
  122. <!-- </if>-->
  123. <!-- <if test="buildHeight != null ">-->
  124. <!-- and build_height = #{buildHeight}-->
  125. <!-- </if>-->
  126. <!-- <if test="social != null ">-->
  127. <!-- and social = #{social}-->
  128. <!-- </if>-->
  129. <!-- <if test="naturalEnvir != null ">-->
  130. <!-- and natural_envir = #{naturalEnvir}-->
  131. <!-- </if>-->
  132. <if test="type != null ">
  133. and type = #{type}
  134. </if>
  135. <if test="updateBy != null and updateBy != ''">
  136. and update_by like concat('%', #{updateBy}, '%')
  137. </if>
  138. <!-- <if test="modifiedId != null ">-->
  139. <!-- and modified_id = #{modifiedId}-->
  140. <!-- </if>-->
  141. <if test="path != null and path != ''">
  142. and path = #{path}
  143. </if>
  144. <!-- <if test="vid != null ">-->
  145. <!-- and vid = #{vid}-->
  146. <!-- </if>-->
  147. <!-- <if test="level != null ">-->
  148. <!-- and level = #{level}-->
  149. <!-- </if>-->
  150. <!-- <if test="oid != null and oid != ''">-->
  151. <!-- and oid = #{oid}-->
  152. <!-- </if>-->
  153. <if test="parentGuid != null and parentGuid != ''">
  154. and parent_guid = #{parentGuid}
  155. </if>
  156. <if test="deleted != null ">
  157. and deleted = #{deleted}
  158. </if>
  159. <if test="sort != null ">
  160. and sort = #{sort}
  161. </if>
  162. <!-- <if test="location != null ">-->
  163. <!-- and location = #{location}-->
  164. <!-- </if>-->
  165. </where>
  166. </select>
  167. <select id="selectSysOrgById" parameterType="Long"
  168. resultMap="SysOrgResult">
  169. <include refid="selectSysOrgVo"/>
  170. where id = #{id}
  171. </select>
  172. <select id="selectCheckSubOrgIdList" resultType="java.lang.Long">
  173. select id
  174. from sys_org
  175. where path like concat((select path from sys_org where id = #{orgId}), '%')
  176. and deleted = 0
  177. </select>
  178. <select id="findListByOrgType" resultType="java.lang.Long">
  179. select a.id
  180. from sys_org a
  181. where a.type = #{execOrgType}
  182. and a.deleted = 0
  183. and a.is_lock = 0
  184. </select>
  185. <insert id="insertSysOrg" parameterType="com.xunmei.system.api.domain.SysOrg" useGeneratedKeys="true"
  186. keyProperty="id">
  187. insert into sys_org
  188. <trim prefix="(" suffix=")" suffixOverrides=",">
  189. <if test="address != null">
  190. address,
  191. </if>
  192. <if test="code != null">
  193. code,
  194. </if>
  195. <!-- <if test="deviceCount != null">device_count,-->
  196. <!-- </if>-->
  197. <if test="guid != null">
  198. guid,
  199. </if>
  200. <if test="isLock != null">
  201. is_lock,
  202. </if>
  203. <if test="manager != null">
  204. manager,
  205. </if>
  206. <if test="managerPhone != null">
  207. manager_phone,
  208. </if>
  209. <if test="name != null">
  210. name,
  211. </if>
  212. <if test="shortName != null">
  213. short_name,
  214. </if>
  215. <if test="parentId != null">
  216. parent_id,
  217. </if>
  218. <if test="phone != null">
  219. phone,
  220. </if>
  221. <if test="cityCode != null">
  222. city_code,
  223. </if>
  224. <!-- <if test="openYear != null">open_year,-->
  225. <!-- </if>-->
  226. <!-- <if test="fitYear != null">fit_year,-->
  227. <!-- </if>-->
  228. <!-- <if test="floorage != null">floorage,-->
  229. <!-- </if>-->
  230. <!-- <if test="employee != null">employee,-->
  231. <!-- </if>-->
  232. <!-- <if test="isOwnRight != null">is_own_right,-->
  233. <!-- </if>-->
  234. <!-- <if test="isRent != null">is_rent,-->
  235. <!-- </if>-->
  236. <!-- <if test="isOnly != null">is_only,-->
  237. <!-- </if>-->
  238. <!-- <if test="buildYear != null">build_year,-->
  239. <!-- </if>-->
  240. <!-- <if test="placeType != null">place_type,-->
  241. <!-- </if>-->
  242. <!-- <if test="buildHeight != null">build_height,-->
  243. <!-- </if>-->
  244. <!-- <if test="social != null">social,-->
  245. <!-- </if>-->
  246. <!-- <if test="naturalEnvir != null">natural_envir,-->
  247. <!-- </if>-->
  248. <if test="type != null">
  249. type,
  250. </if>
  251. <if test="createTime != null">
  252. create_time,
  253. </if>
  254. <if test="updateBy != null">
  255. update_by,
  256. </if>
  257. <if test="updateTime != null">
  258. update_time,
  259. </if>
  260. <!-- <if test="modifiedId != null">modified_id,-->
  261. <!-- </if>-->
  262. <if test="path != null">
  263. path,
  264. </if>
  265. <!-- <if test="vid != null">vid,-->
  266. <!-- </if>-->
  267. <!-- <if test="level != null">level,-->
  268. <!-- </if>-->
  269. <if test="oid != null">
  270. oid,
  271. </if>
  272. <if test="parentGuid != null">
  273. parent_guid,
  274. </if>
  275. <if test="deleted != null">
  276. deleted,
  277. </if>
  278. <if test="sort != null">
  279. sort,
  280. </if>
  281. <if test="source != null">
  282. source,
  283. </if>
  284. <if test="remark != null">
  285. remark,
  286. </if>
  287. <!-- <if test="location != null">location,-->
  288. <!-- </if>-->
  289. <if test="createBy != null">
  290. create_by,
  291. </if>
  292. <if test="updateBy != null">
  293. update_by,
  294. </if>
  295. <if test="treeParentCode != null">
  296. treeParentCode,
  297. </if>
  298. <if test="treeShowPath != null">
  299. treeShowPath,
  300. </if>
  301. <if test="treeShowParentId != null">
  302. treeShowParentId,
  303. </if>
  304. </trim>
  305. <trim prefix="values (" suffix=")" suffixOverrides=",">
  306. <if test="address != null">
  307. #{address},
  308. </if>
  309. <if test="code != null">
  310. #{code},
  311. </if>
  312. <!-- <if test="deviceCount != null">#{deviceCount},-->
  313. <!-- </if>-->
  314. <if test="guid != null">
  315. #{guid},
  316. </if>
  317. <if test="isLock != null">
  318. #{isLock},
  319. </if>
  320. <if test="manager != null">
  321. #{manager},
  322. </if>
  323. <if test="managerPhone != null">
  324. #{managerPhone},
  325. </if>
  326. <if test="name != null">
  327. #{name},
  328. </if>
  329. <if test="shortName != null">
  330. #{shortName},
  331. </if>
  332. <if test="parentId != null">
  333. #{parentId},
  334. </if>
  335. <if test="phone != null">
  336. #{phone},
  337. </if>
  338. <if test="cityCode != null">
  339. #{cityCode},
  340. </if>
  341. <!-- <if test="openYear != null">#{openYear},-->
  342. <!-- </if>-->
  343. <!-- <if test="fitYear != null">#{fitYear},-->
  344. <!-- </if>-->
  345. <!-- <if test="floorage != null">#{floorage},-->
  346. <!-- </if>-->
  347. <!-- <if test="employee != null">#{employee},-->
  348. <!-- </if>-->
  349. <!-- <if test="isOwnRight != null">#{isOwnRight},-->
  350. <!-- </if>-->
  351. <!-- <if test="isRent != null">#{isRent},-->
  352. <!-- </if>-->
  353. <!-- <if test="isOnly != null">#{isOnly},-->
  354. <!-- </if>-->
  355. <!-- <if test="buildYear != null">#{buildYear},-->
  356. <!-- </if>-->
  357. <!-- <if test="placeType != null">#{placeType},-->
  358. <!-- </if>-->
  359. <!-- <if test="buildHeight != null">#{buildHeight},-->
  360. <!-- </if>-->
  361. <!-- <if test="social != null">#{social},-->
  362. <!-- </if>-->
  363. <!-- <if test="naturalEnvir != null">#{naturalEnvir},-->
  364. <!-- </if>-->
  365. <if test="type != null">
  366. #{type},
  367. </if>
  368. <if test="createTime != null">
  369. #{createTime},
  370. </if>
  371. <if test="updateBy != null">
  372. #{updateBy},
  373. </if>
  374. <if test="updateTime != null">
  375. #{updateTime},
  376. </if>
  377. <!-- <if test="modifiedId != null">#{modifiedId},-->
  378. <!-- </if>-->
  379. <if test="path != null">
  380. #{path},
  381. </if>
  382. <!-- <if test="vid != null">#{vid},-->
  383. <!-- </if>-->
  384. <!-- <if test="level != null">#{level},-->
  385. <!-- </if>-->
  386. <!-- <if test="oid != null">#{oid},-->
  387. <!-- </if>-->
  388. <if test="parentGuid != null">
  389. #{parentGuid},
  390. </if>
  391. <if test="deleted != null">
  392. #{deleted},
  393. </if>
  394. <if test="sort != null">
  395. #{sort},
  396. </if>
  397. <if test="source != null">
  398. #{source},
  399. </if>
  400. <if test="remark != null">
  401. #{remark},
  402. </if>
  403. <!-- <if test="location != null">#{location},-->
  404. <!-- </if>-->
  405. <if test="createBy != null">
  406. #{createBy},
  407. </if>
  408. <if test="updateBy != null">
  409. #{updateBy},
  410. </if>
  411. <if test="treeParentCode != null">
  412. #{treeParentCode},
  413. </if>
  414. <if test="treeShowPath != null">
  415. #{treeShowPath},
  416. </if>
  417. <if test="treeShowParentId != null">
  418. #{treeShowParentId},
  419. </if>
  420. </trim>
  421. </insert>
  422. <update id="updateSysOrg" parameterType="com.xunmei.system.api.domain.SysOrg">
  423. update sys_org
  424. <trim prefix="SET" suffixOverrides=",">
  425. <if test="address != null">
  426. address =
  427. #{address},
  428. </if>
  429. <if test="code != null">
  430. code =
  431. #{code},
  432. </if>
  433. <!-- <if test="deviceCount != null">device_count =-->
  434. <!-- #{deviceCount},-->
  435. <!-- </if>-->
  436. <if test="guid != null">
  437. guid =
  438. #{guid},
  439. </if>
  440. <if test="isLock != null">
  441. is_lock =
  442. #{isLock},
  443. </if>
  444. <if test="manager != null">
  445. manager =
  446. #{manager},
  447. </if>
  448. <if test="managerPhone != null">
  449. manager_phone =
  450. #{managerPhone},
  451. </if>
  452. <if test="name != null">
  453. name =
  454. #{name},
  455. </if>
  456. <if test="shortName != null">
  457. short_name =
  458. #{shortName},
  459. </if>
  460. <if test="parentId != null">
  461. parent_id =
  462. #{parentId},
  463. </if>
  464. <if test="phone != null">
  465. phone =
  466. #{phone},
  467. </if>
  468. <if test="cityCode != null">
  469. city_code =
  470. #{cityCode},
  471. </if>
  472. <!-- <if test="openYear != null">open_year =-->
  473. <!-- #{openYear},-->
  474. <!-- </if>-->
  475. <!-- <if test="fitYear != null">fit_year =-->
  476. <!-- #{fitYear},-->
  477. <!-- </if>-->
  478. <!-- <if test="floorage != null">floorage =-->
  479. <!-- #{floorage},-->
  480. <!-- </if>-->
  481. <!-- <if test="employee != null">employee =-->
  482. <!-- #{employee},-->
  483. <!-- </if>-->
  484. <!-- <if test="isOwnRight != null">is_own_right =-->
  485. <!-- #{isOwnRight},-->
  486. <!-- </if>-->
  487. <!-- <if test="isRent != null">is_rent =-->
  488. <!-- #{isRent},-->
  489. <!-- </if>-->
  490. <!-- <if test="isOnly != null">is_only =-->
  491. <!-- #{isOnly},-->
  492. <!-- </if>-->
  493. <!-- <if test="buildYear != null">build_year =-->
  494. <!-- #{buildYear},-->
  495. <!-- </if>-->
  496. <!-- <if test="placeType != null">place_type =-->
  497. <!-- #{placeType},-->
  498. <!-- </if>-->
  499. <!-- <if test="buildHeight != null">build_height =-->
  500. <!-- #{buildHeight},-->
  501. <!-- </if>-->
  502. <!-- <if test="social != null">social =-->
  503. <!-- #{social},-->
  504. <!-- </if>-->
  505. <!-- <if test="naturalEnvir != null">natural_envir =-->
  506. <!-- #{naturalEnvir},-->
  507. <!-- </if>-->
  508. <if test="type != null">
  509. type =
  510. #{type},
  511. </if>
  512. <if test="createTime != null">
  513. create_time =
  514. #{createTime},
  515. </if>
  516. <if test="updateBy != null">
  517. update_by =
  518. #{updateBy},
  519. </if>
  520. <if test="updateTime != null">
  521. update_time =
  522. #{updateTime},
  523. </if>
  524. <!-- <if test="modifiedId != null">modified_id =-->
  525. <!-- #{modifiedId},-->
  526. <!-- </if>-->
  527. <if test="path != null">
  528. path =
  529. #{path},
  530. </if>
  531. <!-- <if test="vid != null">vid =-->
  532. <!-- #{vid},-->
  533. <!-- </if>-->
  534. <!-- <if test="level != null">level =-->
  535. <!-- #{level},-->
  536. <!-- </if>-->
  537. <!-- <if test="oid != null">oid =-->
  538. <!-- #{oid},-->
  539. <!-- </if>-->
  540. <if test="parentGuid != null">
  541. parent_guid =
  542. #{parentGuid},
  543. </if>
  544. <if test="deleted != null">
  545. deleted =
  546. #{deleted},
  547. </if>
  548. <if test="sort != null">
  549. sort =
  550. #{sort},
  551. </if>
  552. <if test="source != null">
  553. source =
  554. #{source},
  555. </if>
  556. <if test="remark != null">
  557. remark =
  558. #{remark},
  559. </if>
  560. <!-- <if test="location != null">location =-->
  561. <!-- #{location},-->
  562. <!-- </if>-->
  563. <if test="createBy != null">
  564. create_by =
  565. #{createBy},
  566. </if>
  567. <if test="updateBy != null">
  568. update_by =
  569. #{updateBy},
  570. </if>
  571. <if test="treeParentCode != null">
  572. tree_parent_code= #{treeParentCode},
  573. </if>
  574. <if test="treeShowPath != null">
  575. tree_show_path=#{treeShowPath},
  576. </if>
  577. <if test="treeShowParentId != null">
  578. tree_show_parentId=#{treeShowParentId},
  579. </if>
  580. </trim>
  581. where id = #{id}
  582. </update>
  583. <delete id="deleteSysOrgById" parameterType="Long">
  584. delete
  585. from sys_org
  586. where id = #{id}
  587. </delete>
  588. <delete id="deleteSysOrgByIds" parameterType="String">
  589. delete from sys_org where id in
  590. <foreach item="id" collection="array" open="(" separator="," close=")">
  591. #{id}
  592. </foreach>
  593. </delete>
  594. <select id="selectSysOrgByUserId" resultType="com.xunmei.system.api.domain.SysOrg">
  595. select so.*
  596. from sys_org so
  597. inner join sys_user suo on so.id = suo.org_id
  598. where suo.id = #{userId}
  599. </select>
  600. <select id="getParentName" resultType="com.xunmei.common.core.vo.IdNameVo">
  601. select so.id,so.short_name as name,p.short_name as extra
  602. from sys_org so
  603. left join sys_org p on so.parent_id=p.id and p.deleted=0
  604. where so.id in
  605. <foreach collection="ids" item="id" separator="," open="(" close=")">
  606. #{id}
  607. </foreach>
  608. and so.deleted=0
  609. </select>
  610. <select id="selectSysOrgVoByUserId" resultType="com.xunmei.system.api.vo.SysOrgVO">
  611. select so.id as id, so.name as name, so.path as path, so.parent_id as parentId
  612. from sys_org so
  613. inner join sys_user suo on so.id = suo.org_id
  614. where suo.id = #{userId}
  615. </select>
  616. <select id="selectSysOrgVOList" resultType="com.xunmei.system.api.vo.SysOrgVO">
  617. SELECT id,
  618. `name`,
  619. if(short_name is null,`name` ,short_name) as short_name,
  620. code,
  621. path,
  622. parent_id,
  623. type,
  624. tree_show_parent_id,
  625. tree_show_path,
  626. if(sort is null,0,sort) as sort
  627. FROM sys_org
  628. WHERE deleted = 0
  629. ORDER BY isnull(sort),sort, path
  630. </select>
  631. <select id="selectOrgList" resultType="com.xunmei.system.api.domain.SysOrg">
  632. select o.*,e.weather_area_code as weather_city_code from sys_org o
  633. left join sys_org_extend e on o.id = e.org_id
  634. WHERE deleted = 0
  635. <if test=" org.isLock != null">
  636. and o.is_lock =#{org.isLock}
  637. </if>
  638. <if test=" org.type != null and org.type !=''">
  639. and o.type =#{org.type}
  640. </if>
  641. <if test=" org.name != null and org.name !=''">
  642. and o.name like concat(concat('%',#{org.name}),'%')
  643. </if>
  644. <if test=" org.code != null and org.code !=''">
  645. and o.code like concat(concat('%',#{org.code}),'%')
  646. </if>
  647. <!-- <if test=" org.parentId != null and org.parentId !=''">-->
  648. <!-- and o.parent_id =#{org.parentId}-->
  649. <!-- </if>-->
  650. <if test=" org.checkSub != null and org.checkSub == true">
  651. and o.path like concat(concat('%',#{org.path}),'%')
  652. </if>
  653. <if test=" org.checkSub != null and org.checkSub == false">
  654. and o.path like concat('%',#{org.path})
  655. </if>
  656. and o.name != '机关'
  657. ORDER BY isnull(o.sort),o.sort, o.path
  658. </select>
  659. <select id="getOrgIdByTaskId" resultType="java.lang.Long">
  660. SELECT org_id
  661. FROM core_monitoring_retrieval_task cmrt
  662. WHERE id = #{taskId}
  663. </select>
  664. <select id="selectOrgTypeByIdList" resultType="java.lang.Long">
  665. select distinct type
  666. from sys_org
  667. where id in
  668. <foreach collection="orgIdList" item="item" open="(" separator="," close=")">
  669. #{item}
  670. </foreach>
  671. </select>
  672. <select id="findByOrgTypeAndParent" resultType="com.xunmei.system.api.domain.SysOrg">
  673. select c.* from sys_org c where c.type = #{orgType} and c.path like concat('%',#{path}, '%') and deleted=0
  674. </select>
  675. </mapper>