|
@@ -140,14 +140,14 @@
|
|
|
|
|
|
|
|
<select id="getDynamicsDetail" resultType="shop.alien.entity.store.vo.LifeUserDynamicsVo">
|
|
<select id="getDynamicsDetail" resultType="shop.alien.entity.store.vo.LifeUserDynamicsVo">
|
|
|
select dyna1.*, COUNT(dyna1.id) AS fansCount from (
|
|
select dyna1.*, COUNT(dyna1.id) AS fansCount from (
|
|
|
- select dyna.*,COUNT(sc.id) AS commentCount, COUNT(lm.id) AS transferNum from (
|
|
|
|
|
|
|
+ select dyna.*,COUNT(sc.id) AS commentCount from (
|
|
|
with dynamice as(
|
|
with dynamice as(
|
|
|
select
|
|
select
|
|
|
CASE
|
|
CASE
|
|
|
WHEN image_path REGEXP '.mp4|.avi|.flv|.mkv|.rmvb|.wmv|.3gp|.mov' THEN 2
|
|
WHEN image_path REGEXP '.mp4|.avi|.flv|.mkv|.rmvb|.wmv|.3gp|.mov' THEN 2
|
|
|
WHEN image_path REGEXP '.jpg|.jpeg|.png|.bmp|.webp|.gif|.svg' THEN 1
|
|
WHEN image_path REGEXP '.jpg|.jpeg|.png|.bmp|.webp|.gif|.svg' THEN 1
|
|
|
ELSE 0
|
|
ELSE 0
|
|
|
- END AS dynamicsType, id, title, phone_id phoneId, context, image_path, address,address_name,address_context, liulan_count, dianzan_count, type, created_time, substring_index(phone_id, '_', 1) userType, substring_index(phone_id, '_', -1) phone, draft , address_province, top_status, top_time, enable_status
|
|
|
|
|
|
|
+ END AS dynamicsType, id, title, phone_id phoneId, context, image_path, address,address_name,address_context, liulan_count, dianzan_count, type, created_time, substring_index(phone_id, '_', 1) userType, substring_index(phone_id, '_', -1) phone, draft , address_province, top_status, top_time, enable_status,transfer_count AS transferCount
|
|
|
from life_user_dynamics
|
|
from life_user_dynamics
|
|
|
where id = #{id} and delete_flag = 0 and draft = 0 order by created_time desc
|
|
where id = #{id} and delete_flag = 0 and draft = 0 order by created_time desc
|
|
|
)
|
|
)
|