新增根据体检编号修改汇总结果

This commit is contained in:
lxd 2025-03-18 15:08:48 +08:00
parent 3ae2f45e17
commit 2e153843d8
5 changed files with 28 additions and 2 deletions

View File

@ -514,6 +514,13 @@ public class InspectPatientController {
return success(true);
}
@PutMapping("/updatesummary")
@Operation(summary = "更新患者汇总信息")
public CommonResult<Boolean> updatemedicalSn(@Valid @RequestBody InspectPatientSaveReqVO updateReqVO) {
patientService.medicalSnupdate(updateReqVO);
return success(true);
}
@GetMapping("/getReportAll")
@Operation(summary = "报告打印界面所需数据")
public CommonResult<InspectPatientReportVO> getReport(@RequestParam("medicalSn") String medicalSn) {

View File

@ -41,6 +41,8 @@ public class InspectPatientReportVO {
@Schema(description = "汇总分析结果")
private String summaryResult;
@Schema(description = "中医体质辨识结果")
private String zybs;
@Schema(description = "检查数据列表")
private List<InspectPatientReportDataVO> data;

View File

@ -175,4 +175,10 @@ public class InspectPatientDO {
*/
@TableField("shqx")
private String shqx;
/**
* 中医体质辨识结果
*/
@TableField("zybs")
private String zybs;
}

View File

@ -36,6 +36,11 @@ public interface InspectPatientService {
* @param updateReqVO 更新信息
*/
void updatePatient(@Valid InspectPatientSaveReqVO updateReqVO);
/*
* 根据体检编号更新汇总报告内容
*
* */
void medicalSnupdate(InspectPatientSaveReqVO updateReqVO);
/**
* 删除患者信息

View File

@ -24,7 +24,6 @@ import org.jodconverter.DocumentConverter;
import org.jodconverter.LocalConverter;
import org.jodconverter.document.DefaultDocumentFormatRegistry;
import org.jodconverter.office.LocalOfficeManager;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;
import cn.iocoder.yudao.module.inspect.controller.admin.inspectpatient.vo.*;
@ -91,7 +90,14 @@ public class InspectPatientServiceImpl implements InspectPatientService {
InspectPatientDO updateObj = BeanUtils.toBean(updateReqVO, InspectPatientDO.class);
patientMapper.updateById(updateObj);
}
@Override
public void medicalSnupdate(InspectPatientSaveReqVO updateReqVO)
{
LambdaUpdateWrapper<InspectPatientDO> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.eq(InspectPatientDO::getMedicalSn, updateReqVO.getMedicalSn())
.set(InspectPatientDO::getSummaryResult, updateReqVO.getSummaryResult());
patientMapper.update(null, updateWrapper);
}
@Override
public void deletePatient(Integer id) {
// 校验存在