This commit is contained in:
Flow 2025-06-27 10:16:37 +08:00
commit d962a3851e
5 changed files with 21 additions and 0 deletions

View File

@ -588,6 +588,12 @@ public class InspectPatientController {
ReportData reportData = reportResponse.getData(); ReportData reportData = reportResponse.getData();
// 获取 reportPath // 获取 reportPath
String reportPath = reportData.getReportPath(); String reportPath = reportData.getReportPath();
String barCodestatus=reportData.getBarCodestatus();
//更新检验检查状态
if (barCodestatus!=null) {
pacsDataService.updatebarcodestatus(medicalSn, model, barCodestatus);
}
if (!reportPath.contains("报告暂未出")) { if (!reportPath.contains("报告暂未出")) {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
InspectPacsDataSaveReqVO inspectPacs = new InspectPacsDataSaveReqVO(); InspectPacsDataSaveReqVO inspectPacs = new InspectPacsDataSaveReqVO();

View File

@ -7,6 +7,7 @@ import java.util.List;
@Data @Data
@JsonIgnoreProperties(ignoreUnknown = true) @JsonIgnoreProperties(ignoreUnknown = true)
public class ReportData { public class ReportData {
private String barCodestatus;
private String reportPath; private String reportPath;
private List<ResultItem> results; private List<ResultItem> results;
private List<ResultItem> resultsAll; private List<ResultItem> resultsAll;

View File

@ -44,6 +44,10 @@ public interface InspectPacsDataService {
* 根据体检编号更新pacsdata表的item字段 * 根据体检编号更新pacsdata表的item字段
* */ * */
void updatePacsDataitem(InspectPacsDataSaveReqVO updateReqVO); void updatePacsDataitem(InspectPacsDataSaveReqVO updateReqVO);
/*
* 更新检验检查的状态
* */
void updatebarcodestatus(String medicalSn, String type, String barcodestatus);
/** /**
* 获得pacs抓取数据 * 获得pacs抓取数据

View File

@ -71,6 +71,14 @@ public class InspectPacsDataServiceImpl implements InspectPacsDataService {
.set(InspectPacsDataDO::getItem, updateReqVO.getItem()); .set(InspectPacsDataDO::getItem, updateReqVO.getItem());
pacsDataMapper.update(null, updateWrapper); pacsDataMapper.update(null, updateWrapper);
} }
@Override
public void updatebarcodestatus(String medicalSn, String type, String barcodestatus) {
LambdaUpdateWrapper<InspectPacsDataDO> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.eq(InspectPacsDataDO::getCode, medicalSn)
.eq(InspectPacsDataDO::getType, type)
.set(InspectPacsDataDO::getRemark, barcodestatus);
pacsDataMapper.update(null, updateWrapper);
}
private void validatePacsDataExists(Integer id) { private void validatePacsDataExists(Integer id) {
if (pacsDataMapper.selectById(id) == null) { if (pacsDataMapper.selectById(id) == null) {

View File

@ -145,6 +145,8 @@ public class InspectPatientServiceImpl implements InspectPatientService {
.set(InspectPatientDO::getShortid, shortid); .set(InspectPatientDO::getShortid, shortid);
patientMapper.update(null, updateWrapper); patientMapper.update(null, updateWrapper);
} }
@Override @Override
public void deletePatient(Integer id) { public void deletePatient(Integer id) {
// 校验存在 // 校验存在