|
|
|
@ -5,11 +5,14 @@ import com.github.pagehelper.PageInfo;
|
|
|
|
import com.zhehekeji.common.util.ValidatorUtil;
|
|
|
|
import com.zhehekeji.common.util.ValidatorUtil;
|
|
|
|
import com.zhehekeji.core.pojo.Result;
|
|
|
|
import com.zhehekeji.core.pojo.Result;
|
|
|
|
import com.zhehekeji.web.entity.Stock;
|
|
|
|
import com.zhehekeji.web.entity.Stock;
|
|
|
|
|
|
|
|
import com.zhehekeji.web.entity.StockErrorUrls;
|
|
|
|
import com.zhehekeji.web.pojo.category.PageSearch;
|
|
|
|
import com.zhehekeji.web.pojo.category.PageSearch;
|
|
|
|
import com.zhehekeji.web.pojo.stock.*;
|
|
|
|
import com.zhehekeji.web.pojo.stock.*;
|
|
|
|
|
|
|
|
import com.zhehekeji.web.service.PlcCmdInfo;
|
|
|
|
import com.zhehekeji.web.service.StockService;
|
|
|
|
import com.zhehekeji.web.service.StockService;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import org.springframework.core.io.ClassPathResource;
|
|
|
|
import org.springframework.core.io.ClassPathResource;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
@ -107,6 +110,14 @@ public class StockController {
|
|
|
|
EasyExcel.write(os, StockExportExcel.class).sheet().doWrite(excels);
|
|
|
|
EasyExcel.write(os, StockExportExcel.class).sheet().doWrite(excels);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/getStockErrorUrls")
|
|
|
|
|
|
|
|
public Result<List<StockErrorUrls>> getStockErrorUrls(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<StockErrorUrls> urls =stockService.orderStop();
|
|
|
|
|
|
|
|
return Result.success(urls);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "导出巷道excel")
|
|
|
|
@ApiOperation(value = "导出巷道excel")
|
|
|
|
@RequestMapping(value = "/exportAll", method = RequestMethod.GET)
|
|
|
|
@RequestMapping(value = "/exportAll", method = RequestMethod.GET)
|
|
|
|
public void exportAll(HttpServletResponse response) throws IOException {
|
|
|
|
public void exportAll(HttpServletResponse response) throws IOException {
|
|
|
|
|