| | |
| | | import com.sinata.common.entity.PageDTO; |
| | | import com.sinata.common.exception.ServiceException; |
| | | import com.sinata.common.utils.BeanUtils; |
| | | import com.sinata.common.utils.StringUtils; |
| | | import com.sinata.system.domain.MwBusinessDevice; |
| | | import com.sinata.system.domain.dto.MwBusinessDeviceDTO; |
| | | import com.sinata.system.domain.query.MwBusinessDeviceQuery; |
| | |
| | | */ |
| | | @Override |
| | | public PageDTO<MwBusinessDeviceVO> pageList(MwBusinessDeviceQuery query) { |
| | | String treeCode = sysDepartmentService.getTreeCode(query.getDepartmentId()); |
| | | String treeCode = sysDepartmentService.getTreeCodeByDepartmentId(query.getDepartmentId()); |
| | | if (StringUtils.isBlank(treeCode)) { |
| | | return PageDTO.empty(0L, 0L); |
| | | } |
| | | Page<MwBusinessDeviceVO> page = baseMapper.pageList(new Page<>(query.getPageCurr(), query.getPageSize()), query, treeCode); |
| | | return PageDTO.of(page); |
| | | } |