新增批量更新患者体检项目方法
This commit is contained in:
parent
e59aed96ab
commit
0888c1b8cc
@ -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)
|
||||
|
@ -26,6 +26,10 @@ public interface InspectPatientitemsService {
|
||||
* 批量创建患者体检项目
|
||||
* */
|
||||
boolean createPatientListitems(List<InspectPatientitemsSaveReqVO> listcreateReqVO);
|
||||
/*
|
||||
* 批量更新患者体检项目
|
||||
* */
|
||||
boolean updateListPatientitems(List<InspectPatientitemsSaveReqVO> listcreateReqVO);
|
||||
|
||||
/**
|
||||
* 更新患者体检项目
|
||||
|
@ -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) {
|
||||
// 校验存在
|
||||
|
Loading…
Reference in New Issue
Block a user