| | |
| | | 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.dtos.user.PageUserAppletsBackstageDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.user.AdministratorsUserVO; |
| | | import com.panzhihua.common.model.vos.user.SysUserVO; |
| | | import com.panzhihua.service_user.model.dos.SysUserDO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | "JOIN sys_user_role r ON u.user_id = r.user_id\n" + |
| | | "JOIN sys_role e ON r.role_id = e.role_id \n" + |
| | | "<if test='administratorsUserVO.roleId != null and administratorsUserVO.roleId!=0'>" + |
| | | " and e.role_id=#{administratorsUserVO.roleId}"+ |
| | | " and e.role_id=#{administratorsUserVO.roleId}" + |
| | | " </if> " + |
| | | " <where>" + |
| | | "<if test='administratorsUserVO.communityId != null '>" + |
| | |
| | | " </where>" + |
| | | "</script>") |
| | | IPage<AdministratorsUserVO> pageUserBackstage(Page page, @Param("administratorsUserVO") AdministratorsUserVO administratorsUserVO); |
| | | |
| | | @Select("<script> " + |
| | | "select \n" + |
| | | "u.userId,\n" + |
| | | "u.phone,\n" + |
| | | "u.nick_name,\n" + |
| | | "u.name,\n" + |
| | | "a.name communityName,\n" + |
| | | "a.status,\n" + |
| | | "a.create_at,\n" + |
| | | "a.last_login_time\n" + |
| | | "from sys_user u\n" + |
| | | "left join com_act a on u.community_id=a.community_id\n" + |
| | | " <where>" + |
| | | "<if test='pageUserAppletsBackstageDTO.phone != null and pageUserAppletsBackstageDTO.phone.trim() != ""'>" + |
| | | "and u.phone=#{pageUserAppletsBackstageDTO.phone}\n" + |
| | | " </if> " + |
| | | "<if test='pageUserAppletsBackstageDTO.communityId != null and pageUserAppletsBackstageDTO.communityId != 0'>" + |
| | | "and u.community_id=#{pageUserAppletsBackstageDTO.communityId}\n" + |
| | | " </if> " + |
| | | "<if test='pageUserAppletsBackstageDTO.status != null and pageUserAppletsBackstageDTO.status != 0'>" + |
| | | "and u.status=#{pageUserAppletsBackstageDTO.status}\n" + |
| | | " </if> " + |
| | | "<if test='pageUserAppletsBackstageDTO.createAtBegin != null '>" + |
| | | "and u.create_at between #{pageUserAppletsBackstageDTO.createAtBegin} and #{pageUserAppletsBackstageDTO.createAtEnd}\n" + |
| | | " </if> " + |
| | | "<if test='pageUserAppletsBackstageDTO.lastLoginTimeBegin != null '>" + |
| | | "and u.last_login_time between #{pageUserAppletsBackstageDTO.lastLoginTimeBegin} and #{pageUserAppletsBackstageDTO.lastLoginTimeEnd}\n" + |
| | | " </if> " + |
| | | " </where>" + |
| | | "order by u.create_at desc \n" + |
| | | "</script>") |
| | | IPage<SysUserVO> pageUserAppletsBackstage(Page page, @Param("pageUserAppletsBackstageDTO") PageUserAppletsBackstageDTO pageUserAppletsBackstageDTO); |
| | | } |