|
@@ -4,7 +4,10 @@
|
|
|
|
|
|
<select id="getByType" resultType="com.fdkankan.ucenter.entity.FolderScene">
|
|
<select id="getByType" resultType="com.fdkankan.ucenter.entity.FolderScene">
|
|
SELECT b.* from t_folder a left join t_folder_scene b on a.id = b.folder_id
|
|
SELECT b.* from t_folder a left join t_folder_scene b on a.id = b.folder_id
|
|
- where b.rec_status ='A' and b.scene_id = #{sceneId} and a.type = #{type}
|
|
|
|
|
|
+ where b.rec_status ='A' and b.scene_id = #{sceneId}
|
|
|
|
+ <if test= 'type != null'>
|
|
|
|
+ and a.type = #{type}
|
|
|
|
+ </if>
|
|
limit 1
|
|
limit 1
|
|
</select>
|
|
</select>
|
|
<select id="getGroupByFolderIds" resultType="com.fdkankan.ucenter.vo.response.GroupByCount">
|
|
<select id="getGroupByFolderIds" resultType="com.fdkankan.ucenter.vo.response.GroupByCount">
|