|
@@ -6,7 +6,6 @@
|
|
select PK_ID
|
|
select PK_ID
|
|
FROM KM_ALBUM_CATEGORY
|
|
FROM KM_ALBUM_CATEGORY
|
|
where IS_DEL = 0
|
|
where IS_DEL = 0
|
|
- and PARENT = '0'
|
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectAlbumId" resultType="int">
|
|
<select id="selectAlbumId" resultType="int">
|
|
@@ -14,10 +13,9 @@
|
|
from KM_ALBUM_INFO
|
|
from KM_ALBUM_INFO
|
|
WHERE CATEGORY_ID IN (SELECT c.PK_ID
|
|
WHERE CATEGORY_ID IN (SELECT c.PK_ID
|
|
FROM KM_ALBUM_CATEGORY c
|
|
FROM KM_ALBUM_CATEGORY c
|
|
- WHERE c.IS_DEL = 0
|
|
|
|
|
|
+ WHERE
|
|
START WITH c.PK_ID = #{categoryId}
|
|
START WITH c.PK_ID = #{categoryId}
|
|
- CONNECT BY PRIOR c.PK_ID = c.PARENT
|
|
|
|
- and c.IS_DEL = 0)
|
|
|
|
|
|
+ CONNECT BY PRIOR c.PK_ID = c.PARENT)
|
|
<if test="firstDay != null and lastDay != null">
|
|
<if test="firstDay != null and lastDay != null">
|
|
and TO_CHAR(CREATE_TIME_,'yyyy-mm-dd') >= #{firstDay}
|
|
and TO_CHAR(CREATE_TIME_,'yyyy-mm-dd') >= #{firstDay}
|
|
and TO_CHAR(CREATE_TIME_,'yyyy-mm-dd') <= #{lastDay}
|
|
and TO_CHAR(CREATE_TIME_,'yyyy-mm-dd') <= #{lastDay}
|