This commit is contained in:
wangzhijiang
2023-06-12 11:22:35 +08:00
parent 6049a703a1
commit 4f2c17cd7d
2 changed files with 6 additions and 1 deletions
@@ -82,4 +82,8 @@ public class RecentBrowse implements Serializable {
@TableField(exist = false) @TableField(exist = false)
private String cut; private String cut;
// 法规月报专用
@TableField(exist = false)
private String fileId;
} }
@@ -201,12 +201,13 @@ public class RecentBrowseServiceImpl extends ServiceImpl<RecentBrowseMapper, Rec
} }
} else if (StringUtils.equals(data.getBrowseType(), BrowseTypeEnum.FGYB.getValue())) { } else if (StringUtils.equals(data.getBrowseType(), BrowseTypeEnum.FGYB.getValue())) {
List<LawsMonthlyReportManageEO> lmrEos = lmrEoList.stream().filter(lmrEo -> { List<LawsMonthlyReportManageEO> lmrEos = lmrEoList.stream().filter(lmrEo -> {
boolean flag = false; boolean flag = (StringUtils.equals(lmrEo.getId(), data.getBrowseDataId()));
return flag; return flag;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
if (CollectionUtils.isNotEmpty(lmrEos)) { if (CollectionUtils.isNotEmpty(lmrEos)) {
LawsMonthlyReportManageEO lmrEo = lmrEos.get(0); LawsMonthlyReportManageEO lmrEo = lmrEos.get(0);
titleSb.append(lmrEo.getName()); titleSb.append(lmrEo.getName());
data.setFileId(lmrEo.getFileId());
} }
} }
data.setTitle(titleSb.toString()); data.setTitle(titleSb.toString());