|
|
@@ -269,10 +269,10 @@ public class SharePutOnShelvesServiceImpl extends ServiceImpl<SharePutOnShelvesM
|
|
|
}
|
|
|
item.setShareStatus("已共享");
|
|
|
if (ObjectUtils.isNotNull(item.getSharedCompanyId()) && ObjectUtils.isNotNull(item.getSharedCompany())) {
|
|
|
- List<String> sharedCompanyId = Arrays.asList(item.getSharedCompanyId().split(","));
|
|
|
+ List<String> sharedCompanyId = new ArrayList<>(Arrays.asList(item.getSharedCompanyId().split(",")));
|
|
|
sharedCompanyId.add(deptItem.getId() + "");
|
|
|
item.setSharedCompanyId(sharedCompanyId.stream().distinct().collect(Collectors.joining(",")));
|
|
|
- List<String> sharedCompanyName = Arrays.asList(item.getSharedCompany().split(","));
|
|
|
+ List<String> sharedCompanyName = new ArrayList<>(Arrays.asList(item.getSharedCompany().split(",")));
|
|
|
sharedCompanyName.add(deptItem.getDeptName());
|
|
|
item.setSharedCompany(sharedCompanyName.stream().distinct().collect(Collectors.joining(",")));
|
|
|
} else {
|