【优化】添加多语言支持
This commit is contained in:
parent
fde5a14982
commit
74ea854b2f
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue