患者是存在未检或者待查不能汇总
This commit is contained in:
parent
0888c1b8cc
commit
895eb29b2f
@ -74,5 +74,12 @@ public class CheckUpResultController {
|
|||||||
return success(true);
|
return success(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/isExistUncheck")
|
||||||
|
@Operation(summary = "患者是否存在未检或者待查")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
|
public CommonResult<Boolean> isExistUncheck(@RequestParam("medicalSn") String medicalSn) {
|
||||||
|
Boolean existUncheck = patientitemsService.isExistUncheck(medicalSn);
|
||||||
|
return success(existUncheck);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package cn.iocoder.yudao.module.inspect.controller.admin.inspectpatient.vo;
|
package cn.iocoder.yudao.module.inspect.controller.admin.inspectpatient.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
|
|
||||||
@ -32,6 +33,8 @@ public class InspectPatientRespVO {
|
|||||||
|
|
||||||
@Schema(description = "出生日期")
|
@Schema(description = "出生日期")
|
||||||
@ExcelProperty("出生日期")
|
@ExcelProperty("出生日期")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd ", timezone = "GMT+8")
|
||||||
private LocalDate birthday;
|
private LocalDate birthday;
|
||||||
|
|
||||||
@Schema(description = "证件类型", example = "1")
|
@Schema(description = "证件类型", example = "1")
|
||||||
|
@ -67,4 +67,8 @@ public interface InspectPatientitemsService {
|
|||||||
//更新患者分析结果
|
//更新患者分析结果
|
||||||
void updateItemsAnalyse(@Valid List<InspectPatientitemsSaveReqVO> updateReqVO );
|
void updateItemsAnalyse(@Valid List<InspectPatientitemsSaveReqVO> updateReqVO );
|
||||||
|
|
||||||
|
//患者是否存在未检或者待查
|
||||||
|
Boolean isExistUncheck(String medicalSn);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -125,4 +125,13 @@ public class InspectPatientitemsServiceImpl implements InspectPatientitemsServic
|
|||||||
int updatedRows = patientMapper.update(null, lambdaUpdateWrapper);
|
int updatedRows = patientMapper.update(null, lambdaUpdateWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean isExistUncheck(String medicalSn) {
|
||||||
|
LambdaQueryWrapper<InspectPatientitemsDO> lambdaQuery = new LambdaQueryWrapper<>();
|
||||||
|
lambdaQuery.eq(InspectPatientitemsDO::getMedicalSn, medicalSn)
|
||||||
|
.and(wrapper -> wrapper.eq(InspectPatientitemsDO::getItemStatus, 0).or().eq(InspectPatientitemsDO::getItemStatus,3));
|
||||||
|
List<InspectPatientitemsDO> list = patientitemsMapper.selectList(lambdaQuery);
|
||||||
|
return !list.isEmpty();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user