【优化】添加多语言支持

This commit is contained in:
曹鹏飞 2026-04-10 13:43:28 +08:00
parent fde5a14982
commit 74ea854b2f
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ public class TicketSolutionAuditServiceImpl extends ServiceImpl<TicketSolutionAu
List<DictionaryItem> items = dictionaryItemService.getListByDictionaryCode(Constant.DICTIONARY_SOLUTION_REVIEW_DEPARTMENT, languageCode); List<DictionaryItem> items = dictionaryItemService.getListByDictionaryCode(Constant.DICTIONARY_SOLUTION_REVIEW_DEPARTMENT, languageCode);
List<SolutionReviewDepartmentVO> vos = baseMapper.getByTicket(ticketId, languageCode); List<SolutionReviewDepartmentVO> vos = baseMapper.getByTicket(ticketId, languageCode);
items.forEach(item -> { items.forEach(item -> {
if (vos.stream().noneMatch(vo -> vo.getDeptName().equals(item.getName()))) { if (vos.stream().noneMatch(vo -> StrUtil.isBlank(vo.getDeptName()) || StrUtil.equals(vo.getDeptName(), item.getName()))) {
SolutionReviewDepartmentVO vo = new SolutionReviewDepartmentVO(); SolutionReviewDepartmentVO vo = new SolutionReviewDepartmentVO();
vo.setDeptName(item.getName()); vo.setDeptName(item.getName());
vos.add(vo); vos.add(vo);