|
|
|
@ -77,6 +77,9 @@ |
|
|
|
<if test="typeId != null and typeId != ''"> |
|
|
|
and iti.type_id = #{typeId} |
|
|
|
</if> |
|
|
|
<if test="status != null and status != ''"> |
|
|
|
and iti.status = #{status} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
order by iti.create_time desc |
|
|
|
</select> |
|
|
|
@ -101,7 +104,7 @@ |
|
|
|
iti.download_num as downloadNum, iti.great_num greatNum, iti.collection_num as collectionNum, |
|
|
|
iti.status as status,iti.is_hot as isHot |
|
|
|
from img_tiktok_img iti |
|
|
|
where iti.creator_id = #{creatorId} and iti.is_show = '1' and iti.status = '3' |
|
|
|
where iti.creator_id = #{creatorId} and iti.is_show = '1' and iti.status = '2' |
|
|
|
order by iti.create_time desc |
|
|
|
limit 3 |
|
|
|
</select> |
|
|
|
@ -112,7 +115,7 @@ |
|
|
|
iti.type_id as typeId,iti.download_num as downloadNum, iti.great_num as greatNum, |
|
|
|
iti.collection_num as collectionNum,iti.status as status,iti.is_hot as isHot |
|
|
|
from img_tiktok_img iti |
|
|
|
where iti.creator_id = #{creatorId} and iti.is_show = '1' and iti.status = '3' |
|
|
|
where iti.creator_id = #{creatorId} and iti.is_show = '1' and iti.status = '2' |
|
|
|
order by iti.create_time desc |
|
|
|
</select> |
|
|
|
|
|
|
|
@ -122,7 +125,7 @@ |
|
|
|
iti.type_id as typeId,iti.download_num as downloadNum, iti.great_num as greatNum, |
|
|
|
iti.collection_num as collectionNum,iti.status as status,iti.is_hot as isHot |
|
|
|
from img_tiktok_img iti |
|
|
|
where iti.is_show = '1' and iti.status = '3' and iti.id = #{imgId} |
|
|
|
where iti.is_show = '1' and iti.status = '2' and iti.id = #{imgId} |
|
|
|
</select> |
|
|
|
<select id="queryFrontPage" resultMap="imgList"> |
|
|
|
select |
|
|
|
@ -130,7 +133,7 @@ |
|
|
|
iti.type_id as typeId,iti.download_num downloadNum, iti.great_num as greatNum, |
|
|
|
iti.collection_num as collectionNum,iti.status as status,iti.is_hot as isHot |
|
|
|
from img_tiktok_img iti |
|
|
|
where iti.is_show = '1' and iti.status = '3' |
|
|
|
where iti.is_show = '1' and iti.status = '2' |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryImgsByScanCodeAndTypeId" resultMap="imgList"> |
|
|
|
@ -140,7 +143,7 @@ |
|
|
|
iti.status as status,iti.is_hot as isHot |
|
|
|
from img_tiktok_img iti |
|
|
|
join img_creator ic on iti.creator_id = ic.id |
|
|
|
where iti.is_show = '1' and iti.status = '3' |
|
|
|
where iti.is_show = '1' and iti.status = '2' |
|
|
|
and ic.scan_code = #{scanCode} and iti.type_id = #{typeId} |
|
|
|
</select> |
|
|
|
|
|
|
|
@ -149,7 +152,7 @@ |
|
|
|
count(id) |
|
|
|
from img_tiktok_img |
|
|
|
where type_id = #{typeId} and creator_id = #{creatorId} and is_show = '1' |
|
|
|
and status = '1' |
|
|
|
and status = '2' |
|
|
|
</select> |
|
|
|
<select id="querySignImgBySignIdAndTypeId" resultMap="imgList"> |
|
|
|
select |
|
|
|
@ -170,7 +173,7 @@ |
|
|
|
join img_img_sign_relation iisr on iisr.img_id = iti.id |
|
|
|
join img_sign iis on iisr.sign_id = iis.id |
|
|
|
<where> |
|
|
|
iis.is_show = '1' and iti.is_show = '1' and iti.status = '3' |
|
|
|
iis.is_show = '1' and iti.is_show = '1' and iti.status = '2' |
|
|
|
<if test="signName != null and signName != ''"> |
|
|
|
and iis.name like concat('%', #{signName}, '%') |
|
|
|
</if> |
|
|
|
|