package com.panzhihua.service_community.dao; import java.util.List; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Update; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.panzhihua.common.model.vos.community.ComActMessageBackVO; import com.panzhihua.common.model.vos.community.ComActMessageVO; import com.panzhihua.common.model.vos.community.PageComActMessageVO; import com.panzhihua.common.model.vos.partybuilding.ComPbServiceTeamVO; import com.panzhihua.common.model.vos.partybuilding.PartyCommitteeVO; import com.panzhihua.service_community.model.dos.ComActMessageDO; @Mapper public interface ComActMessageDAO extends BaseMapper { @Select("select * from com_pb_member_role where id=#{id}") PartyCommitteeVO selectPartyCommitteeById(@Param("id") Long id); @Select("select * from com_pb_service_team where id=#{id}") ComPbServiceTeamVO selectComPbServiceTeamById(@Param("id") Long id); @Select("select * from com_act_message_back where msg_id=#{id} order by create_at desc") List selectMsgBackList(@Param("id") Long id); @Select("") IPage pageSendMeMessageApplets(Page page, @Param("comActMessageVO") ComActMessageVO comActMessageVO); @Select("select * from com_act_message where user_id=#{comActMessageVO.userId} order by create_at desc") IPage pageMyMessageApplets(Page page, @Param("comActMessageVO") ComActMessageVO comActMessageVO); @Select("select * from com_act_message where sendto_user_id=#{comActMessageVO.sendtoUserId} and ispublic=1 order by create_at desc ") IPage pageMessageByUserApplets(Page page, @Param("comActMessageVO") ComActMessageVO comActMessageVO); @Update("update com_act_message set ispublic=#{ispublic} where id=#{id}") void updatePublic(@Param("ispublic") Integer ispublic, @Param("id") Long id); @Select("") IPage pageMyCommunityMessageApplets(Page page, @Param("comActMessageVO") ComActMessageVO comActMessageVO); }