Commit a2f246ac authored by LSL's avatar LSL

还款限制修改

parent d4bf8310
......@@ -12,6 +12,8 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.io.File;
@RestController
@RequestMapping("/zhenong/v1")
@Api(tags = "网关接口")
......@@ -41,7 +43,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");
sftp.get("compensatory_check_20231113.ok","root/windows/aaa.txt");
File file = new File("root/windows/aaa.txt");
sftp.download("compensatory_check_20231113.ok",file);
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