Commit eee43542 authored by liuzicheng's avatar liuzicheng

查询

parent 51175f23
...@@ -6,7 +6,9 @@ import com.jqtx.windows.common.factory.AbstractCommand; ...@@ -6,7 +6,9 @@ import com.jqtx.windows.common.factory.AbstractCommand;
import com.jqtx.windows.common.factory.RuntimeContextHolder; import com.jqtx.windows.common.factory.RuntimeContextHolder;
import com.jqtx.windows.component.model.GetSignContractModel; import com.jqtx.windows.component.model.GetSignContractModel;
import com.jqtx.windows.infrastructure.feign.IProtocalFeignService; import com.jqtx.windows.infrastructure.feign.IProtocalFeignService;
import com.jqtx.windows.web.response.GetSignContractResponse;
import com.jqtx.windows.web.response.JsonResult; import com.jqtx.windows.web.response.JsonResult;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -20,7 +22,14 @@ public class SignContractCommand extends AbstractCommand { ...@@ -20,7 +22,14 @@ public class SignContractCommand extends AbstractCommand {
public JsonResult execute() { public JsonResult execute() {
String requestBody = RuntimeContextHolder.currentRuntimeContext().getRequestBody(); String requestBody = RuntimeContextHolder.currentRuntimeContext().getRequestBody();
GetSignContractModel getSignContractModel = JSONObject.parseObject(requestBody, GetSignContractModel.class); GetSignContractModel getSignContractModel = JSONObject.parseObject(requestBody, GetSignContractModel.class);
JsonResult<String> rongdanPdf = iProtocalFeignService.getFilePathPdf(getSignContractModel.getLoanNo(), "rongdan"); GetSignContractResponse getSignContractResponse=new GetSignContractResponse();
return rongdanPdf; JsonResult<String> rongdanPdfJsonResult = iProtocalFeignService.getFilePathPdf(getSignContractModel.getLoanNo(), "rongdan");
if (rongdanPdfJsonResult.isSuccess() && StringUtils.isNotEmpty(rongdanPdfJsonResult.getResult())){
getSignContractResponse.setSignStatus("SIGN");
getSignContractResponse.setContractFileUrl(rongdanPdfJsonResult.getResult());
}else {
getSignContractResponse.setSignStatus("SIGN_ING");
}
return JsonResult.success(getSignContractResponse);
} }
} }
package com.jqtx.windows.web.response;
import lombok.Data;
@Data
public class GetSignContractResponse {
private String contractFileUrl;
private String signStatus;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment