master
zhangcl 2 years ago
parent 1bc8e56fca
commit 592bac7a38

@ -61,6 +61,10 @@ public class AppController extends BaseController
}
/**
*
*/
@ApiOperation("医院列表")
@GetMapping("/hospital/list")
public AjaxResult hospitalList() {
List<THospital> tHospitals = tHospitalService.selectTHospitalList(new THospital());
@ -75,7 +79,7 @@ public class AppController extends BaseController
* @return {@code AjaxResult}
*/
@ApiOperation("医生信息获取")
@GetMapping("/doctorInformation")
@GetMapping("/doctor/info")
public AjaxResult doctorInformation(Long doctorId)
{
TDoctor tDoctor = tDoctorService.selectTDoctorById(doctorId);
@ -89,7 +93,7 @@ public class AppController extends BaseController
* @return {@code AjaxResult}
*/
@ApiOperation("患者预约")
@GetMapping("/patientsToMakeAnAppointment")
@GetMapping("/patient/makeAnAppointment")
public AjaxResult patientsToMakeAnAppointment(AppPatientHospitalDoctor appPatientHospitalDoctor)
{
// 患者预约新增t_record中的一条记录;判断关联表是否存在当前关系
@ -110,7 +114,7 @@ public class AppController extends BaseController
return AjaxResult.success();
}
@PutMapping("updateStatus/{id}")
@PutMapping("/record/ai/finish/{id}")
@Log(title = "修改患者记录至已诊状态")
public AjaxResult updateStatus(@PathVariable("id") Long id){
if(id == null){
@ -123,10 +127,11 @@ public class AppController extends BaseController
return AjaxResult.success("更新状态成功",null);
}
@GetMapping(value = "/configKey/{configKey}")
@GetMapping(value = "/config/ai/refreshtime")
@Log(title = "获取AI结果刷新时间接口")
public AjaxResult getConfigKey(@PathVariable String configKey)
public AjaxResult getConfigKey()
{
String configKey="t.ai.refreshtime";
return AjaxResult.success(configService.selectConfigByKey(configKey));
}
@ -136,7 +141,7 @@ public class AppController extends BaseController
* @return {@code AjaxResult}
*/
@ApiOperation("诊断记录上传")
@PostMapping("/diagnosticRecordsUploaded")
@PostMapping("/record/diagnostic/upload")
public AjaxResult diagnosticRecordsUploaded(TRecord tRecord) {
return AjaxResult.success(tRecordService.updateTRecord(tRecord));
}
@ -148,7 +153,7 @@ public class AppController extends BaseController
* @return {@code AjaxResult}
*/
@ApiOperation("添加患者")
@PostMapping("/addPatient")
@PostMapping("/patient/add")
public AjaxResult addPatient(AppPatientReq tPatient)
{
tPatientService.insertTPatient(tPatient);
@ -171,7 +176,7 @@ public class AppController extends BaseController
* @return {@code AjaxResult}
*/
@ApiOperation("诊断记录列表")
@GetMapping("/diagnosisOfRecordList")
@GetMapping("/record/list")
public AjaxResult diagnosisOfRecordList(AppPatientHospitalDoctor appPatientHospitalDoctor) {
TPatientHospitalDoctor tPatientHospitalDoctor = new TPatientHospitalDoctor();
BeanUtils.copyProperties(appPatientHospitalDoctor, tPatientHospitalDoctor);
@ -186,7 +191,7 @@ public class AppController extends BaseController
* @return {@code AjaxResult}
*/
@ApiOperation("患者诊断记录信息详情")
@GetMapping("/diagnosisOfRecordDetails")
@GetMapping("/record/info")
public AjaxResult patientsWithDiagnosisOfRecordInformationDetails(Long id) {
return AjaxResult.success(tRecordService.selectById(id));
}
@ -199,7 +204,7 @@ public class AppController extends BaseController
* @return {@code AjaxResult}
*/
@ApiOperation("患者已诊列表")
@GetMapping("/patientsDiagnosedList")
@GetMapping("/record/diagnosedList")
public AjaxResult patientsDiagnosedList(TRecordResultReq recordResultReq) {
recordResultReq.setStatus("0");
return AjaxResult.success(tRecordService.selectTRecordListWithoutResult(recordResultReq));
@ -213,7 +218,7 @@ public class AppController extends BaseController
* @return {@code AjaxResult}
*/
@ApiOperation("患者候诊列表")
@GetMapping("/patientsWaitingList")
@GetMapping("/record/waitingList")
public AjaxResult patientsWaitingList(TRecordResultReq recordResultReq) {
recordResultReq.setStatus("2");
return AjaxResult.success(tRecordService.selectTRecordListWithoutResult(recordResultReq));

Loading…
Cancel
Save