|
@@ -16,6 +16,7 @@ import com.diagbot.entity.KlConceptCommon;
|
|
|
import com.diagbot.entity.KlConceptStatic;
|
|
|
import com.diagbot.entity.KlDiagnose;
|
|
|
import com.diagbot.entity.KlDiagnoseBase;
|
|
|
+import com.diagbot.entity.KlDrugMapping;
|
|
|
import com.diagbot.entity.KlLexicon;
|
|
|
import com.diagbot.entity.KlLibraryInfo;
|
|
|
import com.diagbot.entity.KlRelation;
|
|
@@ -543,6 +544,12 @@ public class KlConceptFacade extends KlConceptServiceImpl {
|
|
|
if (diagnoseBasesum > 0) {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该医学标准术语与诊断依据维护明细存在关系!");
|
|
|
}
|
|
|
+ //kl_drug_mapping
|
|
|
+ int drugMappingSum = klDrugMappingFacade.count(new QueryWrapper<KlDrugMapping>().eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
+ .eq("drug_concept", klConceptSatarOrdisaVO.getConceptId()));
|
|
|
+ if (drugMappingSum > 0) {
|
|
|
+ throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该医学标准术语与注册药品存在关系!");
|
|
|
+ }
|
|
|
}
|
|
|
UpdateWrapper<KlConcept> klLibraryUpdate = new UpdateWrapper<>();
|
|
|
klLibraryUpdate.eq("is_deleted", IsDeleteEnum.N.getKey())
|