|
|
|
@ -155,12 +155,13 @@ public class CallItemServiceImpl extends ServiceImpl<CallItemMapper, CallItem> i
|
|
|
|
|
String site = CommonMethods.getSite();
|
|
|
|
|
String user = CommonMethods.getUser();
|
|
|
|
|
String language = LocaleContextHolder.getLocale().getLanguage();
|
|
|
|
|
List<String> list = new ArrayList<>();
|
|
|
|
|
list.add("CJZR");
|
|
|
|
|
list.add("ADMINISTRATORS");
|
|
|
|
|
callItem.setCallType(Constants.CALL_TYPE_MATERIAL);
|
|
|
|
|
List<NwaUser> nwaUsers = nwaUserService.checkUserGroup(site, "CJZR,ADMINISTRATORS");
|
|
|
|
|
for (NwaUser nwaUser:nwaUsers) {
|
|
|
|
|
if (user.equals(nwaUser.getUserName())){
|
|
|
|
|
return callItemMapper.findCallItemListPda(site,language,null,callItem);
|
|
|
|
|
}
|
|
|
|
|
Integer cnt = userGroupMapper.findUserGroupByUser(site, user, list);
|
|
|
|
|
if (cnt > 0){
|
|
|
|
|
return callItemMapper.findCallItemListPda(site,language,null,callItem);
|
|
|
|
|
}
|
|
|
|
|
return callItemMapper.findCallItemListPda(site,language,user,callItem);
|
|
|
|
|
}
|
|
|
|
|