| | |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.model.Company; |
| | | import com.doumee.dao.system.SystemUserJoinMapper; |
| | | import com.doumee.dao.system.SystemUserMapper; |
| | | import com.doumee.dao.system.dto.QuerySystemUserDTO; |
| | |
| | | import com.doumee.dao.system.model.SystemUser; |
| | | import com.doumee.dao.system.vo.SystemDepartmentListVO; |
| | | import com.doumee.dao.system.vo.SystemUserListVO; |
| | | import com.doumee.dao.system.vo.UserResponse; |
| | | import com.doumee.service.aware.DepartmentDataPermissionAware; |
| | | import com.doumee.service.system.SystemDepartmentService; |
| | | import com.doumee.service.system.SystemPositionService; |
| | |
| | | Wrapper<SystemUser> wrapper = new QueryWrapper<>(systemUser); |
| | | return systemUserMapper.selectList(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<UserResponse> getUserList(Integer bookingsId) { |
| | | return systemUserMapper.getUserList(new QueryWrapper<UserResponse>() |
| | | .exists(" select 1 from meeting_user_rel u where u.USER_ID = c.id and u.ISDELETED = 0 and u.OBJ_ID = "+bookingsId+" and u.OBJ_TYPE = 1 ") |
| | | ); |
| | | } |
| | | |
| | | @Override |
| | | public PageData<SystemUserListVO> findPage(PageWrap<QuerySystemUserDTO> pageWrap) { |
| | |
| | | |
| | | @Override |
| | | public List<SystemUser> findAllList(SystemUser pageWrap) { |
| | | |
| | | |
| | | MPJLambdaWrapper<SystemUser> queryWrapper = new MPJLambdaWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap); |
| | | queryWrapper.selectAll(SystemUser.class); |
| | |
| | | .or().like(SystemUser::getRealname,pageWrap.getUsername()) |
| | | ); |
| | | queryWrapper.orderByDesc(SystemUser::getCreateTime); |
| | | |
| | | |
| | | |
| | | List<SystemUser> result = systemUserJoinMapper.selectJoinList( SystemUser.class, queryWrapper); |
| | | |
| | | return result; |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | |
| | | @Override |
| | | public List<SystemUser> findInternalList() { |
| | | MPJLambdaWrapper<SystemUser> queryWrapper = new MPJLambdaWrapper<>(); |
| | | queryWrapper.selectAll(SystemUser.class); |
| | | queryWrapper.eq(SystemUser::getDeleted, Constants.ZERO); |
| | | queryWrapper.leftJoin(Company.class,Company::getId,SystemUser::getCompanyId); |
| | | queryWrapper.eq(Company::getType,Constants.ONE); |
| | | queryWrapper.orderByDesc(SystemUser::getCreateTime); |
| | | List<SystemUser> result = systemUserJoinMapper.selectJoinList( SystemUser.class, queryWrapper); |
| | | return result; |
| | | } |
| | | |
| | | |
| | | } |