62 changed files with 1254 additions and 541 deletions
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,15 @@ |
|||||||
|
FROM bladex/alpine-java:openjdk8-openj9_cn_slim |
||||||
|
|
||||||
|
MAINTAINER h5u@163.com |
||||||
|
|
||||||
|
RUN mkdir -p /logpm/report |
||||||
|
|
||||||
|
WORKDIR /logpm/report |
||||||
|
|
||||||
|
EXPOSE 8900 |
||||||
|
|
||||||
|
ADD ./target/logpm-report.jar ./app.jar |
||||||
|
|
||||||
|
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar","-Xms128m","-Xmx512m", "app.jar"] |
||||||
|
CMD ["--spring.profiles.active=test"] |
||||||
|
|
@ -0,0 +1,15 @@ |
|||||||
|
package com.logpm.report.constant; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author zhaoqiaobo |
||||||
|
* @create 2024-03-14 18:54 |
||||||
|
*/ |
||||||
|
public class ReportConstants { |
||||||
|
|
||||||
|
public static final int HASHMAP_DEFAULT_SIZE = 16; |
||||||
|
|
||||||
|
public static final String PARAM_SPLITTER = ","; |
||||||
|
|
||||||
|
public static final Integer HTTP_SUCCESS_CODE = 200; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,41 @@ |
|||||||
|
package com.logpm.report.query; |
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.Data; |
||||||
|
import org.springblade.core.mp.support.Query; |
||||||
|
|
||||||
|
import java.util.Date; |
||||||
|
|
||||||
|
/** |
||||||
|
* 库存出库报表 query |
||||||
|
* |
||||||
|
* @author zhaoqiaobo |
||||||
|
* @create 2024-03-13 14:21 |
||||||
|
*/ |
||||||
|
@ApiModel(value = "库存出库报表查询对象", description = "库存出库报表查询对象") |
||||||
|
@Data |
||||||
|
public class StockOrderQuery extends Query { |
||||||
|
|
||||||
|
@ApiModelProperty(value = "入库时间开始(范围)", position = 2) |
||||||
|
private Date startWarehouseEntryTime; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "入库时间结束(范围)", position = 3) |
||||||
|
private Date endWarehouseEntryTime; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "仓库(范围)", position = 6) |
||||||
|
private String warehouseRange; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "运单号(范围)", position = 8) |
||||||
|
private String waybillNumberRange; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "商场名称(范围)", position = 10) |
||||||
|
private String mallNameRange; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "收货人(范围)", position = 12) |
||||||
|
private String consigneePersonRange; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "品牌(范围)", position = 14) |
||||||
|
private String brandRange; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,36 @@ |
|||||||
|
package com.logpm.report.reader; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||||
|
import com.logpm.report.mapper.ReportDeliverMapeer; |
||||||
|
import com.logpm.report.service.ExportReader; |
||||||
|
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 StockOrderReader implements ExportReader { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private ReportDeliverMapeer reportDeliverMapeer; |
||||||
|
|
||||||
|
@Override |
||||||
|
public Long getCount(Wrapper query) { |
||||||
|
Page page = new Page(1, 1); |
||||||
|
reportDeliverMapeer.getStockOrderPage(page, query); |
||||||
|
return page.getTotal(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public List<T> findList(Page page, Wrapper query) { |
||||||
|
return reportDeliverMapeer.getStockOrderPage(page,query); |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,169 @@ |
|||||||
|
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 com.fasterxml.jackson.annotation.JsonFormat; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.Data; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
import java.math.BigDecimal; |
||||||
|
import java.util.Date; |
||||||
|
|
||||||
|
/** |
||||||
|
* 在库订单表 vo |
||||||
|
* |
||||||
|
* @author zhaoqiaobo |
||||||
|
* @create 2024-03-06 16:02 |
||||||
|
*/ |
||||||
|
@ColumnWidth(25) |
||||||
|
@HeadRowHeight(20) |
||||||
|
@ContentRowHeight(18) |
||||||
|
@ApiModel(value = "在库订单表", description = "在库订单表") |
||||||
|
@Data |
||||||
|
public class StockOrderVO implements Serializable { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "运单号", position = 7) |
||||||
|
@ExcelProperty("运单号") |
||||||
|
private String waybillNumber; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "服务号") |
||||||
|
@ExcelProperty("服务号") |
||||||
|
private String serviceNumber; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "订单自编号") |
||||||
|
@ExcelProperty("订单自编号") |
||||||
|
private String orderCode; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "商场名称", position = 9) |
||||||
|
@ExcelProperty("商场名称") |
||||||
|
private String mallName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "货物名称") |
||||||
|
@ExcelProperty("货物名称") |
||||||
|
private String descriptionGoods; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "仓库", position = 5) |
||||||
|
@ExcelProperty("仓库") |
||||||
|
private String warehouse; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "入库时间", position = 1) |
||||||
|
@ExcelProperty("入库时间") |
||||||
|
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
private Date warehouseEntryTime; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "最新入库时间") |
||||||
|
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
@ExcelProperty("最新入库时间") |
||||||
|
private Date warehouseEntryTimeEnd; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "在库时间") |
||||||
|
@ExcelProperty("在库时间") |
||||||
|
private String storeTime; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "收货单位") |
||||||
|
@ExcelProperty("收货单位") |
||||||
|
private String consigneeUnit; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "收货人", position = 11) |
||||||
|
@ExcelProperty("收货人") |
||||||
|
private String consigneePerson; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "订单总件数") |
||||||
|
@ExcelProperty("订单总件数") |
||||||
|
private Integer totalNumber; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "在库件数") |
||||||
|
@ExcelProperty("在库件数") |
||||||
|
private Integer handQuantity; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "未入库数量") |
||||||
|
@ExcelProperty("未入库数量") |
||||||
|
private Integer notReceived; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "分拣件数") |
||||||
|
@ExcelProperty("分拣件数") |
||||||
|
private Integer sortingQuantity; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "配送件数") |
||||||
|
@ExcelProperty("配送件数") |
||||||
|
private Integer deliveryQuantity; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "中转件数") |
||||||
|
@ExcelProperty("中转件数") |
||||||
|
private Integer transferQuantity; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "签收件数") |
||||||
|
@ExcelProperty("签收件数") |
||||||
|
private Integer signinQuantity; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "上架状态") |
||||||
|
@ExcelProperty("上架状态") |
||||||
|
private String groundingStatus; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "品牌", position = 13) |
||||||
|
@ExcelProperty("品牌") |
||||||
|
private String brand; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "所在托盘") |
||||||
|
@ExcelProperty("所在托盘") |
||||||
|
private String trays; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "所在货位") |
||||||
|
@ExcelProperty("所在货位") |
||||||
|
private String allocation; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "冻结状态") |
||||||
|
@ExcelProperty("冻结状态") |
||||||
|
private String freezeStatus; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "订单状态") |
||||||
|
@ExcelProperty("订单状态") |
||||||
|
private String orderStatus; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "预约状态") |
||||||
|
@ExcelProperty("预约状态") |
||||||
|
private String reservationStatus; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "备货状态") |
||||||
|
@ExcelProperty("备货状态") |
||||||
|
private String stockupStatus; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "是否齐套") |
||||||
|
@ExcelProperty("是否齐套") |
||||||
|
private Integer completeSet; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "服务类型") |
||||||
|
@ExcelProperty("服务类型") |
||||||
|
private String typeService; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "顾客名字") |
||||||
|
@ExcelProperty("顾客名字") |
||||||
|
private String customerName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "顾客电话") |
||||||
|
@ExcelProperty("顾客电话") |
||||||
|
private String customerTelephone; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "顾客地址") |
||||||
|
@ExcelProperty("顾客地址") |
||||||
|
private String customerAddress; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "增值服务") |
||||||
|
@ExcelProperty("增值服务") |
||||||
|
private BigDecimal fee; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人") |
||||||
|
@ExcelProperty("创建人") |
||||||
|
private String createUser; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建时间") |
||||||
|
@ExcelProperty("创建时间") |
||||||
|
private String createTime; |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue