接口记录日志

master
gongzhenkun 2 years ago
parent a4aea9e70c
commit 584035beae

@ -6,7 +6,6 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.config.RuoYiConfig; import com.ruoyi.common.config.RuoYiConfig;
import com.ruoyi.common.constant.Constants; import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
@ -103,6 +102,7 @@ public class AppController extends BaseController
*/ */
@ApiOperation("医院列表") @ApiOperation("医院列表")
@GetMapping("/hospital/list") @GetMapping("/hospital/list")
@Log(title = "查询医院列表", businessType = BusinessType.OTHER)
public AjaxResult hospitalList() public AjaxResult hospitalList()
{ {
List<THospital> tHospitals = tHospitalService.selectTHospitalList(new THospital()); List<THospital> tHospitals = tHospitalService.selectTHospitalList(new THospital());
@ -118,6 +118,7 @@ public class AppController extends BaseController
*/ */
@ApiOperation("医生信息获取") @ApiOperation("医生信息获取")
@GetMapping("/doctor/info") @GetMapping("/doctor/info")
@Log(title = "获取医生信息", businessType = BusinessType.OTHER)
public AjaxResult doctorInformation(Long doctorId) public AjaxResult doctorInformation(Long doctorId)
{ {
return AjaxResult.success(tDoctorService.selectAppDoctorDetailById(doctorId)); return AjaxResult.success(tDoctorService.selectAppDoctorDetailById(doctorId));
@ -296,6 +297,7 @@ public class AppController extends BaseController
@ApiOperation("获取患者详细信息") @ApiOperation("获取患者详细信息")
@GetMapping("/patient/info/{id}") @GetMapping("/patient/info/{id}")
@Log(title = "获取患者详细信息", businessType = BusinessType.OTHER)
public AjaxResult getPatientInfo2(@PathVariable("id") Long id) public AjaxResult getPatientInfo2(@PathVariable("id") Long id)
{ {
@ -311,12 +313,16 @@ public class AppController extends BaseController
*/ */
@ApiOperation("患者诊断记录历史列表") @ApiOperation("患者诊断记录历史列表")
@GetMapping("/record/list/{patientId}") @GetMapping("/record/list/{patientId}")
@Log(title = "患者诊断记录历史列表", businessType = BusinessType.OTHER)
public AjaxResult diagnosisOfRecordList(@PathVariable("patientId") Long patientId) public AjaxResult diagnosisOfRecordList(@PathVariable("patientId") Long patientId)
{ {
TPatientHospitalDoctor tPatientHospitalDoctor = new TPatientHospitalDoctor(); TPatientHospitalDoctor tPatientHospitalDoctor = new TPatientHospitalDoctor();
tPatientHospitalDoctor.setPatientId(patientId); tPatientHospitalDoctor.setPatientId(patientId);
List<TRecordResp> tRecords = tRecordService.queryRecordListByPHDids(tPatientHospitalDoctor); List<TRecordResp> tRecords = tRecordService.queryRecordListByPHDids(tPatientHospitalDoctor);
List<TRecordResp> tRecordResps = tRecords.stream().filter(record -> "1".equals(record.getStatus())).collect(Collectors.toList()); List<TRecordResp> tRecordResps = tRecords.stream().filter(record -> "1".equals(record.getStatus())).collect(Collectors.toList());
if (tRecordResps.isEmpty()) {
return AjaxResult.success(new ArrayList<TRecordResp>());
}
List<TRecordResp> respList = tRecordResps.stream().sorted(Comparator.comparing(TRecordResp::getUploadTime).reversed()).collect(Collectors.toList()); List<TRecordResp> respList = tRecordResps.stream().sorted(Comparator.comparing(TRecordResp::getUploadTime).reversed()).collect(Collectors.toList());
return AjaxResult.success(respList); return AjaxResult.success(respList);
} }
@ -329,6 +335,7 @@ public class AppController extends BaseController
*/ */
@ApiOperation("患者诊断记录信息详情") @ApiOperation("患者诊断记录信息详情")
@GetMapping("/record/info/{id}") @GetMapping("/record/info/{id}")
@Log(title = "患者诊断记录信息详情", businessType = BusinessType.OTHER)
public AjaxResult patientsWithDiagnosisOfRecordInformationDetails(@PathVariable("id") Long id) public AjaxResult patientsWithDiagnosisOfRecordInformationDetails(@PathVariable("id") Long id)
{ {
Map<String,Object> data = new HashMap<>(); Map<String,Object> data = new HashMap<>();
@ -348,6 +355,7 @@ public class AppController extends BaseController
*/ */
@ApiOperation("患者已诊列表") @ApiOperation("患者已诊列表")
@GetMapping("/record/diagnosedList") @GetMapping("/record/diagnosedList")
@Log(title = "患者已诊列表", businessType = BusinessType.OTHER)
public TableDataInfo patientsDiagnosedList(TRecordResultReq recordResultReq) public TableDataInfo patientsDiagnosedList(TRecordResultReq recordResultReq)
{ {
// recordResultReq.setStatus("1"); // recordResultReq.setStatus("1");
@ -357,6 +365,7 @@ public class AppController extends BaseController
@ApiOperation("首页患者列表") @ApiOperation("首页患者列表")
@GetMapping("/home/patient/list") @GetMapping("/home/patient/list")
@Log(title = "查询首页患者列表", businessType = BusinessType.OTHER)
public TableDataInfo queryHomePatientsList(TRecordResultReq recordResultReq) public TableDataInfo queryHomePatientsList(TRecordResultReq recordResultReq)
{ {
// recordResultReq.setStatus("1"); // recordResultReq.setStatus("1");
@ -373,6 +382,7 @@ public class AppController extends BaseController
*/ */
@ApiOperation("患者候诊列表") @ApiOperation("患者候诊列表")
@GetMapping("/record/waitingList") @GetMapping("/record/waitingList")
@Log(title = "查询患者候诊列表", businessType = BusinessType.OTHER)
public TableDataInfo patientsWaitingList(TRecordResultReq recordResultReq) public TableDataInfo patientsWaitingList(TRecordResultReq recordResultReq)
{ {
// recordResultReq.setStatus("0"); // recordResultReq.setStatus("0");
@ -382,6 +392,7 @@ public class AppController extends BaseController
@ApiOperation("小程序获取患者详细信息") @ApiOperation("小程序获取患者详细信息")
@GetMapping("/patient/info") @GetMapping("/patient/info")
@Log(title = "小程序获取患者详细信息", businessType = BusinessType.OTHER)
public AjaxResult getPatientInfo() public AjaxResult getPatientInfo()
{ {
return AjaxResult.success(tPatientService.selectTPatientById(getUserId())); return AjaxResult.success(tPatientService.selectTPatientById(getUserId()));
@ -389,6 +400,7 @@ public class AppController extends BaseController
@GetMapping("/patient/record/historyData") @GetMapping("/patient/record/historyData")
@ApiOperation("查询患者历史数据图表") @ApiOperation("查询患者历史数据图表")
@Log(title = "查询患者历史数据图表", businessType = BusinessType.OTHER)
public AjaxResult getHistoryRecordList(AppRecordReq appRecordReq) public AjaxResult getHistoryRecordList(AppRecordReq appRecordReq)
{ {
TRecord tRecord = new TRecord(); TRecord tRecord = new TRecord();
@ -398,6 +410,7 @@ public class AppController extends BaseController
@PostMapping("/ai/{recordId}") @PostMapping("/ai/{recordId}")
@ApiOperation("ai接口") @ApiOperation("ai接口")
@Log(title = "调用ai接口", businessType = BusinessType.OTHER)
public AjaxResult aiPost(@PathVariable("recordId") Long recordId, @RequestBody AiPostReq aiPostReq) public AjaxResult aiPost(@PathVariable("recordId") Long recordId, @RequestBody AiPostReq aiPostReq)
{ {
//删除同一次预约调用多次ai接口的图片数据 //删除同一次预约调用多次ai接口的图片数据
@ -451,6 +464,7 @@ public class AppController extends BaseController
@GetMapping("/image/{recordId}") @GetMapping("/image/{recordId}")
@ApiOperation("获取图片接口") @ApiOperation("获取图片接口")
@Log(title = "获取图片接口", businessType = BusinessType.OTHER)
public AjaxResult getAiImage(@PathVariable("recordId") Long recordId){ public AjaxResult getAiImage(@PathVariable("recordId") Long recordId){
if(recordId == null){ if(recordId == null){
return AjaxResult.error("未获取到参数"); return AjaxResult.error("未获取到参数");

@ -31,6 +31,7 @@ public class MpController extends BaseController {
@ApiOperation("患者诊断记录") @ApiOperation("患者诊断记录")
@GetMapping("/patient/history/record") @GetMapping("/patient/history/record")
@Log(title = "获取患者诊断记录", businessType = BusinessType.OTHER)
public AjaxResult queryPatientHistoryRecord() public AjaxResult queryPatientHistoryRecord()
{ {
TRecord tRecord = new TRecord(); TRecord tRecord = new TRecord();

@ -1,6 +1,8 @@
package com.ruoyi.web.controller.pc; package com.ruoyi.web.controller.pc;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.resp.PlatformDayPlanResp; import com.ruoyi.system.domain.resp.PlatformDayPlanResp;
import com.ruoyi.system.domain.resp.WeekMonthPersonCountResp; import com.ruoyi.system.domain.resp.WeekMonthPersonCountResp;
import com.ruoyi.system.service.impl.PlatformService; import com.ruoyi.system.service.impl.PlatformService;
@ -29,6 +31,7 @@ public class PlatformController {
@ApiOperation("工作台-设备统计") @ApiOperation("工作台-设备统计")
@PostMapping("/equCount") @PostMapping("/equCount")
@Log(title = "工作台-设备统计", businessType = BusinessType.OTHER)
public AjaxResult equCount( public AjaxResult equCount(
@ApiParam(name = "hospitalId",value = "医院id",required = false) @RequestParam(required = false) Long hospitalId, @ApiParam(name = "hospitalId",value = "医院id",required = false) @RequestParam(required = false) Long hospitalId,
@ApiParam(name = "doctorId",value = "医生id",required = false) @RequestParam(required = false) Long doctorId){ @ApiParam(name = "doctorId",value = "医生id",required = false) @RequestParam(required = false) Long doctorId){
@ -38,6 +41,7 @@ public class PlatformController {
@ApiOperation("工作台-今日就诊计划") @ApiOperation("工作台-今日就诊计划")
@PostMapping("/dayPlan") @PostMapping("/dayPlan")
@Log(title = "工作台-今日就诊计划", businessType = BusinessType.OTHER)
public AjaxResult dayPlan( public AjaxResult dayPlan(
@ApiParam(name = "hospitalId",value = "医院id",required = false) @RequestParam(required = false) Long hospitalId, @ApiParam(name = "hospitalId",value = "医院id",required = false) @RequestParam(required = false) Long hospitalId,
@ApiParam(name = "doctorId",value = "医生id",required = false) @RequestParam(required = false) Long doctorId){ @ApiParam(name = "doctorId",value = "医生id",required = false) @RequestParam(required = false) Long doctorId){
@ -47,6 +51,7 @@ public class PlatformController {
@ApiOperation("工作台-就诊人数统计") @ApiOperation("工作台-就诊人数统计")
@PostMapping("/weekMonthPersonCount") @PostMapping("/weekMonthPersonCount")
@Log(title = "工作台-就诊人数统计", businessType = BusinessType.OTHER)
public AjaxResult weekMonthPersonCount( public AjaxResult weekMonthPersonCount(
@ApiParam(name = "hospitalId",value = "医院id",required = false) @RequestParam(required = false) Long hospitalId, @ApiParam(name = "hospitalId",value = "医院id",required = false) @RequestParam(required = false) Long hospitalId,
@ApiParam(name = "doctorId",value = "医生id",required = false) @RequestParam(required = false) Long doctorId, @ApiParam(name = "doctorId",value = "医生id",required = false) @RequestParam(required = false) Long doctorId,
@ -57,6 +62,7 @@ public class PlatformController {
@ApiOperation("工作台-患者年龄统计") @ApiOperation("工作台-患者年龄统计")
@PostMapping("/ageCount") @PostMapping("/ageCount")
@Log(title = "工作台-患者年龄统计", businessType = BusinessType.OTHER)
public AjaxResult ageCount( public AjaxResult ageCount(
@ApiParam(name = "hospitalId",value = "医院id",required = false) @RequestParam(required = false) Long hospitalId, @ApiParam(name = "hospitalId",value = "医院id",required = false) @RequestParam(required = false) Long hospitalId,
@ApiParam(name = "doctorId",value = "医生id",required = false) @RequestParam(required = false) Long doctorId){ @ApiParam(name = "doctorId",value = "医生id",required = false) @RequestParam(required = false) Long doctorId){
@ -66,6 +72,7 @@ public class PlatformController {
@ApiOperation("工作台-就诊时段统计") @ApiOperation("工作台-就诊时段统计")
@PostMapping("/weekMonthTimeCount") @PostMapping("/weekMonthTimeCount")
@Log(title = "工作台-就诊时段统计", businessType = BusinessType.OTHER)
public AjaxResult weekMonthTimeCount( public AjaxResult weekMonthTimeCount(
@ApiParam(name = "hospitalId",value = "医院id",required = false) @RequestParam(required = false) Long hospitalId, @ApiParam(name = "hospitalId",value = "医院id",required = false) @RequestParam(required = false) Long hospitalId,
@ApiParam(name = "doctorId",value = "医生id",required = false) @RequestParam(required = false) Long doctorId, @ApiParam(name = "doctorId",value = "医生id",required = false) @RequestParam(required = false) Long doctorId,

@ -47,6 +47,7 @@ public class TDoctorController extends BaseController
*/ */
@ApiOperation("查询医生信息列表") @ApiOperation("查询医生信息列表")
@PostMapping("/queryByPage") @PostMapping("/queryByPage")
@Log(title = "PC查询医生信息列表", businessType = BusinessType.OTHER)
public TableDataInfo queryByPage(@RequestBody @Validated PcTDoctorQueryByPageReq pcTDoctorQueryByPageReq) public TableDataInfo queryByPage(@RequestBody @Validated PcTDoctorQueryByPageReq pcTDoctorQueryByPageReq)
{ {
startPage(); startPage();
@ -58,7 +59,7 @@ public class TDoctorController extends BaseController
* *
*/ */
@ApiOperation("导出医生信息列表") @ApiOperation("导出医生信息列表")
@Log(title = "医生信息", businessType = BusinessType.EXPORT) @Log(title = "导出医生信息列表", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, @RequestBody @Validated PcTDoctorQueryByPageReq pcTDoctorQueryByPageReq) public void export(HttpServletResponse response, @RequestBody @Validated PcTDoctorQueryByPageReq pcTDoctorQueryByPageReq)
{ {
@ -74,6 +75,7 @@ public class TDoctorController extends BaseController
*/ */
@ApiOperation("获取医生信息详细信息") @ApiOperation("获取医生信息详细信息")
@GetMapping(value = "/queryById/{id}") @GetMapping(value = "/queryById/{id}")
@Log(title = "PC获取医生信息详细信息", businessType = BusinessType.OTHER)
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id)
{ {
return AjaxResult.success(tDoctorService.selectTDoctorById(id)); return AjaxResult.success(tDoctorService.selectTDoctorById(id));

@ -43,6 +43,7 @@ public class THospitalController extends BaseController
*/ */
@ApiOperation("查询医院信息列表") @ApiOperation("查询医院信息列表")
@PostMapping("/list") @PostMapping("/list")
@Log(title = "查询医院信息列表", businessType = BusinessType.OTHER)
public TableDataInfo list(@RequestBody THospital tHospital) public TableDataInfo list(@RequestBody THospital tHospital)
{ {
startPage(); startPage();
@ -67,6 +68,7 @@ public class THospitalController extends BaseController
*/ */
@ApiOperation("获取医院信息详细信息") @ApiOperation("获取医院信息详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
@Log(title = "获取医院信息详细信息", businessType = BusinessType.OTHER)
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id)
{ {
return AjaxResult.success(tHospitalService.selectTHospitalById(id)); return AjaxResult.success(tHospitalService.selectTHospitalById(id));
@ -110,6 +112,7 @@ public class THospitalController extends BaseController
*/ */
@ApiOperation("获取医院管理员下拉接口") @ApiOperation("获取医院管理员下拉接口")
@GetMapping(value = "/getHosptialAdminList") @GetMapping(value = "/getHosptialAdminList")
@Log(title = "获取医院管理员下拉接口", businessType = BusinessType.OTHER)
public AjaxResult getHosptialAdminList() public AjaxResult getHosptialAdminList()
{ {
return AjaxResult.success(tHospitalService.getHosptialAdminList()); return AjaxResult.success(tHospitalService.getHosptialAdminList());

@ -39,6 +39,7 @@ public class TImageController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:image:list')") @PreAuthorize("@ss.hasPermi('system:image:list')")
@GetMapping("/list") @GetMapping("/list")
@Log(title = "查询图片列表", businessType = BusinessType.OTHER)
public TableDataInfo list(TImage tImage) public TableDataInfo list(TImage tImage)
{ {
startPage(); startPage();
@ -50,7 +51,7 @@ public class TImageController extends BaseController
* *
*/ */
@PreAuthorize("@ss.hasPermi('system:image:export')") @PreAuthorize("@ss.hasPermi('system:image:export')")
@Log(title = "图片", businessType = BusinessType.EXPORT) @Log(title = "导出图片列表", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TImage tImage) public void export(HttpServletResponse response, TImage tImage)
{ {
@ -64,6 +65,7 @@ public class TImageController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:image:query')") @PreAuthorize("@ss.hasPermi('system:image:query')")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
@Log(title = "获取图片详细信息", businessType = BusinessType.OTHER)
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id)
{ {
return AjaxResult.success(tImageService.selectTImageById(id)); return AjaxResult.success(tImageService.selectTImageById(id));
@ -73,7 +75,7 @@ public class TImageController extends BaseController
* *
*/ */
@PreAuthorize("@ss.hasPermi('system:image:add')") @PreAuthorize("@ss.hasPermi('system:image:add')")
@Log(title = "图片", businessType = BusinessType.INSERT) @Log(title = "新增图片", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TImage tImage) public AjaxResult add(@RequestBody TImage tImage)
{ {
@ -84,7 +86,7 @@ public class TImageController extends BaseController
* *
*/ */
@PreAuthorize("@ss.hasPermi('system:image:edit')") @PreAuthorize("@ss.hasPermi('system:image:edit')")
@Log(title = "图片", businessType = BusinessType.UPDATE) @Log(title = "修改图片", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TImage tImage) public AjaxResult edit(@RequestBody TImage tImage)
{ {
@ -95,7 +97,7 @@ public class TImageController extends BaseController
* *
*/ */
@PreAuthorize("@ss.hasPermi('system:image:remove')") @PreAuthorize("@ss.hasPermi('system:image:remove')")
@Log(title = "图片", businessType = BusinessType.DELETE) @Log(title = "删除图片", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids)
{ {

@ -47,6 +47,7 @@ public class TPatientController extends BaseController
*/ */
@ApiOperation("查询患者信息列表") @ApiOperation("查询患者信息列表")
@PostMapping("/queryByPage") @PostMapping("/queryByPage")
@Log(title = "查询患者信息列表", businessType = BusinessType.OTHER)
public TableDataInfo queryByPage(@RequestBody @Validated PcTPatintQueryByPageReq pcTPatintQueryByPageReq) public TableDataInfo queryByPage(@RequestBody @Validated PcTPatintQueryByPageReq pcTPatintQueryByPageReq)
{ {
startPage(); startPage();
@ -74,6 +75,7 @@ public class TPatientController extends BaseController
*/ */
@ApiOperation("获取患者信息详细信息") @ApiOperation("获取患者信息详细信息")
@GetMapping(value = "/queryById/{id}") @GetMapping(value = "/queryById/{id}")
@Log(title = "获取患者信息详细信息", businessType = BusinessType.OTHER)
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id)
{ {
return AjaxResult.success(tPatientService.selectTPatientById(id)); return AjaxResult.success(tPatientService.selectTPatientById(id));
@ -83,7 +85,7 @@ public class TPatientController extends BaseController
* *
*/ */
@ApiOperation("修改患者信息") @ApiOperation("修改患者信息")
@Log(title = "患者信息", businessType = BusinessType.UPDATE) @Log(title = "修改患者信息", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TPatient tPatient) public AjaxResult edit(@RequestBody TPatient tPatient)
{ {
@ -94,7 +96,7 @@ public class TPatientController extends BaseController
* *
*/ */
@ApiOperation("删除患者信息") @ApiOperation("删除患者信息")
@Log(title = "患者信息", businessType = BusinessType.DELETE) @Log(title = "删除患者信息", businessType = BusinessType.DELETE)
@DeleteMapping("/deleteById/{id}") @DeleteMapping("/deleteById/{id}")
public AjaxResult remove(@PathVariable("id") Long id) public AjaxResult remove(@PathVariable("id") Long id)
{ {

@ -39,6 +39,7 @@ public class TPatientHospitalDoctorController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:doctor:list')") @PreAuthorize("@ss.hasPermi('system:doctor:list')")
@GetMapping("/list") @GetMapping("/list")
@Log(title = "查询功能表列表", businessType = BusinessType.OTHER)
public TableDataInfo list(TPatientHospitalDoctor tPatientHospitalDoctor) public TableDataInfo list(TPatientHospitalDoctor tPatientHospitalDoctor)
{ {
startPage(); startPage();
@ -50,7 +51,7 @@ public class TPatientHospitalDoctorController extends BaseController
* *
*/ */
@PreAuthorize("@ss.hasPermi('system:doctor:export')") @PreAuthorize("@ss.hasPermi('system:doctor:export')")
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) @Log(title = "导出功能表列表", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TPatientHospitalDoctor tPatientHospitalDoctor) public void export(HttpServletResponse response, TPatientHospitalDoctor tPatientHospitalDoctor)
{ {
@ -64,6 +65,7 @@ public class TPatientHospitalDoctorController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:doctor:query')") @PreAuthorize("@ss.hasPermi('system:doctor:query')")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
@Log(title = "获取功能表详细信息", businessType = BusinessType.EXPORT)
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id)
{ {
return AjaxResult.success(tPatientHospitalDoctorService.selectTPatientHospitalDoctorById(id)); return AjaxResult.success(tPatientHospitalDoctorService.selectTPatientHospitalDoctorById(id));
@ -73,7 +75,7 @@ public class TPatientHospitalDoctorController extends BaseController
* *
*/ */
@PreAuthorize("@ss.hasPermi('system:doctor:add')") @PreAuthorize("@ss.hasPermi('system:doctor:add')")
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) @Log(title = "新增功能表", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TPatientHospitalDoctor tPatientHospitalDoctor) public AjaxResult add(@RequestBody TPatientHospitalDoctor tPatientHospitalDoctor)
{ {
@ -84,7 +86,7 @@ public class TPatientHospitalDoctorController extends BaseController
* *
*/ */
@PreAuthorize("@ss.hasPermi('system:doctor:edit')") @PreAuthorize("@ss.hasPermi('system:doctor:edit')")
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) @Log(title = "修改功能表", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TPatientHospitalDoctor tPatientHospitalDoctor) public AjaxResult edit(@RequestBody TPatientHospitalDoctor tPatientHospitalDoctor)
{ {
@ -95,7 +97,7 @@ public class TPatientHospitalDoctorController extends BaseController
* *
*/ */
@PreAuthorize("@ss.hasPermi('system:doctor:remove')") @PreAuthorize("@ss.hasPermi('system:doctor:remove')")
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) @Log(title = "删除功能表", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids)
{ {

@ -49,6 +49,7 @@ public class TRecordController extends BaseController
*/ */
@ApiOperation("查询就诊记录列表") @ApiOperation("查询就诊记录列表")
@GetMapping("/list") @GetMapping("/list")
@Log(title = "查询就诊记录列表", businessType = BusinessType.OTHER)
public TableDataInfo list(TRecordResultReq tRecord) public TableDataInfo list(TRecordResultReq tRecord)
{ {
startPage(); startPage();
@ -74,6 +75,7 @@ public class TRecordController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:record:query')") @PreAuthorize("@ss.hasPermi('system:record:query')")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
@Log(title = "获取诊断记录信息详细信息", businessType = BusinessType.OTHER)
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id)
{ {
return AjaxResult.success(tRecordService.selectTRecordById(id)); return AjaxResult.success(tRecordService.selectTRecordById(id));
@ -83,7 +85,7 @@ public class TRecordController extends BaseController
* *
*/ */
@PreAuthorize("@ss.hasPermi('system:record:add')") @PreAuthorize("@ss.hasPermi('system:record:add')")
@Log(title = "诊断记录信息", businessType = BusinessType.INSERT) @Log(title = "新增诊断记录信息", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TRecord tRecord) public AjaxResult add(@RequestBody TRecord tRecord)
{ {
@ -94,7 +96,7 @@ public class TRecordController extends BaseController
* *
*/ */
@PreAuthorize("@ss.hasPermi('system:record:edit')") @PreAuthorize("@ss.hasPermi('system:record:edit')")
@Log(title = "诊断记录信息", businessType = BusinessType.UPDATE) @Log(title = "修改诊断记录信息", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TRecord tRecord) public AjaxResult edit(@RequestBody TRecord tRecord)
{ {
@ -105,7 +107,7 @@ public class TRecordController extends BaseController
* *
*/ */
@PreAuthorize("@ss.hasPermi('system:record:remove')") @PreAuthorize("@ss.hasPermi('system:record:remove')")
@Log(title = "诊断记录信息", businessType = BusinessType.DELETE) @Log(title = "删除诊断记录信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids)
{ {
@ -114,6 +116,7 @@ public class TRecordController extends BaseController
@GetMapping("getInfo/{id}") @GetMapping("getInfo/{id}")
@ApiOperation("查询患者诊断记录信息") @ApiOperation("查询患者诊断记录信息")
@Log(title = "查询患者诊断记录信息", businessType = BusinessType.OTHER)
public AjaxResult getInfoById(@PathVariable("id") Long id){ public AjaxResult getInfoById(@PathVariable("id") Long id){
if(id == null){ if(id == null){
return AjaxResult.error("未获取到id"); return AjaxResult.error("未获取到id");
@ -130,6 +133,7 @@ public class TRecordController extends BaseController
@GetMapping("/image/{recordId}") @GetMapping("/image/{recordId}")
@ApiOperation("获取图片接口") @ApiOperation("获取图片接口")
@Log(title = "获取图片接口", businessType = BusinessType.OTHER)
public AjaxResult getAiImage(@PathVariable("recordId") Long recordId){ public AjaxResult getAiImage(@PathVariable("recordId") Long recordId){
if(recordId == null){ if(recordId == null){
return AjaxResult.error("未获取到参数"); return AjaxResult.error("未获取到参数");
@ -142,6 +146,7 @@ public class TRecordController extends BaseController
@GetMapping("getHistoryRecordList") @GetMapping("getHistoryRecordList")
@ApiOperation("查询患者历史数据图表") @ApiOperation("查询患者历史数据图表")
@Log(title = "查询患者历史数据图表", businessType = BusinessType.OTHER)
public AjaxResult getHistoryRecordList(TRecord tRecord){ public AjaxResult getHistoryRecordList(TRecord tRecord){
return tRecordService.getHistoryList(tRecord); return tRecordService.getHistoryList(tRecord);
} }
@ -154,6 +159,7 @@ public class TRecordController extends BaseController
*/ */
@ApiOperation("诊断记录上传") @ApiOperation("诊断记录上传")
@PostMapping("diagnostic/upload") @PostMapping("diagnostic/upload")
@Log(title = "诊断记录上传", businessType = BusinessType.UPDATE)
public AjaxResult diagnosticRecordsUploaded(@RequestBody AppRecordReq appRecordReq) { public AjaxResult diagnosticRecordsUploaded(@RequestBody AppRecordReq appRecordReq) {
TRecord tRecord = new TRecord(); TRecord tRecord = new TRecord();
BeanUtils.copyProperties(appRecordReq, tRecord); BeanUtils.copyProperties(appRecordReq, tRecord);

Loading…
Cancel
Save