提交 bcd4ed45 authored 作者: luzhangjian's avatar luzhangjian

feat:修改返回

上级 fb4a91aa
......@@ -47,7 +47,7 @@ public class PatientMedicalRecordController {
@PostMapping("/insertOrUpdate")
@ApiOperation(value = "新建或修改复诊病历", notes = "新建或修改复诊病历")
public BaseResponse<InsertPatientMedicalRecordVO> insertOrUpdate(@RequestBody @Validated InsertPatientMedicalRecordDTO dto,
public BaseResponse<Object> insertOrUpdate(@RequestBody @Validated InsertPatientMedicalRecordDTO dto,
BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
return BaseResponse.error(Objects.requireNonNull(bindingResult.getFieldError()).getDefaultMessage());
......
......@@ -21,7 +21,7 @@ public interface PatientMedicalRecordService {
BaseResponse<PatientMedicalRecordVO> detailMedicalRecord(InvalidMedicalRecordDTO dto);
BaseResponse<InsertPatientMedicalRecordVO> insertOrUpdate(InsertPatientMedicalRecordDTO dto);
BaseResponse<Object> insertOrUpdate(InsertPatientMedicalRecordDTO dto);
BaseResponse<Object> treatmentCard(String admId);
}
......@@ -142,7 +142,7 @@ public class PatientMedicalRecordServiceImpl implements PatientMedicalRecordServ
}
@Override
public BaseResponse<InsertPatientMedicalRecordVO> insertOrUpdate(InsertPatientMedicalRecordDTO dto) {
public BaseResponse<Object> insertOrUpdate(InsertPatientMedicalRecordDTO dto) {
log.info("新增或修改入参:{}", dto.toString());
PatientMedicalRecordEntity recordEntity = patientMedicalRecordMapper.getByAdmId(dto.getAdmId());
if (ObjectUtil.isNotNull(recordEntity)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论