|
@@ -16,10 +16,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.poi.ss.usermodel.*;
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
-import org.springframework.web.bind.annotation.CrossOrigin;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
@@ -54,7 +51,7 @@ public class ApiStopExportController extends BaseController {
|
|
|
private RedisCache redisCache;
|
|
|
|
|
|
@ApiOperation("导出停机数据")
|
|
|
- @GetMapping("/api/export/stops")
|
|
|
+ @RequestMapping("/api/export/stops")
|
|
|
@CrossOrigin(origins = "*")
|
|
|
public void stopsExport(String start, String end, HttpServletResponse response) throws ParseException {
|
|
|
Date sTime = DateUtils.parseDate(start, DateUtils.YYYY_MM_DD_HH_MM_SS);
|
|
@@ -151,7 +148,7 @@ public class ApiStopExportController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("导出当前停机明细")
|
|
|
- @GetMapping("/api/export/stop")
|
|
|
+ @RequestMapping("/api/export/stop")
|
|
|
@CrossOrigin(origins = "*")
|
|
|
public void stopExport(HttpServletResponse response) throws ParseException {
|
|
|
String[] stopStr = {"", "停经片停机", "断纱停机", "人工停机", "断电停机", "设备故障停机", "落布米数达到停机", "叫料停机"};
|
|
@@ -303,7 +300,7 @@ public class ApiStopExportController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("停机分类并发导出")
|
|
|
- @GetMapping("/api/export/stops/type/{type}")
|
|
|
+ @RequestMapping("/api/export/stops/type/{type}")
|
|
|
@CrossOrigin(origins = "*")
|
|
|
public void stopsTypeExport(@PathVariable Integer type, String start, String end, Integer st, Integer et, HttpServletResponse response) {
|
|
|
LocalDate s = LocalDate.parse(start);
|