汤建军
11 months ago
17 changed files with 270 additions and 26 deletions
@ -0,0 +1,36 @@
|
||||
package com.logpm.report.reader; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||
import com.logpm.report.mapper.ReportStockMapeer; |
||||
import com.logpm.report.service.ExportReaderService; |
||||
import org.apache.poi.ss.formula.functions.T; |
||||
import org.springframework.stereotype.Component; |
||||
|
||||
import javax.annotation.Resource; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* |
||||
* @author zhaoqiaobo |
||||
* @create 2024-03-08 9:50 |
||||
*/ |
||||
@Component |
||||
public class DeliveryInStocksReader implements ExportReaderService { |
||||
|
||||
@Resource |
||||
private ReportStockMapeer reportStockMapeer; |
||||
|
||||
@Override |
||||
public Long getCount(QueryWrapper query) { |
||||
Page page = new Page(1, 1); |
||||
reportStockMapeer.getInStocks(page, query); |
||||
return page.getTotal(); |
||||
} |
||||
|
||||
@Override |
||||
public List<T> findList(Page page, QueryWrapper query) { |
||||
return reportStockMapeer.getInStocks(page,query); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,71 @@
|
||||
package com.logpm.report.vo; |
||||
|
||||
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 io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* 库存入库明细 |
||||
* @author zhaoqiaobo |
||||
* @create 2024-03-06 16:02 |
||||
*/ |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
@ApiModel(value = "库存入库明细", description = "库存入库明细") |
||||
@Data |
||||
public class ReportInStockVO implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
@ApiModelProperty(value = "仓库") |
||||
@ExcelProperty("仓库") |
||||
private String warehouseName; |
||||
|
||||
@ApiModelProperty(value = "商场名称") |
||||
@ExcelProperty("商场名称") |
||||
private String marketName; |
||||
|
||||
@ApiModelProperty(value = "类型") |
||||
@ExcelProperty("类型") |
||||
private String serviceType; |
||||
|
||||
@ApiModelProperty(value = "物料编码") |
||||
@ExcelProperty("物料编码") |
||||
private String cargoNumber; |
||||
|
||||
@ApiModelProperty(value = "物料名称") |
||||
@ExcelProperty("物料名称") |
||||
private String descriptionGoods; |
||||
|
||||
@ApiModelProperty(value = "入库时间") |
||||
@ExcelProperty("入库时间") |
||||
private String warehousingTime; |
||||
|
||||
@ApiModelProperty(value = "运单号") |
||||
@ExcelProperty("运单号") |
||||
private String despatch; |
||||
|
||||
@ApiModelProperty(value = "订单自编码") |
||||
@ExcelProperty("订单自编码") |
||||
private String orderCode; |
||||
|
||||
@ApiModelProperty(value = "包条码") |
||||
@ExcelProperty("包条码") |
||||
private String packageCode; |
||||
|
||||
@ApiModelProperty(value = "入库数") |
||||
@ExcelProperty("入库数") |
||||
private String quantityStock; |
||||
|
||||
@ApiModelProperty(value = "货位信息") |
||||
@ExcelProperty("货位信息") |
||||
private String allocationTitle; |
||||
|
||||
} |
Loading…
Reference in new issue