Commit 94b7d36e authored by liuzicheng's avatar liuzicheng

初始化项目

parent 82487257
package com.jqtx.windows.command; package com.jqtx.windows.command;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import com.alibaba.fastjson.JSON;
import com.jqtx.windows.common.exception.BizException; import com.jqtx.windows.common.exception.BizException;
import com.jqtx.windows.common.factory.AbstractCommand; import com.jqtx.windows.common.factory.AbstractCommand;
import com.jqtx.windows.common.factory.RuntimeContextHolder; import com.jqtx.windows.common.factory.RuntimeContextHolder;
...@@ -29,7 +30,7 @@ public class LoanStatusCommand extends AbstractCommand { ...@@ -29,7 +30,7 @@ public class LoanStatusCommand extends AbstractCommand {
@Override @Override
public JsonResult execute() { public JsonResult execute() {
String request = RuntimeContextHolder.currentRuntimeContext().getRequestBody(); String request = RuntimeContextHolder.currentRuntimeContext().getRequestBody();
LoanSubmitResponse loanSubmitResponse = BeanUtil.toBean(request, LoanSubmitResponse.class); LoanSubmitResponse loanSubmitResponse = JSON.parseObject(request, LoanSubmitResponse.class);
LoanModel byLoanNo = loanComponent.getByLoanNo(loanSubmitResponse.getLoanNo()); LoanModel byLoanNo = loanComponent.getByLoanNo(loanSubmitResponse.getLoanNo());
if (Objects.isNull(byLoanNo)) { if (Objects.isNull(byLoanNo)) {
throw new BizException(ExceptionCodeEnum.BIZ_CREDIT_NOT_FOUND_ERROR); throw new BizException(ExceptionCodeEnum.BIZ_CREDIT_NOT_FOUND_ERROR);
......
package com.jqtx.windows.command; package com.jqtx.windows.command;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import com.alibaba.fastjson.JSON;
import com.jqtx.windows.common.exception.BizException; import com.jqtx.windows.common.exception.BizException;
import com.jqtx.windows.common.factory.AbstractCommand; import com.jqtx.windows.common.factory.AbstractCommand;
import com.jqtx.windows.common.factory.RuntimeContextHolder; import com.jqtx.windows.common.factory.RuntimeContextHolder;
...@@ -38,7 +39,7 @@ public class LoanSubmitCommand extends AbstractCommand { ...@@ -38,7 +39,7 @@ public class LoanSubmitCommand extends AbstractCommand {
@Override @Override
public JsonResult execute() { public JsonResult execute() {
String request = RuntimeContextHolder.currentRuntimeContext().getRequestBody(); String request = RuntimeContextHolder.currentRuntimeContext().getRequestBody();
LoanSubmitResponse loanSubmitResponse = BeanUtil.toBean(request, LoanSubmitResponse.class); LoanSubmitResponse loanSubmitResponse = JSON.parseObject(request, LoanSubmitResponse.class);
CreditModel byOrderNo = creditComponent.getByOrderNo(loanSubmitResponse.getOrderNo()); CreditModel byOrderNo = creditComponent.getByOrderNo(loanSubmitResponse.getOrderNo());
if (Objects.isNull(byOrderNo)) { if (Objects.isNull(byOrderNo)) {
throw new BizException(ExceptionCodeEnum.BIZ_CREDIT_NOT_FOUND_ERROR); throw new BizException(ExceptionCodeEnum.BIZ_CREDIT_NOT_FOUND_ERROR);
......
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