6 changed files with 220 additions and 1 deletions
@ -0,0 +1,26 @@
|
||||
package com.logpm.warehouse.excel; |
||||
|
||||
import com.logpm.warehouse.service.IWarehouseWarehousingEntryService; |
||||
import lombok.RequiredArgsConstructor; |
||||
import org.springblade.core.excel.support.ExcelImporter; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @program: LogisticsPlatform-Service |
||||
* @description: |
||||
* @author: cyz |
||||
* @create: 2023-07-13 17:26 |
||||
**/ |
||||
@RequiredArgsConstructor |
||||
public class WarehouseEntryImporter implements ExcelImporter<WarehousingEntryDetailExcel> { |
||||
|
||||
private final IWarehouseWarehousingEntryService service; |
||||
private final Boolean isCovered; |
||||
|
||||
|
||||
@Override |
||||
public void save(List<WarehousingEntryDetailExcel> data) { |
||||
service.importUser(data, isCovered); |
||||
} |
||||
} |
@ -0,0 +1,156 @@
|
||||
package com.logpm.warehouse.excel; |
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty; |
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
||||
import com.alibaba.excel.annotation.write.style.ContentRowHeight; |
||||
import com.alibaba.excel.annotation.write.style.HeadRowHeight; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* @program: LogisticsPlatform-Service |
||||
* @description: |
||||
* @author: cyz |
||||
* @create: 2023-07-13 17:34 |
||||
**/ |
||||
@Data |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
public class WarehousingEntryDetailExcel implements Serializable { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 入库批次 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("入库批次") |
||||
private String receiptBatch; |
||||
/** |
||||
* 入库时间 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("入库时间") |
||||
private Date receiptDate; |
||||
/** |
||||
* 客户名称 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("客户名称") |
||||
private String customerName; |
||||
/** |
||||
* 门店名称 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("门店名称") |
||||
private String storeName; |
||||
// /**
|
||||
// * 订单单号
|
||||
// */
|
||||
// @ColumnWidth(20)
|
||||
// @ExcelProperty("订单单号")
|
||||
// private String orderNumber;
|
||||
// /**
|
||||
// * 运单号
|
||||
// */
|
||||
// @ColumnWidth(20)
|
||||
// @ExcelProperty("运单号")
|
||||
// private String waybillNumber;
|
||||
/** |
||||
* 所在仓库 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("仓库") |
||||
private String warehouse; |
||||
/** |
||||
* 物流车次 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("物流车次") |
||||
private String trainNumber; |
||||
/** |
||||
* 入库车牌 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("入库车牌") |
||||
private String licensePlate; |
||||
/** |
||||
* 服务类型 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("服务类型") |
||||
private String serviceType; |
||||
// /**
|
||||
// * 来源
|
||||
// */
|
||||
// @ColumnWidth(20)
|
||||
// @ExcelProperty("来源")
|
||||
// private String source;
|
||||
// /**
|
||||
// * 入库状态
|
||||
// */
|
||||
// @ColumnWidth(20)
|
||||
// @ExcelProperty("入库状态")
|
||||
// private String condition;
|
||||
// /**
|
||||
// * 入库总件数
|
||||
// */
|
||||
// @ColumnWidth(20)
|
||||
// @ExcelProperty("入库总件数")
|
||||
// private Integer totalInput;
|
||||
|
||||
/** |
||||
* SKU |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("SKU") |
||||
private String sku; |
||||
/** |
||||
* 物品名称 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("物品名称") |
||||
private String productName; |
||||
/** |
||||
* 物品编码 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("物品编码") |
||||
private String productCode; |
||||
/** |
||||
* 物品单位 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("物品单位") |
||||
private String productUnit; |
||||
/** |
||||
* 包装数量 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("包装数量") |
||||
private String packagingNumber; |
||||
/** |
||||
* 包装规格 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("包装规格") |
||||
private String packagingSpecifications; |
||||
/** |
||||
* 创建入库数量 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("入库数量") |
||||
private String createInventory; |
||||
/** |
||||
* 存放位置 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("存放位置") |
||||
private String positions; |
||||
|
||||
|
||||
|
||||
|
||||
} |
Loading…
Reference in new issue