新增批量更新患者体检项目方法

This commit is contained in:
lxd 2025-02-19 15:41:45 +08:00
parent e59aed96ab
commit 0888c1b8cc
3 changed files with 17 additions and 2 deletions

View File

@ -56,7 +56,12 @@ public class InspectPatientitemsController {
patientitemsService.updatePatientitems(updateReqVO);
return success(true);
}
@PutMapping("/batchupdate")
@Operation(summary = "批量更新患者体检项目")
public CommonResult<Boolean> updateListPatientitems(@Valid @RequestBody List<InspectPatientitemsSaveReqVO> ListcreateReqVO)
{
return success(patientitemsService.updateListPatientitems(ListcreateReqVO));
}
@DeleteMapping("/delete")
@Operation(summary = "删除患者体检项目")
@Parameter(name = "id", description = "编号", required = true)

View File

@ -26,6 +26,10 @@ public interface InspectPatientitemsService {
* 批量创建患者体检项目
* */
boolean createPatientListitems(List<InspectPatientitemsSaveReqVO> listcreateReqVO);
/*
* 批量更新患者体检项目
* */
boolean updateListPatientitems(List<InspectPatientitemsSaveReqVO> listcreateReqVO);
/**
* 更新患者体检项目

View File

@ -50,7 +50,13 @@ public class InspectPatientitemsServiceImpl implements InspectPatientitemsServic
boolean bol= patientitemsMapper.insertBatch(patientlistitems);
return bol;
}
@Override
public boolean updateListPatientitems(List<InspectPatientitemsSaveReqVO> listcreateReqVO)
{
List<InspectPatientitemsDO> patientlistitems = BeanUtils.toBean(listcreateReqVO, InspectPatientitemsDO.class);
boolean bol= patientitemsMapper.updateBatch(patientlistitems);
return bol;
}
@Override
public void updatePatientitems(InspectPatientitemsSaveReqVO updateReqVO) {
// 校验存在