|
|
@@ -42,6 +42,7 @@ import com.nb.web.service.bus.controller.vo.MonitorFinishedVo;
|
|
|
import com.nb.web.service.bus.entity.BusPatientEntity;
|
|
|
import com.nb.web.service.bus.enums.AnaTypeEnum;
|
|
|
import com.nb.web.service.bus.enums.ConstantEnum;
|
|
|
+import com.nb.web.service.bus.enums.ConstantMixEnum;
|
|
|
import com.nb.web.service.bus.service.LocalBusDeviceHistoryService;
|
|
|
import com.nb.web.service.bus.service.LocalBusInfusionHistoryService;
|
|
|
import com.nb.web.service.bus.service.LocalBusPatientService;
|
|
|
@@ -298,15 +299,19 @@ public class PatientMonitorController {
|
|
|
}
|
|
|
|
|
|
@PostMapping("/{type}/page")
|
|
|
- @ApiOperation(value = "镇痛麻醉方式查询")
|
|
|
+ @ApiOperation(value = "常量查询")
|
|
|
public R anaTypeQueryPage(@PathVariable("type") String type){
|
|
|
|
|
|
AnaTypeEnum anaTypeEnum = AnaTypeEnum.fromValue(type);
|
|
|
List<String> result;
|
|
|
- if (anaTypeEnum==AnaTypeEnum.ANATYPE){
|
|
|
+ if (anaTypeEnum == AnaTypeEnum.ANATYPE) {
|
|
|
result = localBusConMixService.listAnaType();
|
|
|
- }else {
|
|
|
+ } else if (anaTypeEnum == AnaTypeEnum.ANALTYPE) {
|
|
|
result = localBusConMixService.listAnalType();
|
|
|
+ } else if (anaTypeEnum == AnaTypeEnum.SURGERYNAME) {
|
|
|
+ result = localBusConMixService.listSurgery();
|
|
|
+ } else {
|
|
|
+ throw new IllegalArgumentException("未知的类型: " + type);
|
|
|
}
|
|
|
|
|
|
return R.success(result);
|