fix: 修复打开场景找不到案例时报错的bug

修复打开场景找不到案例时报错的bug
This commit is contained in:
song.tianyang 2021-03-24 16:30:02 +08:00
parent 2a021c99d1
commit bec225ff5e
1 changed files with 4 additions and 3 deletions

View File

@ -149,10 +149,11 @@ public class ApiTestCaseService {
public ApiTestCaseWithBLOBs get(String id) { public ApiTestCaseWithBLOBs get(String id) {
// ApiTestCaseWithBLOBs returnBlobs = apiTestCaseMapper.selectByPrimaryKey(id); // ApiTestCaseWithBLOBs returnBlobs = apiTestCaseMapper.selectByPrimaryKey(id);
ApiTestCaseInfo model = extApiTestCaseMapper.selectApiCaseInfoByPrimaryKey(id); ApiTestCaseInfo model = extApiTestCaseMapper.selectApiCaseInfoByPrimaryKey(id);
if(model != null ){
if(StringUtils.equalsIgnoreCase(model.getApiMethod(),"esb")){ if(StringUtils.equalsIgnoreCase(model.getApiMethod(),"esb")){
esbApiParamService.handleApiEsbParams(model); esbApiParamService.handleApiEsbParams(model);
} }
}
return model; return model;
} }