fix: 换 StringUtils

This commit is contained in:
guoyuqi 2021-10-26 19:19:40 +08:00 committed by 刘瑞斌
parent 12f4a1dea5
commit 3e418e6c87
2 changed files with 2 additions and 2 deletions

View File

@ -240,7 +240,7 @@ public class ApiDefinitionService {
}
}
//update userId
if(request.getUserId()!=null&&request.getUserId().equals("currentUserId")){
if(StringUtils.equalsIgnoreCase(request.getUserId(),"currentUserId")){
request.setUserId(SessionUtils.getUserId());
}
return request;

View File

@ -158,7 +158,7 @@ public class TestCaseReviewService {
return new ArrayList<>();
}
//update reviewerId
if(request.getReviewerId()!=null&&request.getReviewerId().equals("currentUserId")){
if(StringUtils.equalsIgnoreCase(request.getReviewerId(),"currentUserId")){
request.setReviewerId(SessionUtils.getUserId());
}
return extTestCaseReviewMapper.list(request);