fix(asms): 拆分同步问题

This commit is contained in:
yjz
2024-02-04 11:53:35 +08:00
parent 16b60635ca
commit 593899f068
@@ -569,12 +569,14 @@ public class LawsAsmsOpenApiServiceImpl extends ServiceImpl<LawsAsmsOpenApiMappe
LambdaQueryWrapper<LawsDomesticStandard> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(LawsDomesticStandard::getStandardNumber, code);
LawsDomesticStandard lawsDomesticStandard = lawsDomesticStandardService.getOne(queryWrapper);
if (Objects.isNull(lawsDomesticStandard)) {
return;
}
LambdaQueryWrapper<OSSFile> queryWrapper1 = new LambdaQueryWrapper<>();
queryWrapper1.eq(OSSFile::getStandardId, lawsDomesticStandard.getId());
queryWrapper1.eq(OSSFile::getStandardFileType, "publish_of_original");
queryWrapper1.like(OSSFile::getFileName, ".docx");
OSSFile ossFile = ossFileService.getOne(queryWrapper1);
OSSFile ossFile = ossFileService.getOne(queryWrapper1, false);
if (Objects.isNull(ossFile)){
return;
}