|
|
@ -43,7 +43,7 @@ |
|
|
<!-- id,img_url,creator_id,type_id,download_num, great_num, collection_num,status,is_hot--> |
|
|
<!-- id,img_url,creator_id,type_id,download_num, great_num, collection_num,status,is_hot--> |
|
|
<!-- from img_tiktok_img--> |
|
|
<!-- from img_tiktok_img--> |
|
|
<!-- <where>--> |
|
|
<!-- <where>--> |
|
|
<!-- is_show = '1' and status = '1'--> |
|
|
<!-- is_show = '1' and status = '3'--> |
|
|
<!-- <if test="creatorId != null and creatorId != ''">--> |
|
|
<!-- <if test="creatorId != null and creatorId != ''">--> |
|
|
<!-- and creator_id = #{creatorId}--> |
|
|
<!-- and creator_id = #{creatorId}--> |
|
|
<!-- </if>--> |
|
|
<!-- </if>--> |
|
|
@ -57,7 +57,7 @@ |
|
|
select |
|
|
select |
|
|
id,img_url,creator_id,type_id,download_num, great_num, collection_num,status,is_hot |
|
|
id,img_url,creator_id,type_id,download_num, great_num, collection_num,status,is_hot |
|
|
from img_tiktok_img |
|
|
from img_tiktok_img |
|
|
where creator_id = #{creatorId} and is_show = '1' and status = '1' |
|
|
where creator_id = #{creatorId} and is_show = '1' and status = '3' |
|
|
order by create_time desc |
|
|
order by create_time desc |
|
|
limit 3 |
|
|
limit 3 |
|
|
</select> |
|
|
</select> |
|
|
@ -66,7 +66,7 @@ |
|
|
select |
|
|
select |
|
|
id,img_url,creator_id,type_id,download_num, great_num, collection_num,status,is_hot |
|
|
id,img_url,creator_id,type_id,download_num, great_num, collection_num,status,is_hot |
|
|
from img_tiktok_img |
|
|
from img_tiktok_img |
|
|
where creator_id = #{creatorId} and is_show = '1' and status = '1' |
|
|
where creator_id = #{creatorId} and is_show = '1' and status = '3' |
|
|
order by create_time desc |
|
|
order by create_time desc |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
@ -74,13 +74,13 @@ |
|
|
select |
|
|
select |
|
|
id,img_url,creator_id,type_id,download_num, great_num, collection_num,status,is_hot |
|
|
id,img_url,creator_id,type_id,download_num, great_num, collection_num,status,is_hot |
|
|
from img_tiktok_img |
|
|
from img_tiktok_img |
|
|
where is_show = '1' and status = '1' and id = #{imgId} |
|
|
where is_show = '1' and status = '3' and id = #{imgId} |
|
|
</select> |
|
|
</select> |
|
|
<select id="queryFrontPage" resultType="com.bnyer.img.vo.TiktokImgVo"> |
|
|
<select id="queryFrontPage" resultType="com.bnyer.img.vo.TiktokImgVo"> |
|
|
select |
|
|
select |
|
|
id,img_url,creator_id,type_id,download_num, great_num, collection_num,status,is_hot |
|
|
id,img_url,creator_id,type_id,download_num, great_num, collection_num,status,is_hot |
|
|
from img_tiktok_img |
|
|
from img_tiktok_img |
|
|
where is_show = '1' and status = '1' |
|
|
where is_show = '1' and status = '3' |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="queryImgsByScanCodeAndTypeId" resultType="com.bnyer.img.vo.TiktokImgVo"> |
|
|
<select id="queryImgsByScanCodeAndTypeId" resultType="com.bnyer.img.vo.TiktokImgVo"> |
|
|
@ -90,7 +90,7 @@ |
|
|
iti.status as status,iti.is_hot as isHot |
|
|
iti.status as status,iti.is_hot as isHot |
|
|
from img_tiktok_img iti |
|
|
from img_tiktok_img iti |
|
|
join img_creator ic on iti.creator_id = ic.id |
|
|
join img_creator ic on iti.creator_id = ic.id |
|
|
where iti.is_show = '1' and iti.status = '1' |
|
|
where iti.is_show = '1' and iti.status = '3' |
|
|
and ic.scan_code = #{scanCode} and iti.type_id = #{typeId} |
|
|
and ic.scan_code = #{scanCode} and iti.type_id = #{typeId} |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|