ReleaseTravelMapper.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  3. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  4. <mapper namespace="com.travel.mapper.ReleaseTravelMapper">
  5. <!-- 新增每天游记内容 -->
  6. <insert id="travelInsterExper" parameterType="TravelExperience">
  7. insert into bus_travel_experience(uuid,day_num,synopsis,video_url,img_url,title) values(#{uuid},#{dayNum},#{synopsis},#{videoUrl},#{imgUrl},#{title})
  8. </insert>
  9. <!-- 新增游记内容 -->
  10. <insert id="travelInster" parameterType="Travel">
  11. insert into bus_travel(code,title_img,synopsis,video_url,img_url,uuid,state_type,travel_date,travel_day,capita,figure,play_type,season,destination,jdrq,people_all,title,title_travel,demand_uuid,look_num,title_day_name,amount,release_uuid)
  12. values (#{code},#{titleImg},#{synopsis},#{videoUrl},#{imgUrl},#{uuid},#{stateType},#{travelDate},#{travelDay},#{capita},#{figure},#{playType},#{season},#{destination},SYSDATETIME(),#{peopleAll},#{title},#{titleTravel},#{demandUuid},0,#{titleDayName},#{amount},#{releaseUuid})
  13. </insert>
  14. <!-- 查询游记内容 -->
  15. <select id="getTravel" resultType="Travel">
  16. select
  17. top ${limit} a.*,b.countNum,c.flag,d.commCount,f.name,f.headpir
  18. from
  19. bus_travel AS a
  20. LEFT JOIN ( SELECT COUNT ( * ) AS countNum, travel_uuid FROM sys_travel_give GROUP BY travel_uuid ) b ON a.uuid = b.travel_uuid
  21. LEFT JOIN ( SELECT COUNT ( * ) AS flag, travel_uuid FROM sys_travel_give WHERE code = #{code} GROUP BY travel_uuid ) c ON a.uuid = c.travel_uuid
  22. LEFT JOIN ( SELECT COUNT ( * ) AS commCount, travel_uuid FROM bus_travel_comments GROUP BY travel_uuid ) d ON a.uuid = d.travel_uuid
  23. LEFT JOIN (SELECT headpir,name,code from sys_users) f on f.code = a.code
  24. <trim prefix="WHERE" prefixOverrides="and | or">
  25. <if test="uuid != null and uuid != ''">
  26. and a.uuid = #{uuid}
  27. </if>
  28. <if test="code != null and code != ''">
  29. and a.code = #{code}
  30. </if>
  31. <if test="stateType != null and stateType != ''">
  32. and a.state_type = #{stateType}
  33. </if>
  34. <if test="demandUuid != null and demandUuid != ''">
  35. and a.demand_uuid = #{demandUuid}
  36. </if>
  37. and a.state_type = '1'
  38. and a.id not in (select top ${page} id from bus_travel where code = #{code} and state_type = '1' ORDER BY id) order by a.id
  39. </trim>
  40. </select>
  41. <!-- 查询游记列表内容 -->
  42. <select id="getTravelAll" resultType="Travel">
  43. SELECT TOP
  44. ${limit} e.*
  45. FROM
  46. (
  47. SELECT
  48. a.id,
  49. a.uuid,
  50. a.img_url,
  51. a.look_num,
  52. a.code,
  53. a.capita,
  54. a.jdrq,
  55. a.title_img,
  56. a.title_travel,
  57. a.travel_date,
  58. a.title_day_name,
  59. a.destination,
  60. a.amount,
  61. a.people_all,
  62. a.travel_day,
  63. a.synopsis,
  64. f.name,
  65. f.headpir,
  66. b.countNum,
  67. c.flag,
  68. d.commCount,
  69. 'ptyh' as typeForm
  70. FROM
  71. bus_travel AS a
  72. LEFT JOIN ( SELECT COUNT ( * ) AS countNum, travel_uuid FROM sys_travel_give GROUP BY travel_uuid ) b ON a.uuid = b.travel_uuid
  73. LEFT JOIN ( SELECT COUNT ( * ) AS flag, travel_uuid FROM sys_travel_give WHERE code = #{code} GROUP BY travel_uuid ) c ON a.uuid = c.travel_uuid
  74. LEFT JOIN ( SELECT COUNT ( * ) AS commCount, travel_uuid FROM bus_travel_comments GROUP BY travel_uuid ) d ON a.uuid = d.travel_uuid
  75. LEFT JOIN ( SELECT headpir, name, code FROM sys_users ) f ON f.code = a.code
  76. <trim prefix="WHERE" prefixOverrides="and | or">
  77. <if test="destination != null and destination != ''">
  78. and a.destination like CONCAT(CONCAT('%', #{destination}), '%')
  79. </if>
  80. <if test="titleTravel != null and titleTravel != ''">
  81. and a.title_travel like CONCAT(CONCAT('%', #{titleTravel}), '%')
  82. </if>
  83. <if test="jdrq != null and jdrq != ''">
  84. and #{startTime} <![CDATA[ <= ]]> a.jdrq and #{endTime} <![CDATA[ > ]]> jdrq
  85. </if>
  86. and state_type = '1'
  87. </trim>
  88. UNION ALL
  89. SELECT
  90. a.id,
  91. a.uuid,
  92. a.title_img,
  93. a.look_num,
  94. a.code,
  95. convert(decimal(18,2), (a.price_all / a.people_num)) as capita,
  96. a.jdrq,
  97. a.title_img,
  98. a.offer_name as titleTravel,
  99. (a.start_time + '~' + a.end_time) as travelDate,
  100. a.title_day_name,
  101. a.destination,
  102. a.price_all,
  103. a.people_num,
  104. datediff(day,a.start_time,a.end_time) as travelDay,
  105. null as synopsis,
  106. f.name,
  107. f.headpir,
  108. b.countNum,
  109. c.flag,
  110. d.commCount,
  111. 'gys' as typeForm
  112. FROM
  113. bus_supplier_route AS a
  114. LEFT JOIN ( SELECT COUNT ( * ) AS countNum, travel_uuid FROM sys_travel_give GROUP BY travel_uuid ) b ON a.uuid = b.travel_uuid
  115. LEFT JOIN ( SELECT COUNT ( * ) AS flag, travel_uuid FROM sys_travel_give WHERE code = #{code} GROUP BY travel_uuid ) c ON a.uuid = c.travel_uuid
  116. LEFT JOIN ( SELECT COUNT ( * ) AS commCount, travel_uuid FROM bus_travel_comments GROUP BY travel_uuid ) d ON a.uuid = d.travel_uuid
  117. LEFT JOIN ( SELECT headpir, name, code FROM sys_supplier ) f ON f.code = a.code
  118. <trim prefix="WHERE" prefixOverrides="and | or">
  119. <if test="destination != null and destination != ''">
  120. and a.destination like CONCAT(CONCAT('%', #{destination}), '%')
  121. </if>
  122. <if test="titleTravel != null and titleTravel != ''">
  123. and a.offer_name like CONCAT(CONCAT('%', #{titleTravel}), '%')
  124. </if>
  125. <if test="jdrq != null and jdrq != ''">
  126. and #{startTime} <![CDATA[ <= ]]> a.jdrq and #{endTime} <![CDATA[ > ]]> jdrq
  127. </if>
  128. and state_type = '1'
  129. </trim>
  130. ) e
  131. where
  132. e.id not in (
  133. select top ${page} f.id
  134. from
  135. (select id,jdrq
  136. from bus_travel
  137. <trim prefix="WHERE" prefixOverrides="and | or">
  138. <if test="destination != null and destination != ''">
  139. and destination like CONCAT(CONCAT('%', #{destination}), '%')
  140. </if>
  141. <if test="titleTravel != null and titleTravel != ''">
  142. and title_travel like CONCAT(CONCAT('%', #{titleTravel}), '%')
  143. </if>
  144. <if test="jdrq != null and jdrq != ''">
  145. and #{startTime} <![CDATA[ <= ]]> jdrq and #{endTime} <![CDATA[ > ]]> jdrq
  146. </if>
  147. and state_type = '1'
  148. </trim>
  149. UNION ALL
  150. select
  151. id,jdrq
  152. from bus_supplier_route
  153. <trim prefix="WHERE" prefixOverrides="and | or">
  154. <if test="destination != null and destination != ''">
  155. and destination like CONCAT(CONCAT('%', #{destination}), '%')
  156. </if>
  157. <if test="titleTravel != null and titleTravel != ''">
  158. and offer_name like CONCAT(CONCAT('%', #{titleTravel}), '%')
  159. </if>
  160. <if test="jdrq != null and jdrq != ''">
  161. and #{startTime} <![CDATA[ <= ]]> jdrq and #{endTime} <![CDATA[ > ]]> jdrq
  162. </if>
  163. and state_type = '1'
  164. </trim>
  165. ) f ORDER BY f.jdrq desc)
  166. ORDER BY
  167. e.jdrq desc
  168. </select>
  169. <!-- 查询随机一条游记 -->
  170. <select id="getTravelOne" resultType="Travel" parameterType="Travel">
  171. select
  172. top ${limit} a.*,b.countNum,c.flag,d.commCount,f.name,f.headpir
  173. from
  174. bus_travel AS a
  175. LEFT JOIN ( SELECT COUNT ( * ) AS countNum, travel_uuid FROM sys_travel_give GROUP BY travel_uuid ) b ON a.uuid = b.travel_uuid
  176. LEFT JOIN ( SELECT COUNT ( * ) AS flag, travel_uuid FROM sys_travel_give WHERE code = #{code} GROUP BY travel_uuid ) c ON a.uuid = c.travel_uuid
  177. LEFT JOIN ( SELECT COUNT ( * ) AS commCount, travel_uuid FROM bus_travel_comments GROUP BY travel_uuid ) d ON a.uuid = d.travel_uuid
  178. LEFT JOIN (SELECT headpir,name,code from sys_users) f on f.code = a.code
  179. where a.state_type = '1'
  180. ORDER BY NEWID()
  181. </select>
  182. <!-- 查询游记详情 -->
  183. <select id="getTravelID" resultType="Travel">
  184. SELECT
  185. a.*,b.name,b.headpir,c.countNum,d.commCount,e.sendTravelNum,f.collectionNum,g.conllectionCount,h.flag,k.code as supplierCode,j.name as supplierName
  186. FROM
  187. bus_travel a
  188. LEFT JOIN (SELECT headpir,name,code from sys_users) b on b.code = a.code
  189. LEFT JOIN ( SELECT COUNT ( * ) AS countNum, travel_uuid FROM sys_travel_give GROUP BY travel_uuid ) c ON a.uuid = c.travel_uuid
  190. LEFT JOIN ( SELECT COUNT ( * ) AS commCount, travel_uuid FROM bus_travel_comments GROUP BY travel_uuid ) d ON a.uuid = d.travel_uuid
  191. LEFT JOIN ( SELECT COUNT ( * ) as sendTravelNum,code from bus_travel GROUP BY code ) e on a.code = e.code
  192. LEFT JOIN ( SELECT COUNT ( * ) as collectionNum,ordering_uuid from bus_collection where type = '1' and code = #{code} GROUP BY ordering_uuid ) f on a.uuid = f.ordering_uuid
  193. LEFT JOIN ( SELECT COUNT ( * ) as conllectionCount,ordering_uuid from bus_collection where type = '1' GROUP BY ordering_uuid ) g on a.uuid = g.ordering_uuid
  194. LEFT JOIN ( SELECT COUNT ( * ) AS flag, travel_uuid FROM sys_travel_give WHERE code = #{code} GROUP BY travel_uuid ) h ON a.uuid = h.travel_uuid
  195. LEFT JOIN ( SELECT code,uuid from bus_supplier_release ) k on a.release_uuid = k.uuid
  196. LEFT JOIN ( SELECT code,name from sys_supplier ) j on k.code = j.code
  197. WHERE
  198. a.uuid = #{uuid}
  199. </select>
  200. <!-- 查询每天游记内容 -->
  201. <select id="getTravelExper" resultType="TravelExperience">
  202. select id,uuid,day_num as dayNum,synopsis,video_url as videoUrl,img_url as imgUrl,title
  203. from bus_travel_experience
  204. where uuid = #{uuid}
  205. </select>
  206. <!-- 删除游记 -->
  207. <delete id="delTravel" parameterType="Travel">
  208. update bus_travel set state_type = '0' where uuid = #{uuid} and code = #{code}
  209. </delete>
  210. <!-- 删除每日游记 -->
  211. <delete id="delTravelExper">
  212. delete from bus_travel_experience
  213. <trim prefix="WHERE" prefixOverrides="and | or">
  214. <if test="uuid != null and uuid != ''">
  215. and uuid = #{uuid}
  216. </if>
  217. <if test="id != null and id != ''">
  218. and id = #{id}
  219. </if>
  220. </trim>
  221. </delete>
  222. <!-- 修改游记 -->
  223. <update id="updateTravel" parameterType="Travel">
  224. update bus_travel
  225. <set>
  226. <trim suffixOverrides=",">
  227. <if test="titleImg != null and titleImg != ''">
  228. title_img=#{titleImg},
  229. </if>
  230. <if test="synopsis != null and synopsis != ''">
  231. synopsis=#{synopsis},
  232. </if>
  233. <if test="videoUrl != null and videoUrl != ''">
  234. video_url=#{videoUrl},
  235. </if>
  236. <if test="imgUrl != null and imgUrl != ''">
  237. img_url=#{imgUrl},
  238. </if>
  239. <if test="travelDate != null and travelDate != ''">
  240. travel_date=#{travelDate},
  241. </if>
  242. <if test="travelDay != null and travelDay != ''">
  243. travel_day=#{travelDay},
  244. </if>
  245. <if test="capita != null and capita != ''">
  246. capita=#{capita},
  247. </if>
  248. <if test="figure != null and figure != ''">
  249. figure=#{figure},
  250. </if>
  251. <if test="playType != null and playType != ''">
  252. play_type=#{playType},
  253. </if>
  254. <if test="season != null and season != ''">
  255. season=#{season},
  256. </if>
  257. <if test="title != null and title != ''">
  258. title=#{title},
  259. </if>
  260. <if test="titleTravel != null and titleTravel != ''">
  261. title_travel=#{titleTravel},
  262. </if>
  263. <if test="titleDayName != null and titleDayName != ''">
  264. title_day_name=#{titleDayName},
  265. </if>
  266. </trim>
  267. </set>
  268. where uuid = #{uuid}
  269. </update>
  270. <!-- 查询是否点赞 -->
  271. <select id="getGiveCount" resultType="int">
  272. select count(*) as count from sys_travel_give where code = #{code} and travel_uuid = #{travelUuid}
  273. </select>
  274. <!-- 点赞 -->
  275. <insert id="addGive" parameterType="TravelGive">
  276. insert into sys_travel_give(code,jdrq,travel_uuid,uuid) values(#{code},SYSDATETIME(),#{travelUuid},#{uuid})
  277. </insert>
  278. <!-- 取消点赞 -->
  279. <delete id="delGive" parameterType="TravelGive">
  280. delete from sys_travel_give where code = #{code} and travel_uuid=#{travelUuid}
  281. </delete>
  282. <!-- 查看数量 -->
  283. <update id="updateLookNum" parameterType="Travel">
  284. UPDATE bus_travel
  285. SET look_num = ( SELECT look_num + 1 FROM bus_travel WHERE uuid = #{uuid} )
  286. WHERE
  287. uuid = #{uuid}
  288. </update>
  289. <!-- 查询游记总数 -->
  290. <select id="getTravelCountAll" resultType="int">
  291. select count(*) as count
  292. from
  293. (
  294. select id
  295. from bus_travel
  296. <trim prefix="WHERE" prefixOverrides="and | or">
  297. <if test="stateType != null and stateType != ''">
  298. and state_type = #{stateType}
  299. </if>
  300. <if test="demandUuid != null and demandUuid != ''">
  301. and demand_uuid = #{demandUuid}
  302. </if>
  303. <if test="destination != null and destination != ''">
  304. and destination like CONCAT(CONCAT('%', #{destination}), '%')
  305. </if>
  306. <if test="titleTravel != null and titleTravel != ''">
  307. and title_travel like CONCAT(CONCAT('%', #{titleTravel}), '%')
  308. </if>
  309. <if test="jdrq != null and jdrq != ''">
  310. and #{startTime} <![CDATA[ <= ]]> jdrq and #{endTime} <![CDATA[ > ]]> jdrq
  311. </if>
  312. and state_type = '1'
  313. </trim>
  314. UNION ALL
  315. select id
  316. FROM bus_supplier_route
  317. <trim prefix="WHERE" prefixOverrides="and | or">
  318. <if test="stateType != null and stateType != ''">
  319. and state_type = #{stateType}
  320. </if>
  321. <if test="demandUuid != null and demandUuid != ''">
  322. and demand_uuid = #{demandUuid}
  323. </if>
  324. <if test="destination != null and destination != ''">
  325. and destination like CONCAT(CONCAT('%', #{destination}), '%')
  326. </if>
  327. <if test="titleTravel != null and titleTravel != ''">
  328. and offer_name like CONCAT(CONCAT('%', #{titleTravel}), '%')
  329. </if>
  330. <if test="jdrq != null and jdrq != ''">
  331. and #{startTime} <![CDATA[ <= ]]> jdrq and #{endTime} <![CDATA[ > ]]> jdrq
  332. </if>
  333. </trim>
  334. ) a
  335. </select>
  336. <!-- 查询游记总数个人 -->
  337. <select id="getTravelCount" resultType="int">
  338. select count(*) as count
  339. from bus_travel
  340. <trim prefix="WHERE" prefixOverrides="and | or">
  341. and state_type = '1'
  342. <if test="demandUuid != null and demandUuid != ''">
  343. and demand_uuid = #{demandUuid}
  344. </if>
  345. <if test="destination != null and destination != ''">
  346. and destination like CONCAT(CONCAT('%', #{destination}), '%')
  347. </if>
  348. <if test="titleTravel != null and titleTravel != ''">
  349. and title_travel like CONCAT(CONCAT('%', #{titleTravel}), '%')
  350. </if>
  351. <if test="jdrq != null and jdrq != ''">
  352. and #{startTime} <![CDATA[ <= ]]> jdrq and #{endTime} <![CDATA[ > ]]> jdrq
  353. </if>
  354. <if test="code != null and code != ''">
  355. and code = #{code}
  356. </if>
  357. </trim>
  358. </select>
  359. <!-- 修改供应商路线查看次数 -->
  360. <update id="updateLookNumRoute" parameterType="Release">
  361. UPDATE bus_supplier_route
  362. SET look_num = ( SELECT look_num + 1 FROM bus_supplier_route WHERE uuid = #{uuid} )
  363. WHERE
  364. uuid = #{uuid}
  365. </update>
  366. <!-- 查询供应商路线详情 -->
  367. <select id="getTravelRoute" parameterType="Travel" resultType="Travel">
  368. SELECT
  369. a.id,
  370. a.code,
  371. a.title_img,
  372. null as synopsis,
  373. null as videoUrl,
  374. null as imgUrl,
  375. a.uuid,
  376. a.state_type as stateType,
  377. (a.start_time + '~' + a.end_time) as travelDate,
  378. datediff(day,a.start_time,a.end_time) as travelDay,
  379. convert(decimal(18,2), (a.price_all / a.people_num)) as capita,
  380. null as title,
  381. a.offer_name as titleTravel,
  382. a.uuid as demandUuid,
  383. a.jdrq,
  384. a.look_num,
  385. a.destination,
  386. a.people_num as peopleAll,
  387. b.name,
  388. b.headpir,
  389. c.countNum,
  390. d.commCount,
  391. e.sendTravelNum,
  392. f.collectionNum,
  393. g.conllectionCount,
  394. h.flag
  395. FROM
  396. bus_supplier_route a
  397. LEFT JOIN (SELECT headpir,name,code from sys_supplier) b on b.code = a.code
  398. LEFT JOIN ( SELECT COUNT ( * ) AS countNum, travel_uuid FROM sys_travel_give GROUP BY travel_uuid ) c ON a.uuid = c.travel_uuid
  399. LEFT JOIN ( SELECT COUNT ( * ) AS commCount, travel_uuid FROM bus_travel_comments GROUP BY travel_uuid ) d ON a.uuid = d.travel_uuid
  400. LEFT JOIN ( SELECT COUNT ( * ) as sendTravelNum,code from bus_supplier_route GROUP BY code ) e on a.code = e.code
  401. LEFT JOIN ( SELECT COUNT ( * ) as collectionNum,ordering_uuid from bus_collection where type = '2' and code = #{code} GROUP BY ordering_uuid ) f on a.uuid = f.ordering_uuid
  402. LEFT JOIN ( SELECT COUNT ( * ) as conllectionCount,ordering_uuid from bus_collection where type = '2' GROUP BY ordering_uuid ) g on a.uuid = g.ordering_uuid
  403. LEFT JOIN ( SELECT COUNT ( * ) AS flag, travel_uuid FROM sys_travel_give WHERE code = #{code} GROUP BY travel_uuid ) h ON a.uuid = h.travel_uuid
  404. WHERE
  405. a.uuid = #{uuid}
  406. </select>
  407. <!-- 查询订单完成的定制单并且是没写过游记的 -->
  408. <select id="getTravelRelese" resultType="PrivateOrder">
  409. SELECT
  410. b.uuid,
  411. b.start_time,
  412. b.end_time,
  413. c.uuid AS uuidRele,
  414. c.price_all,
  415. c.title_img,
  416. c.offer_name as offerName,
  417. c.order_no AS orderNoRelease,
  418. a.order_type AS orderType,
  419. e.name AS supplieName
  420. FROM
  421. bus_private_ordering AS b
  422. LEFT JOIN bus_supplier_release c ON b.uuid = c.demand_uuid
  423. LEFT JOIN sys_supplier e ON c.code = e.code
  424. JOIN bus_private_ordering_type a ON (order_type = '4' or order_type = '5' or order_type = '14') and b.uuid = a.demand_uuid and c.code = a.code
  425. where b.code = #{code} and b.uuid not in (select demand_uuid from bus_travel where code = #{code} and state_type = '1')
  426. </select>
  427. <!-- 查询指定定制单内容 -->
  428. <select id="getTravelVal" resultType="PrivateOrder">
  429. SELECT
  430. b.*,
  431. a.price_all
  432. FROM
  433. bus_supplier_release a
  434. LEFT JOIN bus_private_ordering b on a.demand_uuid = b.uuid
  435. WHERE
  436. a.uuid = #{id}
  437. </select>
  438. <!-- 查询供应商路线 -->
  439. <select id="getRoute" resultType="Map">
  440. SELECT
  441. a.destination,
  442. a.title_img,
  443. a.uuid,
  444. a.jdrq,
  445. a.look_num,
  446. a.offer_name,
  447. b.name,
  448. b.headpir,
  449. c.routeNum
  450. FROM
  451. bus_supplier_route a
  452. LEFT JOIN sys_supplier b ON a.code = b.code
  453. LEFT JOIN (SELECT count(*) AS routeNum,code FROM bus_supplier_route GROUP BY code) c ON a.code = c.code
  454. WHERE hot_form = '0'
  455. </select>
  456. <!-- 查询指定报价单的状态是否是2跟3 -->
  457. <select id="getReleseType" resultType="Map">
  458. SELECT
  459. b.orderTypeCount
  460. FROM
  461. bus_supplier_release a
  462. join (select count(*) as orderTypeCount,code,demand_uuid from bus_private_ordering_type where order_type = '2' or order_type = '3' GROUP BY code,demand_uuid) b on a.code = b.code and a.demand_uuid = b.demand_uuid
  463. where a.uuid = #{uuid}
  464. </select>
  465. <!-- 查询指定游记的收藏 -->
  466. <select id="getTravelConllection" resultType="OrderingConllection">
  467. SELECT
  468. b.code,b.headpir
  469. FROM
  470. bus_collection a
  471. left join sys_users b on a.code = b.code
  472. where ordering_uuid = #{uuid}
  473. </select>
  474. </mapper>