|
@@ -9,7 +9,6 @@ import com.diagbot.exception.CommonException;
|
|
|
import com.diagbot.service.impl.DeptInfoServiceImpl;
|
|
|
import com.diagbot.util.BeanUtil;
|
|
|
import com.diagbot.util.DateUtil;
|
|
|
-import com.diagbot.util.ListUtil;
|
|
|
import com.diagbot.util.UserUtils;
|
|
|
import com.diagbot.vo.AddDeptInfoVO;
|
|
|
import com.diagbot.vo.GetDeptInfoVO;
|
|
@@ -94,10 +93,6 @@ public class DeptInfoFacade extends DeptInfoServiceImpl {
|
|
|
*/
|
|
|
public IPage<DeptInfo> getDeptInfo(GetDeptInfoVO getDeptInfoVO){
|
|
|
IPage iPage = this.getAllDeptInfo(getDeptInfoVO);
|
|
|
- if (ListUtil.isEmpty(iPage.getRecords())){
|
|
|
- throw new CommonException(CommonErrorCode.FAIL,
|
|
|
- "获取科室信息失败");
|
|
|
- }
|
|
|
return iPage;
|
|
|
}
|
|
|
|
|
@@ -107,10 +102,6 @@ public class DeptInfoFacade extends DeptInfoServiceImpl {
|
|
|
*/
|
|
|
public List<DeptInfoDTO> getAllDeptInfo(){
|
|
|
List<DeptInfoDTO> deptInfoList = this.getDeptName();
|
|
|
- if(ListUtil.isEmpty(deptInfoList)){
|
|
|
- throw new CommonException(CommonErrorCode.FAIL,
|
|
|
- "获取科室名称失败");
|
|
|
- }
|
|
|
return deptInfoList;
|
|
|
}
|
|
|
}
|