Commit 88e9a548 authored by liuzicheng's avatar liuzicheng

初始化项目

parent c6579a7a
......@@ -24,10 +24,7 @@ import com.jqtx.windows.infrastructure.feign.IClientFeignService;
import com.jqtx.windows.infrastructure.feign.IWakandaFeignService;
import com.jqtx.windows.infrastructure.feign.enums.ProductNameEnum;
import com.jqtx.windows.infrastructure.feign.model.client.ClientFeignModel;
import com.jqtx.windows.infrastructure.feign.model.wakanda.BasicInfoModel;
import com.jqtx.windows.infrastructure.feign.model.wakanda.ClientInfoModel;
import com.jqtx.windows.infrastructure.feign.model.wakanda.CreditInformationModel;
import com.jqtx.windows.infrastructure.feign.model.wakanda.IdentifyInfoModel;
import com.jqtx.windows.infrastructure.feign.model.wakanda.*;
import com.jqtx.windows.web.request.CreditSubmitRequest;
import com.jqtx.windows.web.response.JsonResult;
import lombok.extern.slf4j.Slf4j;
......@@ -102,6 +99,12 @@ public class CreditSubmitCommand extends AbstractCommand {
BasicInfoModel basicModel = infoModel.getBasicInfo();
String marry = basicModel.getMarriage();
basicModel.setMarriage("99");
DeviceInfoModel deviceInfoModel = infoModel.getDeviceInfo();
if("02".equals(deviceInfoModel.getDeviceType())){
deviceInfoModel.setDeviceType("ios");
}else {
deviceInfoModel.setDeviceType("android");
}
if(StringUtils.isNotBlank(marry)){
basicModel.setMarriage(ZNMarryEnum.getByCode(marry).getMsg());
}
......@@ -135,7 +138,7 @@ public class CreditSubmitCommand extends AbstractCommand {
backUrl.append("USERCREDIT").append("/").append(DateUtil.format(new Date(),"yyyyMMdd")).append("/back_").append(request.getOrderNo()).append(".jpg");
HttpResponse backResponse = HttpRequest.get(idModel.getBackFile()).setConnectionTimeout(5000).execute();
ossUtils.ossUpload(backUrl.toString(), backResponse.bodyStream());
idModel.setFrontFile(ossProperties.getPrivateDomain() + backUrl);
idModel.setBackFile(ossProperties.getPrivateDomain() + backUrl);
StringBuilder bestUrl = new StringBuilder();
bestUrl.append("USERCREDIT").append("/").append(DateUtil.format(new Date(),"yyyyMMdd")).append("/nature_").append(request.getOrderNo()).append(".jpg");
......@@ -143,13 +146,16 @@ public class CreditSubmitCommand extends AbstractCommand {
ossUtils.ossUpload(bestUrl.toString(), natureResponse.bodyStream());
idModel.setNatureFile(ossProperties.getPrivateDomain() + bestUrl);
infoModel.setDeviceInfo(deviceInfoModel);
infoModel.setIdentifyInfo(idModel);
infoModel.setBasicInfo(basicModel);
infoModel.setContinuedLoan(false);
ClientFeignModel clientFeignModel = new ClientFeignModel(infoModel.getBasicInfo().getIdCard(), infoModel.getBasicInfo().getName());
JsonResult<String> clientResult = iClientFeignService.getClientNo(clientFeignModel);
if (!clientResult.isSuccess()) {
throw new BizException(ExceptionCodeEnum.SYSTEM_REMOTE_ERROR);
}
model.setClientNo(clientResult.getResult());
ossUtils.upStringObject(model.getCreditDetailUrl(), JSON.toJSONString(infoModel));
model.setClientCell(basicModel.getPhone());
......
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