Commit 023855bf authored by LSL's avatar LSL

还款jar包

parent 44c76f1c
......@@ -56,7 +56,7 @@ public class BackedCommand extends AbstractCommand {
//修改 windows_plan 还款状态
//修改 windows_loan 还款状态
backedDetail(backedRequest.getLoanNo(), new BigDecimal(backedRequest.getBackAmt()), backedRequest.getBackedNo(), backedRequest);
return JsonResult.success("77777777");
return JsonResult.success();
}
public void creditRepay(BackedRequest backedRequest) {
......
package com.jqtx.windows.web;
import com.jqtx.windows.command.BackedCommand;
import com.jqtx.windows.web.request.BackedRequest;
import com.jqtx.windows.web.response.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.math.BigDecimal;
@RestController
@RequestMapping("/test")
@Api(tags = "网关接口")
@Slf4j
public class Testcontroller {
@Autowired
BackedCommand backedCommand;
@ApiOperation(value = "网关接口")
@PostMapping("/aaaa")
public JsonResult creditSubmit(@RequestBody BackedRequest backedRequest) {
log.info("浙农请求:{}",backedRequest);
backedCommand.creditRepay(backedRequest);
//生成 windows_backed_detail 信息
//修改 windows_plan backAmt 信息
//修改 windows_plan 还款状态
//修改 windows_loan 还款状态
backedCommand.backedDetail(backedRequest.getLoanNo(), new BigDecimal(backedRequest.getBackAmt()), backedRequest.getBackedNo(), backedRequest);
return JsonResult.success("77777777");
}
}
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