Commit ac24534e authored by LSL's avatar LSL

还款限制修改

parent a2f246ac
package com.jqtx.windows.web;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.util.CharsetUtil;
import cn.hutool.extra.ssh.Sftp;
import com.jqtx.infrastructure.oss.starter.config.OssUtils;
import com.jqtx.infrastructure.util.AKAESUtil;
import com.jqtx.windows.common.factory.CommandProxy;
import com.jqtx.windows.web.response.JsonResult;
......@@ -13,6 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.io.File;
import java.io.FileOutputStream;
@RestController
@RequestMapping("/zhenong/v1")
......@@ -23,6 +26,9 @@ public class BaseController {
@Autowired
private CommandProxy commandProxy;
@Autowired
private OssUtils ossUtils;
@ApiOperation(value = "网关接口")
@PostMapping("/{url}")
public JsonResult creditSubmit(@RequestBody String requestBody, @PathVariable String url) {
......@@ -43,8 +49,8 @@ public class BaseController {
public JsonResult ccc() {
Sftp sftp = new Sftp("115.238.89.106", 9901, "xiaohua_fr", "R7MADMx1lwMN5k4v", CharsetUtil.CHARSET_UTF_8);
sftp.cd("/download/compensatory/"+"20231113");
File file = new File("root/windows/aaa.txt");
sftp.download("compensatory_check_20231113.ok",file);
sftp.get("compensatory_check_20231113.ok","/aaa.txt");
ossUtils.ossUpload("ZN/compensatory/aaa.txt", FileUtil.file("/aaa.txt"));
return null;
}
......
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