|
@@ -137,4 +137,41 @@
|
|
|
where jhs.del_flag = 0 and jhs.type = 5 and jhs.id = #{id}
|
|
|
GROUP BY jhs.id
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="getLifeServices" resultType="com.sooka.jnb.highServer.vo.JnbHighServerVO">
|
|
|
+ SELECT jhs.id,
|
|
|
+ title_name,
|
|
|
+ text_details,
|
|
|
+ jhs.type as type,
|
|
|
+ jhs.create_by,
|
|
|
+ jhs.create_time,
|
|
|
+ jhs.update_by,
|
|
|
+ jhs.update_time,
|
|
|
+ GROUP_CONCAT(jhsi.id) AS imgId,
|
|
|
+ GROUP_CONCAT(jhsi.img_url) AS imgUrlList,
|
|
|
+ jhs.like_num,
|
|
|
+ jhs.watch_num
|
|
|
+ FROM jnb_high_server jhs
|
|
|
+ left JOIN jnb_high_server_img jhsi ON jhs.id = jhsi.server_id and jhs.type = jhsi.type and jhsi.del_flag = 0
|
|
|
+ where jhs.del_flag = 0 and jhs.type = 6
|
|
|
+ GROUP BY jhs.id
|
|
|
+ </select>
|
|
|
+ <select id="lifeServicesDetails" resultType="com.sooka.jnb.highServer.vo.JnbHighServerVO">
|
|
|
+ SELECT jhs.id,
|
|
|
+ title_name,
|
|
|
+ text_details,
|
|
|
+ jhs.type as type,
|
|
|
+ jhs.create_by,
|
|
|
+ jhs.create_time,
|
|
|
+ jhs.update_by,
|
|
|
+ jhs.update_time,
|
|
|
+ GROUP_CONCAT(jhsi.id) AS imgId,
|
|
|
+ GROUP_CONCAT(jhsi.img_url) AS imgUrlList,
|
|
|
+ jhs.like_num,
|
|
|
+ jhs.watch_num
|
|
|
+ FROM jnb_high_server jhs
|
|
|
+ left JOIN jnb_high_server_img jhsi ON jhs.id = jhsi.server_id and jhs.type = jhsi.type and jhsi.del_flag = 0
|
|
|
+ where jhs.del_flag = 0 and jhs.type = 6 and jhs.id = #{id}
|
|
|
+ GROUP BY jhs.id
|
|
|
+ </select>
|
|
|
</mapper>
|