|
@ -24,12 +24,15 @@ import com.yihu.jw.es.service.StatisticsEsService;
|
|
import com.yihu.jw.hospital.dao.consult.KnowledgeArticleUserDao;
|
|
import com.yihu.jw.hospital.dao.consult.KnowledgeArticleUserDao;
|
|
import com.yihu.jw.hospital.httplog.dao.WlyyHttpLogDao;
|
|
import com.yihu.jw.hospital.httplog.dao.WlyyHttpLogDao;
|
|
import com.yihu.jw.hospital.httplog.service.WlyyHttpLogService;
|
|
import com.yihu.jw.hospital.httplog.service.WlyyHttpLogService;
|
|
|
|
import com.yihu.jw.hospital.message.service.BaseBannerDoctorService;
|
|
|
|
import com.yihu.jw.hospital.message.service.BaseUserMsgService;
|
|
import com.yihu.jw.hospital.prescription.dao.*;
|
|
import com.yihu.jw.hospital.prescription.dao.*;
|
|
import com.yihu.jw.hospital.prescription.service.*;
|
|
import com.yihu.jw.hospital.prescription.service.*;
|
|
import com.yihu.jw.hospital.prescription.service.entrance.EntranceService;
|
|
import com.yihu.jw.hospital.prescription.service.entrance.EntranceService;
|
|
import com.yihu.jw.hospital.prescription.service.entrance.YkyyEntranceService;
|
|
import com.yihu.jw.hospital.prescription.service.entrance.YkyyEntranceService;
|
|
import com.yihu.jw.hospital.service.SystemMessage.HospitalSystemMessageService;
|
|
import com.yihu.jw.hospital.service.SystemMessage.HospitalSystemMessageService;
|
|
import com.yihu.jw.hospital.service.consult.KnowledgeArticleService;
|
|
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.QrcodeService;
|
|
import com.yihu.jw.hospital.service.consult.SysDictService;
|
|
import com.yihu.jw.hospital.service.consult.SysDictService;
|
|
import com.yihu.jw.im.service.ImService;
|
|
import com.yihu.jw.im.service.ImService;
|
|
@ -96,13 +99,14 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
private static final Logger logger = LoggerFactory.getLogger(PatientNoLoginEndPoint.class);
|
|
private static final Logger logger = LoggerFactory.getLogger(PatientNoLoginEndPoint.class);
|
|
@Autowired
|
|
@Autowired
|
|
private BusinessOrderService businessOrderService;
|
|
private BusinessOrderService businessOrderService;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private BaseDoctorInfoService baseDoctorInfoService;
|
|
@Autowired
|
|
@Autowired
|
|
private PrescriptionExpressageService sfexpressService;
|
|
private PrescriptionExpressageService sfexpressService;
|
|
@Autowired
|
|
@Autowired
|
|
private QrcodeService qrcodeService;
|
|
private QrcodeService qrcodeService;
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private BaseUserMsgService baseUserMsgService;
|
|
@Autowired
|
|
@Autowired
|
|
private PrescriptionService prescriptionService;
|
|
private PrescriptionService prescriptionService;
|
|
@Autowired
|
|
@Autowired
|
|
@ -172,8 +176,11 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private YkyyPrescriptionService ykyyPrescriptionService;
|
|
private YkyyPrescriptionService ykyyPrescriptionService;
|
|
|
|
@Autowired
|
|
|
|
private KnowledgeCategoryService knowledgeCategoryService;
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private BaseBannerDoctorService baseBannerDoctorService;
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.PatientNoLogin.findDoctorByHospitalAndDiseaseAndDept)
|
|
@GetMapping(value = BaseHospitalRequestMapping.PatientNoLogin.findDoctorByHospitalAndDiseaseAndDept)
|
|
@ -1264,4 +1271,139 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
return success(prescriptionService.findSysByDictCode(dictCode));
|
|
return success(prescriptionService.findSysByDictCode(dictCode));
|
|
}
|
|
}
|
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.PatientIM.getDoctorConsultCount)
|
|
|
|
@ApiOperation(value = "医生端:查询会话视频邀请状态", notes = "医生端:查询会话视频邀请状态")
|
|
|
|
public Envelop getDoctorConsultCount(@ApiParam(name = "doctorids", value = "会话ID")
|
|
|
|
@RequestParam(value = "doctorids",required = true) String doctorids)throws Exception {
|
|
|
|
return success("查询成功",imService.getDoctorConsultCount(doctorids));
|
|
|
|
|
|
|
|
}
|
|
|
|
@ApiOperation("医生评论展示")
|
|
|
|
@PostMapping(value= BaseHospitalRequestMapping.UserMessage.showMessage)
|
|
|
|
public Envelop showMessage(@ApiParam(name = "doctor", value = "doctor", required = false)
|
|
|
|
@RequestParam(value = "doctor", required = false)String doctor,
|
|
|
|
@ApiParam(name = "showAll", value = "showAll", required = false)
|
|
|
|
@RequestParam(value = "showAll", required = false)String showAll,
|
|
|
|
@ApiParam(name = "showAllType", value = "showAllType", required = false)
|
|
|
|
@RequestParam(value = "showAllType", required = false)String showAllType,
|
|
|
|
@ApiParam(name = "beginTime", value = "beginTime", required = false)
|
|
|
|
@RequestParam(value = "beginTime", required = false)String beginTime,
|
|
|
|
@ApiParam(name = "endTime", value = "endTime", required = false)
|
|
|
|
@RequestParam(value = "endTime", required = false)String endTime,
|
|
|
|
@ApiParam(name = "page", value = "第几页,从1开始", required = true, defaultValue = "1")
|
|
|
|
@RequestParam(value = "page", required = true,defaultValue = "1")Integer page,
|
|
|
|
@ApiParam(name = "pageSize", value = "每页分页大小", required = true, defaultValue = "10")
|
|
|
|
@RequestParam(value = "pageSize", required = true,defaultValue = "10")Integer pageSize){
|
|
|
|
return baseUserMsgService.getMessage(doctor,showAll,showAllType,beginTime,endTime,page,pageSize);
|
|
|
|
}
|
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.KnowledgeArticle.searchKnowledgePageList)
|
|
|
|
@ApiOperation(value = "获取文章列表")
|
|
|
|
public Envelop searchKnowledgePageList(
|
|
|
|
// @ApiParam(name = "category_first", value = "1级分类编码")
|
|
|
|
// @RequestParam(value = "category_first", required = false) String category_first,
|
|
|
|
// @ApiParam(name = "category_secend", value = "2级分类编码")
|
|
|
|
// @RequestParam(value = "category_second", required = false) String category_second,
|
|
|
|
// @ApiParam(name = "keyword", value = "关键字")
|
|
|
|
// @RequestParam(value = "keyword", required = false) String keyword,
|
|
|
|
// @ApiParam(name = "status", value = "审核状态:0未审核,1已审核")
|
|
|
|
// @RequestParam(value = "status", required = false) String status,
|
|
|
|
// @ApiParam(name = "start", value = "开始时间")
|
|
|
|
// @RequestParam(value = "start", required = false) String start,
|
|
|
|
// @ApiParam(name = "end", value = "结束时间")
|
|
|
|
// @RequestParam(value = "end", required = false) String end,
|
|
|
|
@ApiParam(name = "fields", value = "返回的字段,为空返回全部字段")
|
|
|
|
@RequestParam(value = "fields", required = false) String fields,
|
|
|
|
@ApiParam(name = "filters", value = "过滤器,为空检索所有条件")
|
|
|
|
@RequestParam(value = "filters", required = false) String filters,
|
|
|
|
@ApiParam(name = "sorts", value = "排序,规则参见说明文档")
|
|
|
|
@RequestParam(value = "sorts", required = false) String sorts,
|
|
|
|
@ApiParam(name = "page", value = "第几页,从1开始", required = true, defaultValue = "1")
|
|
|
|
@RequestParam(value = "page", required = true,defaultValue = "1")Integer page,
|
|
|
|
@ApiParam(name = "pageSize", value = "每页分页大小", required = true, defaultValue = "10")
|
|
|
|
@RequestParam(value = "pageSize", required = true,defaultValue = "10")Integer pageSize)throws Exception{
|
|
|
|
if(org.apache.commons.lang.StringUtils.isBlank(filters)){
|
|
|
|
filters=filters+"del=1";
|
|
|
|
}else{
|
|
|
|
filters=filters+";del=1";
|
|
|
|
}
|
|
|
|
|
|
|
|
List<KnowledgeArticleDO> list = knowledgeArticleService.search(fields,filters,sorts,page,pageSize);
|
|
|
|
for (KnowledgeArticleDO knowledgeArticleDO:list){
|
|
|
|
List<BaseDoctorHospitalDO> doctorHospitalDOS = doctorHospitalDao.findByDoctorCode(knowledgeArticleDO.getCreateUser());
|
|
|
|
if (doctorHospitalDOS!=null&&doctorHospitalDOS.size()!=0){
|
|
|
|
BaseDoctorHospitalDO doctorHospitalDO = doctorHospitalDOS.get(0);
|
|
|
|
knowledgeArticleDO.setDeptName(doctorHospitalDO.getDeptName());
|
|
|
|
knowledgeArticleDO.setHospitalName(doctorHospitalDO.getOrgName());
|
|
|
|
}
|
|
|
|
KnowledgeArticleUserDO knowledgeArticleUserDO = knowledgeArticleUserDao.findByrelationCodeAndUserAndDel(knowledgeArticleDO.getId(),getUID());
|
|
|
|
if (knowledgeArticleUserDO!=null){
|
|
|
|
if (knowledgeArticleUserDO.getUsed()!=null&&knowledgeArticleUserDO.getUsed()==1){
|
|
|
|
knowledgeArticleDO.setIsUsed(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<KnowledgeArticleDO> totals = knowledgeArticleService.search(fields,filters,sorts);
|
|
|
|
|
|
|
|
JSONObject result = new JSONObject();
|
|
|
|
result.put("total",totals.size());
|
|
|
|
result.put("detailModelList",list);
|
|
|
|
|
|
|
|
return success(result);
|
|
|
|
}
|
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.Prescription.popularityIncrease)
|
|
|
|
@ApiOperation(value = "医生人气值增长")
|
|
|
|
public Envelop popularityIncrease (
|
|
|
|
@ApiParam(name = "doctor", value = "医生id")
|
|
|
|
@RequestParam(value = "doctor", required = false) String doctor) throws Exception {
|
|
|
|
BaseDoctorDO baseDoctorDO=baseDoctorInfoService.popularityIncrease(doctor);
|
|
|
|
return success("操作成功",baseDoctorDO);
|
|
|
|
}
|
|
|
|
@ApiOperation("查询赠送锦旗")
|
|
|
|
@PostMapping(value= BaseHospitalRequestMapping.DoctorBanner.getBanner)
|
|
|
|
public Envelop getBanners(@ApiParam(name = "doctor", value = "doctor", required = false)
|
|
|
|
@RequestParam(value = "doctor", required = false)String doctor){
|
|
|
|
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));
|
|
|
|
}
|
|
}
|
|
}
|