盘点导出

merge-requests/5/merge
yiming 4 years ago
parent 90f2815017
commit ad41d5fddb

@ -8,17 +8,20 @@ import java.time.LocalDateTime;
@Data @Data
public class StockExportExcel { public class StockExportExcel {
@ExcelProperty(index = 0, value = "巷道") @ExcelProperty(index = 0, value = "巷道名称")
private String streetName; private String streetName;
@ExcelProperty(index = 4, value = "品规") @ExcelProperty(index = 6, value = "盘点批次号")
private String category; private String lotnum;
@ExcelProperty(index = 4, value = "条码")
private String code;
@ExcelProperty(index = 1, value = "货架号") @ExcelProperty(index = 1, value = "货架号")
private String shelveId; private String shelveId;
@ExcelProperty(index = 5, value = "数量") // @ExcelProperty(index = 5, value = "数量")
private Integer count; // private Integer count;
@ExcelProperty(index = 2, value = "行") @ExcelProperty(index = 2, value = "行")
private Integer row; private Integer row;
@ -26,10 +29,10 @@ public class StockExportExcel {
@ExcelProperty(index = 3, value = "列") @ExcelProperty(index = 3, value = "列")
private Integer column; private Integer column;
@ExcelProperty(index = 6, value = "人工复核结果", converter = StockStatusConvert.class) @ExcelProperty(index = 5, value = "盘点结果", converter = StockStatusConvert.class)
private Integer status; private Integer status;
@ExcelProperty(index = 7, value = "复核时间", converter = LocalDateTimeConvert.class) @ExcelProperty(index = 7, value = "时间", converter = LocalDateTimeConvert.class)
private LocalDateTime exportTime; private LocalDateTime exportTime;
} }

@ -264,9 +264,10 @@ public class StockService {
List<StockExportExcel> stockExportExcels = new ArrayList<>(stocks.size()); List<StockExportExcel> stockExportExcels = new ArrayList<>(stocks.size());
stocks.forEach(stock -> { stocks.forEach(stock -> {
StockExportExcel stockExportExcel = new StockExportExcel(); StockExportExcel stockExportExcel = new StockExportExcel();
stockExportExcel.setCategory(stock.getCategory()); stockExportExcel.setCode(stock.getTrayCode());
stockExportExcel.setLotnum(stock.getLotnum());
stockExportExcel.setColumn(stock.getColumn()); stockExportExcel.setColumn(stock.getColumn());
stockExportExcel.setCount(stock.getCount()); //stockExportExcel.setCount(stock.getCount());
stockExportExcel.setRow(stock.getRow()); stockExportExcel.setRow(stock.getRow());
stockExportExcel.setStreetName(street.getName()); stockExportExcel.setStreetName(street.getName());
stockExportExcel.setExportTime(stock.getExportTime()); stockExportExcel.setExportTime(stock.getExportTime());

Loading…
Cancel
Save