|
@ -1,5 +1,7 @@
|
|
|
package com.yihu.jw.hospital.endpoint.patient;
|
|
|
|
|
|
import com.yihu.jw.dict.service.BaseDictJobTitleService;
|
|
|
import com.yihu.jw.entity.base.dict.DictJobTitleDO;
|
|
|
import com.yihu.jw.hospital.prescription.service.PrescriptionService;
|
|
|
import com.yihu.jw.hospital.service.consult.SysDictService;
|
|
|
import com.yihu.jw.im.service.ImService;
|
|
@ -44,6 +46,8 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
private SysDictService sysDictService;
|
|
|
@Autowired
|
|
|
private ImService imService;
|
|
|
@Autowired
|
|
|
private BaseDictJobTitleService baseDictJobTitleService;
|
|
|
|
|
|
|
|
|
|
|
@ -151,4 +155,22 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 获取机构职称信息
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.PatientNoLogin.getJobBySaasId)
|
|
|
@ApiOperation(value = "获取机构职称信息", notes = "基础数据获取")
|
|
|
public Envelop getJobBySaasId(
|
|
|
@ApiParam(name = "saasId", value = "租户ID,当为空的情况下查询所有")
|
|
|
@RequestParam(value = "saasId", required = false) String saasId) {
|
|
|
List<DictJobTitleDO> res= baseDictJobTitleService.getBySaasId(saasId);
|
|
|
if(res != null && res.size() > 0 ){
|
|
|
return success(res);
|
|
|
}else{
|
|
|
return success("无法获取该机构的职称信息!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|