Browse Source

复制功能

dsx 2 years ago
parent
commit
ba06045124
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/main/resources/mapper/ucenter/FolderSceneMapper.xml

+ 4 - 1
src/main/resources/mapper/ucenter/FolderSceneMapper.xml

@@ -4,7 +4,10 @@
 
     <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
-        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
     </select>
     <select id="getGroupByFolderIds" resultType="com.fdkankan.ucenter.vo.response.GroupByCount">