Fix Bug #566: fallback修复
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
package com.openhis.application.controller;
|
||||
|
||||
import com.openhis.application.domain.entity.VitalSign;
|
||||
import com.openhis.application.service.VitalSignService;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 体征数据 REST 控制器
|
||||
*
|
||||
* 新增 /temperatureChart/{patientId} 接口供前端体温图表使用。
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/api/vitalSign")
|
||||
public class VitalSignController {
|
||||
|
||||
private final VitalSignService vitalSignService;
|
||||
|
||||
public VitalSignController(VitalSignService vitalSignService) {
|
||||
this.vitalSignService = vitalSignService;
|
||||
}
|
||||
|
||||
@PostMapping("/save")
|
||||
public void save(@RequestBody VitalSign vitalSign) {
|
||||
vitalSignService.saveVitalSign(vitalSign);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取体温图表数据(时间序列)
|
||||
*/
|
||||
@GetMapping("/temperatureChart/{patientId}")
|
||||
public List<VitalSign> getTemperatureChart(@PathVariable Long patientId) {
|
||||
return vitalSignService.getTemperatureChartData(patientId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user