|
@@ -34,7 +34,8 @@ public class KnowledgeTypeService {
|
|
|
}
|
|
|
|
|
|
public Boolean save(KnowledgeShareType type) {
|
|
|
- List<KnowledgeShareType> list = mapper.checkList(type);
|
|
|
+ UserDTO userDTO = SpringUtil.getBean(IUserApi.class).getByToken(TokenProvider.getCurrentToken());
|
|
|
+ List<KnowledgeShareType> list = mapper.checkList(type,userDTO.getCompanyDTO().getId());
|
|
|
if (CollectionUtils.isNotEmpty(list)) {
|
|
|
return false;
|
|
|
}
|