|
@@ -1,13 +1,9 @@
|
|
|
package com.diagbot.facade;
|
|
|
|
|
|
import com.diagbot.dto.DoctorInfoDTO;
|
|
|
-import com.diagbot.exception.CommonErrorCode;
|
|
|
-import com.diagbot.exception.CommonException;
|
|
|
import com.diagbot.service.impl.DoctorInfoServiceImpl;
|
|
|
-import com.diagbot.util.ListUtil;
|
|
|
import com.diagbot.vo.DoctorInfoVO;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@@ -24,12 +20,8 @@ public class DoctorInfoFacade extends DoctorInfoServiceImpl {
|
|
|
* @param doctorInfoVo
|
|
|
* @return
|
|
|
*/
|
|
|
- public List<DoctorInfoDTO> getDoctorInfo(@RequestBody DoctorInfoVO doctorInfoVo) {
|
|
|
+ public List<DoctorInfoDTO> getDoctorInfo(DoctorInfoVO doctorInfoVo) {
|
|
|
List<DoctorInfoDTO> doctorInfoDTOList = this.getDoctorInfos(doctorInfoVo.getDoctorCode(),doctorInfoVo.getHosptialCode(),doctorInfoVo.getDeptCode());
|
|
|
- if(ListUtil.isEmpty(doctorInfoDTOList)){
|
|
|
- throw new CommonException(CommonErrorCode.NOT_EXISTS,
|
|
|
- "获取医生信息失败");
|
|
|
- }
|
|
|
return doctorInfoDTOList;
|
|
|
}
|
|
|
}
|