|
@ -32,6 +32,7 @@ import com.yihu.jw.hospital.prescription.service.entrance.EntranceService;
|
|
|
import com.yihu.jw.hospital.prescription.service.entrance.YkyyEntranceService;
|
|
|
import com.yihu.jw.hospital.service.SystemMessage.HospitalSystemMessageService;
|
|
|
import com.yihu.jw.hospital.service.consult.KnowledgeArticleService;
|
|
|
import com.yihu.jw.hospital.service.consult.KnowledgeCategoryService;
|
|
|
import com.yihu.jw.hospital.service.consult.QrcodeService;
|
|
|
import com.yihu.jw.hospital.service.consult.SysDictService;
|
|
|
import com.yihu.jw.im.service.ImService;
|
|
@ -175,6 +176,8 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
@Autowired
|
|
|
private YkyyPrescriptionService ykyyPrescriptionService;
|
|
|
@Autowired
|
|
|
private KnowledgeCategoryService knowledgeCategoryService;
|
|
|
|
|
|
@Autowired
|
|
|
private BaseBannerDoctorService baseBannerDoctorService;
|
|
@ -1362,5 +1365,45 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
JSONObject jsonObject = baseBannerDoctorService.getDoctorBanners(doctor);
|
|
|
return success(jsonObject);
|
|
|
}
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.Prescription.findDeptByHospital)
|
|
|
@ApiOperation(value = "查询机构底下部门", notes = "查询机构底下部门")
|
|
|
public ListEnvelop findDeptByHospital(@ApiParam(name = "orgCode", value = "机构code")
|
|
|
@RequestParam(value = "orgCode", required = true)String orgCode,
|
|
|
@ApiParam(name = "dept", value = "需要置顶部门")
|
|
|
@RequestParam(value = "dept", required = false)String dept,
|
|
|
@ApiParam(name = "consultDeptFlag", value = "1为查询开通服务部门")
|
|
|
@RequestParam(value = "consultDeptFlag", required = false)String consultDeptFlag) {
|
|
|
return success(prescriptionService.findDeptByHospital(orgCode,dept,consultDeptFlag));
|
|
|
}
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.KnowledgeArticle.getArticleGroup)
|
|
|
@ApiOperation(value = "查询分类")
|
|
|
public MixEnvelop getGroup(){
|
|
|
MixEnvelop envelop = knowledgeCategoryService.findAllGroup();
|
|
|
return envelop;
|
|
|
|
|
|
}
|
|
|
@PostMapping(value = BaseHospitalRequestMapping.KnowledgeArticle.findArticleByCategoryAndName)
|
|
|
@ApiOperation(value = "查询文章")
|
|
|
public MixEnvelop findArticleByCategoryAndName(@ApiParam(name = "categoryFirst", value = "一级分类code")
|
|
|
@RequestParam(value = "categoryFirst",required = false)String categoryFirst,
|
|
|
@ApiParam(name = "categorySecond", value = "二级分类code")
|
|
|
@RequestParam(value = "categorySecond",required = false)String categorySecond,
|
|
|
@ApiParam(name = "keyWords", value = "关键词")
|
|
|
@RequestParam(value = "keyWords",required = false)String keyWords,
|
|
|
@ApiParam(name = "page", value = "当前页")
|
|
|
@RequestParam(value = "page",required = false)Integer page,
|
|
|
@ApiParam(name = "pageSize", value = "分页大小)")
|
|
|
@RequestParam(value = "pageSize",required = false)Integer pageSize)throws Exception {
|
|
|
|
|
|
MixEnvelop mixEnvelop=knowledgeArticleService.findArticleByCategoryAndName(categoryFirst,categorySecond,keyWords,page,pageSize);
|
|
|
return mixEnvelop;
|
|
|
}
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.Prescription.findAllHospital)
|
|
|
@ApiOperation(value = "查询所有机构", notes = "查询所有机构")
|
|
|
public ListEnvelop findAllHospital(@ApiParam(name = "level", value = "医院等级")
|
|
|
@RequestParam(value = "level", required = false)Integer level,
|
|
|
@ApiParam(name = "keyWord", value = "名字关键字")
|
|
|
@RequestParam(value = "keyWord", required = false)String keyWord) {
|
|
|
return success(prescriptionService.findAllHospital(level,keyWord));
|
|
|
}
|
|
|
}
|