|
@@ -14,8 +14,8 @@ import java.util.List;
|
|
|
@Mapper
|
|
@Mapper
|
|
|
public interface LifeUserDynamicsMapper extends BaseMapper<LifeUserDynamics> {
|
|
public interface LifeUserDynamicsMapper extends BaseMapper<LifeUserDynamics> {
|
|
|
|
|
|
|
|
- @Select("with dynamice as( " +
|
|
|
|
|
- " select 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) flag, substring_index(phone_id, '_', -1) phone, draft , address_province" +
|
|
|
|
|
|
|
+ @Select("select dyna1.* from (with dynamice as( " +
|
|
|
|
|
+ " select id, top_status, top_time, title, phone_id phoneId, context, image_path, address,address_name,address_context, liulan_count, dianzan_count, type, created_time, substring_index(phone_id, '_', 1) flag, substring_index(phone_id, '_', -1) phone, draft , address_province" +
|
|
|
" from life_user_dynamics " +
|
|
" from life_user_dynamics " +
|
|
|
" where delete_flag = 0 and draft = 0 order by created_time desc" +
|
|
" where delete_flag = 0 and draft = 0 order by created_time desc" +
|
|
|
") " +
|
|
") " +
|
|
@@ -30,7 +30,7 @@ public interface LifeUserDynamicsMapper extends BaseMapper<LifeUserDynamics> {
|
|
|
"from dynamice " +
|
|
"from dynamice " +
|
|
|
"join life_user user on dynamice.phone = user.user_phone and user.delete_flag = 0 " +
|
|
"join life_user user on dynamice.phone = user.user_phone and user.delete_flag = 0 " +
|
|
|
"left join life_user_expert lue on lue.user_id = user.id and lue.delete_flag = 0 " +
|
|
"left join life_user_expert lue on lue.user_id = user.id and lue.delete_flag = 0 " +
|
|
|
- "where dynamice.flag = 'user'")
|
|
|
|
|
|
|
+ "where dynamice.flag = 'user') dyna1 order by dyna1.top_status desc, dyna1.top_time desc, created_time desc")
|
|
|
List<LifeUserDynamicsVo> getLifeUserDynamicsList();
|
|
List<LifeUserDynamicsVo> getLifeUserDynamicsList();
|
|
|
|
|
|
|
|
@Select("select lud.id ,lud.image_path,lud.context,lu.user_image,lu.user_name,IF(llr.huifu_id IS NOT NULL, 1, 0) AS isLike\n" +
|
|
@Select("select lud.id ,lud.image_path,lud.context,lu.user_image,lu.user_name,IF(llr.huifu_id IS NOT NULL, 1, 0) AS isLike\n" +
|