manage: updateDrug fix

dev_2.1.0
xueqingkun 1 year ago
parent 3c9d16779e
commit f29e29d585

@ -36,6 +36,13 @@ public class MedicalRecManageController {
return medicalRecManageService.queryDiseaseListByDropList();
}
@ApiOperation("初步诊断下拉列表联想(这个接口只查询单一疾病)")
@GetMapping("querySingleDiseaseListByDropList")
public List<Disease> querySingleDiseaseListByDropList() {
return medicalRecManageService.querySingleDiseaseListByDropList();
}
@ApiOperation("病历管理分页查询")
@GetMapping("queryMedicalRecPage")
public IPage<MedicalRecPageResVO> queryMedicalRecManagePage(@ApiParam("主诉") String selfDescKeyword,

@ -39,4 +39,6 @@ public interface MedicalRecManageService {
MedicalRecInfoVO queryMedicalRecInfo(String id);
void deleteMedicalRec(String id);
List<Disease> querySingleDiseaseListByDropList();
}

@ -108,7 +108,7 @@ public class AncillaryItemManageServiceImpl implements AncillaryItemManageServic
@Override
public void deleteAncillaryItem(String id) {
// 首先检查辅助检查项是否被使用
if (0 > diseaseAncillaryService.lambdaQuery().eq(DiseaseAncillary::getItemId, id).count()){
if (diseaseAncillaryService.lambdaQuery().eq(DiseaseAncillary::getItemId, id).count()>0){
throw new BusinessException("辅助检查项已被使用,无法删除");
}
configAncillaryItemService.removeById(id);

@ -245,4 +245,9 @@ public class MedicalRecManageServiceImpl implements MedicalRecManageService {
public void deleteMedicalRec(String id) {
medicalRecService.removeById(id);
}
@Override
public List<Disease> querySingleDiseaseListByDropList() {
return diseaseService.lambdaQuery().eq(Disease::getDiseaseType, "0").list();
}
}

Loading…
Cancel
Save