Skip to content

Commit

Permalink
Merge pull request #175 from tubaobao3/bugfix-caseId-asiainfo
Browse files Browse the repository at this point in the history
bugfix to caseId-handle on 2.1.6
  • Loading branch information
forgivedengkai authored Aug 11, 2023
2 parents fdc6b08 + 683e4fb commit 8892c98
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ public void setHostPartyId(String hostPartyId) {
this.hostPartyId = hostPartyId;
}

@Override
public String getCaseId() {
return caseId;
}

@Override
public void setCaseId(String caseId) {
this.caseId = caseId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public void setBatchDataList(List<SingleInferenceData> batchDataList) {
this.batchDataList = batchDataList;
}

public String getCaseId() {
return caseId;
}

@Override
public void setCaseId(String caseId) {
this.caseId = caseId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void setAppid(String appid) {
}

@Override
public String getCaseid() {
public String getCaseId() {
return caseId;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public interface Request {

public String getAppid();

public String getCaseid();
public String getCaseId();

public String getPartyId();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ public void doPreProcess(Context context, InboundPackage inboundPackage, Outboun
inboundPackage.setBody(batchInferenceRequest);
Preconditions.checkArgument(batchInferenceRequest != null, "request message parse error");
Preconditions.checkArgument(StringUtils.isNotBlank(batchInferenceRequest.getServiceId()), "no service id");
if (batchInferenceRequest.getCaseid() == null || batchInferenceRequest.getCaseid().length() == 0) {
if (batchInferenceRequest.getCaseId() == null || batchInferenceRequest.getCaseId().length() == 0) {
batchInferenceRequest.setCaseId(InferenceUtils.generateCaseid());
}
context.setCaseId(batchInferenceRequest.getCaseid());
context.setCaseId(batchInferenceRequest.getCaseId());
context.setServiceId(batchInferenceRequest.getServiceId());
if (batchInferenceRequest.getApplyId() != null) {
context.setApplyId(batchInferenceRequest.getApplyId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ public void doPreProcess(Context context, InboundPackage inboundPackage, Outboun
Preconditions.checkArgument(inferenceRequest.getFeatureData() != null, "no feature data");
Preconditions.checkArgument(inferenceRequest.getSendToRemoteFeatureData() != null, "no send to remote feature data");
Preconditions.checkArgument(StringUtils.isNotBlank(inferenceRequest.getServiceId()), "no service id");
if (inferenceRequest.getCaseid() == null || inferenceRequest.getCaseid().length() == 0) {
if (inferenceRequest.getCaseId() == null || inferenceRequest.getCaseId().length() == 0) {
inferenceRequest.setCaseId(InferenceUtils.generateCaseid());
}
context.setCaseId(inferenceRequest.getCaseid());
context.setCaseId(inferenceRequest.getCaseId());
context.setServiceId(inferenceRequest.getServiceId());
if (inferenceRequest.getApplyId() != null) {
context.setApplyId(inferenceRequest.getApplyId());
Expand Down

0 comments on commit 8892c98

Please sign in to comment.