bug52681下拉选项重复修改

This commit is contained in:
xiejunyu
2022-05-23 14:19:30 +08:00
parent 977f455f47
commit 462605799e
3 changed files with 8 additions and 3 deletions
@@ -168,6 +168,11 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
public List<ProjectLibraryBase> queryById(String id) {
List<ProjectLibraryBase> records = projectLibraryBaseMapper.queryById(id);
disposeData(records);
for(ProjectLibraryBase projectLibraryBase: records){
if(StringUtils.isNotBlank(projectLibraryBase.getYearName())){
projectLibraryBase.setProjectName(projectLibraryBase.getProjectName() + "-" + projectLibraryBase.getYearName());
}
}
return records;
}