|
|
@@ -15,10 +15,9 @@ import java.util.List;
|
|
|
public interface LifeUserDynamicsMapper extends BaseMapper<LifeUserDynamics> {
|
|
|
|
|
|
@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,transfer_count" +
|
|
|
- " from life_user_dynamics " +
|
|
|
- " where delete_flag = 0 and enable_status = 0 and draft = 0 order by created_time desc" +
|
|
|
- ") " +
|
|
|
+ "select lud.id, lud.top_status, lud.top_time, lud.title, lud.phone_id phoneId, lud.context, lud.image_path, lud.address, lud.address_name, lud.address_context, lud.liulan_count, lud.dianzan_count, lud.type, lud.created_time, substring_index(lud.phone_id, '_', 1) flag, substring_index(lud.phone_id, '_', -1) phone, lud.draft , lud.address_province, lud.transfer_count from life_user_dynamics lud " +
|
|
|
+ "where lud.delete_flag = 0 and lud.enable_status = 0 and lud.draft = 0 and " +
|
|
|
+ "not exists (select 1 from life_user_violation luv where luv.delete_flag = 0 and luv.processing_status = 1 AND luv.dynamics_id = lud.id) order by lud.created_time desc) " +
|
|
|
"select dynamice.*, info.store_name userName, user.head_img userImage, info.id storeUserId, user.id storeOrUserId, 0 isExpert " +
|
|
|
"from dynamice " +
|
|
|
"join store_user user on dynamice.phone = user.phone and user.delete_flag = 0 " +
|