Commit ef63ab0c authored by LSL's avatar LSL

浙农对账文件

parent 439905fc
......@@ -4,10 +4,12 @@ import com.jqtx.windows.service.SftpService;
import com.jqtx.windows.web.response.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
......@@ -26,7 +28,8 @@ public class SftpController {
@ApiOperation(value = "获取浙农文件", tags = {"浙农文件接口"}, notes = "获取浙农文件")
@GetMapping("/getFileByType")
public JsonResult<String> getFileByType(String type, String date) {
public JsonResult<String> getFileByType(@RequestParam @ApiParam(name = "type", value = "文件类型", required = true) String type,
@RequestParam @ApiParam(name = "date", value = "日期", required = true) String date) {
log.info("获取浙农文件:{},{}", date, type);
return sftpService.getFileByType(date, type);
}
......
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