Browse Source

研究队列bug修复

wangzl 2 months ago
parent
commit
f21ef103d8

+ 1 - 1
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/common/service/impl/BizReasearchQueueServiceImpl.java

@@ -69,7 +69,7 @@ public class BizReasearchQueueServiceImpl implements IBizReasearchQueueService {
         validateSource(source);
         BizReasearchQueuePO oldSource = baseRepository.selectById(source.getId());
         String currentUserId = LoginUserStrategy.tr.getCurrentUserId();
-        if(StrUtil.equals(oldSource.getOwner(),currentUserId)){
+        if(!StrUtil.equals(oldSource.getOwner(),currentUserId)){
             throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001,"您没有权限修改该数据");
         }
         BizReasearchQueuePO updateSource = BizReasearchQueueMapper.INSTANCE.convertPO(source);