|
@@ -18,8 +18,8 @@ import com.xjrsoft.module.room.mapper.RoomBedMapper;
|
|
|
import com.xjrsoft.module.room.mapper.RoomMapper;
|
|
import com.xjrsoft.module.room.mapper.RoomMapper;
|
|
|
import com.xjrsoft.module.room.mapper.RoomRuleMapper;
|
|
import com.xjrsoft.module.room.mapper.RoomRuleMapper;
|
|
|
import com.xjrsoft.module.room.service.IRoomService;
|
|
import com.xjrsoft.module.room.service.IRoomService;
|
|
|
|
|
+import com.xjrsoft.module.room.vo.RoomExcelVo;
|
|
|
import com.xjrsoft.module.room.vo.RoomPageVo;
|
|
import com.xjrsoft.module.room.vo.RoomPageVo;
|
|
|
-import com.xjrsoft.module.student.entity.BaseStudent;
|
|
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
@@ -47,6 +47,11 @@ public class RoomServiceImpl extends MPJBaseServiceImpl<RoomMapper, Room> implem
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public List<RoomExcelVo> getList(RoomPageDto dto) {
|
|
|
|
|
+ return roomMapper.getList(dto);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public String saveBatch(AddRoomDto dto) {
|
|
public String saveBatch(AddRoomDto dto) {
|
|
|
MPJLambdaWrapper<RoomRule> queryWrapper = new MPJLambdaWrapper<>();
|
|
MPJLambdaWrapper<RoomRule> queryWrapper = new MPJLambdaWrapper<>();
|
|
@@ -118,7 +123,7 @@ public class RoomServiceImpl extends MPJBaseServiceImpl<RoomMapper, Room> implem
|
|
|
public String deleteReachBed(Long id) {
|
|
public String deleteReachBed(Long id) {
|
|
|
List<RoomBed> bedList = roomBedMapper.selectList(
|
|
List<RoomBed> bedList = roomBedMapper.selectList(
|
|
|
MPJWrappers.<RoomBed>lambdaJoin()
|
|
MPJWrappers.<RoomBed>lambdaJoin()
|
|
|
- .select(BaseStudent::getUserId)
|
|
|
|
|
|
|
+ .select(RoomBed::getStudentUserId)
|
|
|
.eq(RoomBed::getRoomId, id).isNotNull(RoomBed::getStudentUserId)
|
|
.eq(RoomBed::getRoomId, id).isNotNull(RoomBed::getStudentUserId)
|
|
|
);
|
|
);
|
|
|
if(bedList != null && !bedList.isEmpty()){
|
|
if(bedList != null && !bedList.isEmpty()){
|