fix: 87832 企业标准-代替标准到实施日期后,被代替标准状态没有发生变化,也没有发消息

This commit is contained in:
2024-08-08 15:02:34 +08:00
parent 083e4c6376
commit faf4792db7
@@ -155,6 +155,7 @@ public class LawsReplacedStandardServiceImpl extends ServiceImpl<LawsReplacedSta
queryWrapper.eq(LawsEnterpriseStandard::getNameCode, es.getNameCode());
queryWrapper.eq(LawsEnterpriseStandard::getCategoryCode, es.getCategoryCode());
queryWrapper.ne(LawsEnterpriseStandard::getYearNumber, es.getYearNumber());
queryWrapper.ne(LawsEnterpriseStandard::getId, es.getId());
List<LawsEnterpriseStandard> oldVersionStandard = esService.list(queryWrapper);
if (CollUtil.isEmpty(oldVersionStandard)) {
log.info("企业标准没有老版本,id" + standardId);