fix: 解决报错 解决我创建的用例查询错误
This commit is contained in:
parent
c0daa6018d
commit
550766e072
|
@ -240,7 +240,7 @@ public class ApiDefinitionService {
|
|||
}
|
||||
}
|
||||
//update userId
|
||||
if(request.getUserId().equals("currentUserId")){
|
||||
if(request.getUserId()!=null&&request.getUserId().equals("currentUserId")){
|
||||
request.setUserId(SessionUtils.getUserId());
|
||||
}
|
||||
return request;
|
||||
|
|
|
@ -42,6 +42,7 @@ public class WorkstationService {
|
|||
operatorValue.put("operator","current user");
|
||||
operatorValue.put("value","current user");
|
||||
combine.put("creator",operatorValue);
|
||||
testPlanRequest.setCombine(combine);
|
||||
apiTestCaseRequest.setCombine(combine);
|
||||
ApiScenarioRequest apiScenarioRequest = new ApiScenarioRequest();
|
||||
apiScenarioRequest.setCombine(combine);
|
||||
|
|
|
@ -158,7 +158,7 @@ public class TestCaseReviewService {
|
|||
return new ArrayList<>();
|
||||
}
|
||||
//update reviewerId
|
||||
if(request.getReviewerId().equals("currentUserId")){
|
||||
if(request.getReviewerId()!=null&&request.getReviewerId().equals("currentUserId")){
|
||||
request.setReviewerId(SessionUtils.getUserId());
|
||||
}
|
||||
return extTestCaseReviewMapper.list(request);
|
||||
|
|
Loading…
Reference in New Issue