|
@@ -36,7 +36,7 @@ public interface LifeFansMapper extends BaseMapper<LifeFans> {
|
|
|
" where foll.flag = 'user' and user.delete_flag = 0 " +
|
|
" where foll.flag = 'user' and user.delete_flag = 0 " +
|
|
|
") foll " +
|
|
") foll " +
|
|
|
"left join life_fans fans on fans.fans_id = foll.phoneId and fans.followed_id = #{fansId} and fans.delete_flag = 0 " +
|
|
"left join life_fans fans on fans.fans_id = foll.phoneId and fans.followed_id = #{fansId} and fans.delete_flag = 0 " +
|
|
|
- "left join life_blacklist lb on lb.blocked_type = foll.blockedType and lb.blocked_id = foll.blockedId and lb.blocker_type = #{blockerType} and lb.blocker_id = #{blockerId} and lb.delete_flag = 0" +
|
|
|
|
|
|
|
+ "left join life_blacklist lb on lb.blocked_type = foll.blockedType and lb.blocked_id = foll.blockedId and lb.blocker_type = #{blockerType} and lb.blocker_id = #{blockerId} and lb.delete_flag = 0 " +
|
|
|
"${ew.customSqlSegment} ")
|
|
"${ew.customSqlSegment} ")
|
|
|
IPage<LifeFansVo> getMyFollowed(IPage<LifeFansVo> iPage, @Param("fansId") String fansId, @Param("blockerType") String blockerType, @Param("blockerId") String blockerId, @Param(Constants.WRAPPER) QueryWrapper<LifeFansVo> wrapper);
|
|
IPage<LifeFansVo> getMyFollowed(IPage<LifeFansVo> iPage, @Param("fansId") String fansId, @Param("blockerType") String blockerType, @Param("blockerId") String blockerId, @Param(Constants.WRAPPER) QueryWrapper<LifeFansVo> wrapper);
|
|
|
|
|
|
|
@@ -84,7 +84,7 @@ public interface LifeFansMapper extends BaseMapper<LifeFans> {
|
|
|
" where foll.flag = 'user' and user.delete_flag = 0 " +
|
|
" where foll.flag = 'user' and user.delete_flag = 0 " +
|
|
|
") foll " +
|
|
") foll " +
|
|
|
"left join life_fans fans on fans.followed_id = foll.phoneId and fans.fans_id = #{fansId} and fans.delete_flag = 0 " +
|
|
"left join life_fans fans on fans.followed_id = foll.phoneId and fans.fans_id = #{fansId} and fans.delete_flag = 0 " +
|
|
|
- "left join life_blacklist lb on lb.blocked_type = foll.blockedType and lb.blocked_id = foll.blockedId and lb.blocker_type = #{blockerType} and lb.blocker_id = #{blockerId} and lb.delete_flag = 0" +
|
|
|
|
|
|
|
+ "left join life_blacklist lb on lb.blocked_type = foll.blockedType and lb.blocked_id = foll.blockedId and lb.blocker_type = #{blockerType} and lb.blocker_id = #{blockerId} and lb.delete_flag = 0 " +
|
|
|
"${ew.customSqlSegment} ")
|
|
"${ew.customSqlSegment} ")
|
|
|
IPage<LifeFansVo> getMyFans(IPage<LifeFansVo> iPage, @Param("fansId") String fansId, @Param("blockerType") String blockerType, @Param("blockerId") String blockerId, @Param(Constants.WRAPPER) QueryWrapper<LifeFansVo> wrapper);
|
|
IPage<LifeFansVo> getMyFans(IPage<LifeFansVo> iPage, @Param("fansId") String fansId, @Param("blockerType") String blockerType, @Param("blockerId") String blockerId, @Param(Constants.WRAPPER) QueryWrapper<LifeFansVo> wrapper);
|
|
|
|
|
|
|
@@ -147,7 +147,7 @@ public interface LifeFansMapper extends BaseMapper<LifeFans> {
|
|
|
" join life_user user on foll.phone = user.user_phone " +
|
|
" join life_user user on foll.phone = user.user_phone " +
|
|
|
" where foll.flag = 'user' and user.delete_flag = 0 " +
|
|
" where foll.flag = 'user' and user.delete_flag = 0 " +
|
|
|
") foll " +
|
|
") foll " +
|
|
|
- "left join life_blacklist lb on lb.blocked_type = foll.blockedType and lb.blocked_id = foll.blockedId and lb.blocker_type = #{blockerType} and lb.blocker_id = #{blockerId} and lb.delete_flag = 0" +
|
|
|
|
|
|
|
+ "left join life_blacklist lb on lb.blocked_type = foll.blockedType and lb.blocked_id = foll.blockedId and lb.blocker_type = #{blockerType} and lb.blocker_id = #{blockerId} and lb.delete_flag = 0 " +
|
|
|
"${ew.customSqlSegment} ")
|
|
"${ew.customSqlSegment} ")
|
|
|
IPage<LifeFansVo> getMutualAttention(IPage<LifeFansVo> iPage, @Param("fansId") String fansId, @Param("blockerType") String blockerType, @Param("blockerId") String blockerId, @Param(Constants.WRAPPER) QueryWrapper<LifeFansVo> wrapper);
|
|
IPage<LifeFansVo> getMutualAttention(IPage<LifeFansVo> iPage, @Param("fansId") String fansId, @Param("blockerType") String blockerType, @Param("blockerId") String blockerId, @Param(Constants.WRAPPER) QueryWrapper<LifeFansVo> wrapper);
|
|
|
|
|
|