Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
57eed6abba
@ -105,6 +105,12 @@ public class Spo2infoController {
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@PutMapping("/update-diagnosis")
|
||||
@Operation(summary = "更新诊断结果")
|
||||
public CommonResult<Boolean> upSpoInfodiagnosis(@Valid @RequestBody Spo2diagnosisVo updateReqVO) {
|
||||
spo2infoService.upSpoInfodiagnosis(updateReqVO.getId(), updateReqVO.getDiagnosis());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
|
||||
@ -0,0 +1,15 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.spo2info.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class Spo2diagnosisVo {
|
||||
|
||||
private Integer id;
|
||||
|
||||
@Schema(description = "诊断结果")
|
||||
private String diagnosis;
|
||||
|
||||
|
||||
}
|
||||
@ -48,6 +48,11 @@ public interface Spo2infoService {
|
||||
*
|
||||
* */
|
||||
void applySuperiorReview(Integer id, String orgid);
|
||||
/*
|
||||
* 更新诊断结论
|
||||
* */
|
||||
void upSpoInfodiagnosis(Integer id, String diagnosis);
|
||||
|
||||
/*
|
||||
* 更新设备ID 设备名称
|
||||
* */
|
||||
|
||||
@ -93,6 +93,18 @@ public class Spo2infoServiceImpl implements Spo2infoService {
|
||||
Spo2infoDO updateObj = BeanUtils.toBean(updateReqVO, Spo2infoDO.class);
|
||||
spo2infoMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void upSpoInfodiagnosis(Integer id, String diagnosis)
|
||||
{
|
||||
Spo2infoSaveReqVO updateReqVO = new Spo2infoSaveReqVO();
|
||||
updateReqVO.setId(id);
|
||||
updateReqVO.setDiagnosis(diagnosis);
|
||||
Spo2infoDO updateObj = BeanUtils.toBean(updateReqVO, Spo2infoDO.class);
|
||||
spo2infoMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updevice(Integer id, String deviceid, String devicename)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user