This commit is contained in:
mx 2024-10-12 17:22:52 +08:00
parent 566d4fa0cc
commit 84399d2c6b

View File

@ -270,6 +270,7 @@ public class PsCompanyInfoServiceImpl implements IPsCompanyInfoService {
List<PsContractInfo> list = contractInfoMapper.selectList(Wrappers.<PsContractInfo>lambdaQuery().in(PsContractInfo::getCompanyId, ids).eq(PsContractInfo::getDelFlag, "0"));
if(CollectionUtils.isNotEmpty(list)){
logger.error("", "删除公司失败,已有合同使用");
return false;
}
}
return baseMapper.deleteBatchIds(ids) > 0;