fix(征求意见流程): getFileByStandardId 增加拆分info_id
This commit is contained in:
+13
-1
@@ -2822,8 +2822,20 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<OSSFile> getFileByStandardId(String standardId) {
|
public List<OSSFile> getFileByStandardId(String standardId) {
|
||||||
return ossFileService.list(new LambdaQueryWrapper<OSSFile>()
|
List<OSSFile> list = ossFileService.list(new LambdaQueryWrapper<OSSFile>()
|
||||||
.eq(OSSFile::getStandardId, standardId));
|
.eq(OSSFile::getStandardId, standardId));
|
||||||
|
for (OSSFile ossFile : list) {
|
||||||
|
// 查询拆分信息
|
||||||
|
SarFileSplitInfoEO sarFileSplitInfoEO = sarFileSplitInfoService.getOne(
|
||||||
|
new LambdaQueryWrapper<SarFileSplitInfoEO>()
|
||||||
|
.eq(SarFileSplitInfoEO::getStandardId, ossFile.getStandardId())
|
||||||
|
.eq(SarFileSplitInfoEO::getFileType, ossFile.getStandardFileType())
|
||||||
|
.isNull(SarFileSplitInfoEO::getPublishBeforeId), false);
|
||||||
|
if (!Objects.isNull(sarFileSplitInfoEO)){
|
||||||
|
ossFile.setSplitInfoId(sarFileSplitInfoEO.getId());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user