| | |
| | | */ |
| | | package org.springblade.modules.place.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.modules.place.entity.PlaceEntity; |
| | | import org.springblade.modules.place.entity.PlaceExtEntity; |
| | | import org.springblade.modules.place.entity.PlacePractitionerEntity; |
| | | import org.springblade.modules.place.service.IPlacePractitionerService; |
| | | import org.springblade.modules.place.service.IPlaceService; |
| | | import org.springblade.modules.place.vo.PlaceExtVO; |
| | | import org.springblade.modules.place.mapper.PlaceExtMapper; |
| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 场所详情表 服务实现类 |
| | |
| | | |
| | | @Autowired |
| | | private IPlaceService placeService; |
| | | |
| | | @Autowired |
| | | private IPlacePractitionerService placePractitionerService; |
| | | |
| | | /** |
| | | * 自定义查询 |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * 场所详情表 自定义详情 |
| | | * @param placeExt |
| | | * @return |
| | | */ |
| | | @Override |
| | | public PlaceExtVO getDetail(PlaceExtVO placeExt) { |
| | | PlaceExtVO detail = baseMapper.getDetail(placeExt); |
| | | // 查询从业人员信息 |
| | | QueryWrapper<PlacePractitionerEntity> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("place_id",placeExt.getPlaceId()); |
| | | detail.setPlacePractitioner(placePractitionerService.list(queryWrapper)); |
| | | // 返回 |
| | | return detail; |
| | | } |
| | | } |