导出盤點

taiwan-lingli-new
yiming 4 years ago
parent c4dca6d40f
commit d011c5b63c

@ -8,28 +8,25 @@ import java.time.LocalDateTime;
@Data
public class StockExportExcel {
@ExcelProperty(index = 0, value = "巷道")
@ExcelProperty(index = 0, value = "巷道")
private String streetName;
@ExcelProperty(index = 4, value = "品规")
private String category;
@ExcelProperty(index = 4, value = "條碼")
private String code;
@ExcelProperty(index = 1, value = "货架号")
@ExcelProperty(index = 1, value = "貨架號")
private String shelveId;
@ExcelProperty(index = 5, value = "数量")
private Integer count;
@ExcelProperty(index = 2, value = "行")
private Integer row;
@ExcelProperty(index = 3, value = "列")
private Integer column;
@ExcelProperty(index = 6, value = "人工复核结果", converter = StockStatusConvert.class)
@ExcelProperty(index = 5, value = "盤點結果", converter = StockStatusConvert.class)
private Integer status;
@ExcelProperty(index = 7, value = "复核时间", converter = LocalDateTimeConvert.class)
@ExcelProperty(index = 6, value = "時間", converter = LocalDateTimeConvert.class)
private LocalDateTime exportTime;
}

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

Loading…
Cancel
Save