Commit c361e3e3 by lzy

入住-床位

parent 9a527dcf
......@@ -171,6 +171,8 @@ public class PlatSpaceServiceImpl extends ServiceImpl<PlatSpaceMapper, PlatSpace
@Override
public List<PlatSpaceVO> treeByBed(PlatSpaceQueryDTO dto) {
PlatUserVO userVO = PlatUserUtil.getUserVOCanNull();
//房间
List<PlatRoom> listRoom = platRoomService.list(new LambdaQueryWrapper<>());
......@@ -199,6 +201,7 @@ public class PlatSpaceServiceImpl extends ServiceImpl<PlatSpaceMapper, PlatSpace
LambdaQueryWrapper<PlatSpace> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.like(StringUtil.isNotEmpty(dto.getName()),PlatSpace::getName,dto.getName());
queryWrapper.eq(StringUtil.isNotEmpty(userVO.getOrgId()),PlatSpace::getOrgId,userVO.getOrgId());
List<PlatSpace> list = this.list(queryWrapper);
List<PlatSpaceVO> listSpaceVo = BeanDtoVoUtils.listVo(list,PlatSpaceVO.class);
listSpaceVo.addAll(listRoomVo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment