|
@@ -17,7 +17,9 @@ import com.diagbot.vo.HospitalInfoVO;
|
|
|
import com.diagbot.vo.HospitalSaveVO;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* @author wangfeng
|
|
@@ -83,4 +85,18 @@ public class HospitalInfoFacade extends HospitalInfoServiceImpl {
|
|
|
HospitalInfo hospitalInfo = this.getById(Long.valueOf(hospitalId));
|
|
|
return hospitalInfo;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取所有医院信息列表
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<HospitalInfoDTO> getAllHospitalInfo() {
|
|
|
+ QueryWrapper<HospitalInfo> hospitalInfo = new QueryWrapper<>();
|
|
|
+ hospitalInfo.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
+ List<HospitalInfo> list = list(hospitalInfo);
|
|
|
+ List<HospitalInfoDTO> data = new ArrayList<>();
|
|
|
+ data = BeanUtil.listCopyTo(list, HospitalInfoDTO.class);
|
|
|
+ return data;
|
|
|
+ }
|
|
|
}
|