98 changed files with 2785 additions and 201 deletions
@ -0,0 +1,33 @@
|
||||
package org.springblade.common.cache; |
||||
|
||||
import lombok.AllArgsConstructor; |
||||
import lombok.Data; |
||||
import lombok.Getter; |
||||
|
||||
/** |
||||
* 系统查询缓存名称定义 |
||||
*/ |
||||
@AllArgsConstructor |
||||
@Getter |
||||
public enum CacheObjNames { |
||||
|
||||
/** |
||||
* 基础数据模块 当前登陆人操作仓库的缓存 |
||||
*/ |
||||
basic_data_warehourse_list("getMyWarehouseList","basicdataWarehouseList"); |
||||
|
||||
|
||||
/** |
||||
* 缓存名称 |
||||
*/ |
||||
final String cacheName; |
||||
|
||||
|
||||
/** |
||||
* 缓存前缀 |
||||
*/ |
||||
final String keyPrefix; |
||||
|
||||
|
||||
|
||||
} |
@ -0,0 +1,181 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.distribution.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import java.util.Date; |
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* 滞留扫描操作表 实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2023-11-03 |
||||
*/ |
||||
@Data |
||||
@TableName("logpm_distribution_retention_scan") |
||||
@ApiModel(value = "DistributionRetentionScan对象", description = "滞留扫描操作表") |
||||
public class DistributionRetentionScanEntity implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
/** |
||||
* 主键 |
||||
*/ |
||||
@JsonSerialize(using = ToStringSerializer.class) |
||||
@ApiModelProperty(value = "主键") |
||||
@TableId(value = "id", type = IdType.ASSIGN_ID) |
||||
private Long id; |
||||
|
||||
/** |
||||
* 租户号 |
||||
*/ |
||||
@ApiModelProperty(value = "租户号") |
||||
private String tenantId; |
||||
/** |
||||
* 是否已删除 |
||||
*/ |
||||
@ApiModelProperty(value = "是否已删除") |
||||
private Integer isDeleted; |
||||
/** |
||||
* 预留1 |
||||
*/ |
||||
@ApiModelProperty(value = "预留1") |
||||
private String reserve1; |
||||
/** |
||||
* 预留2 |
||||
*/ |
||||
@ApiModelProperty(value = "预留2") |
||||
private String reserve2; |
||||
/** |
||||
* 预留3 |
||||
*/ |
||||
@ApiModelProperty(value = "预留3") |
||||
private String reserve3; |
||||
/** |
||||
* 预留4 |
||||
*/ |
||||
@ApiModelProperty(value = "预留4") |
||||
private String reserve4; |
||||
/** |
||||
* 预留5 |
||||
*/ |
||||
@ApiModelProperty(value = "预留5") |
||||
private String reserve5; |
||||
/** |
||||
* 配送车次号 |
||||
*/ |
||||
@ApiModelProperty(value = "配送车次号") |
||||
private String trainNumber; |
||||
/** |
||||
* 订单ID |
||||
*/ |
||||
@ApiModelProperty(value = "订单ID") |
||||
private Long orderId; |
||||
/** |
||||
* 库存品ID |
||||
*/ |
||||
@ApiModelProperty(value = "库存品ID") |
||||
private Long inventoryId; |
||||
/** |
||||
* 滞留类型 1-包件、2-零担(这里会关联到具体的品类)、3-库存品 |
||||
*/ |
||||
@ApiModelProperty(value = "滞留类型 1-包件、2-零担(这里会关联到具体的品类)、3-库存品") |
||||
private Integer conditions; |
||||
/** |
||||
* 物料编码(库存品) |
||||
*/ |
||||
@ApiModelProperty(value = "物料编码(库存品)") |
||||
private String materialNumber; |
||||
/** |
||||
* 物料名称(库存品) |
||||
*/ |
||||
@ApiModelProperty(value = "物料名称(库存品)") |
||||
private String materialName; |
||||
/** |
||||
* 预约客户ID |
||||
*/ |
||||
@ApiModelProperty(value = "预约客户ID") |
||||
private Long reservationId; |
||||
/** |
||||
* 订单自编号(库存品没有) |
||||
*/ |
||||
@ApiModelProperty(value = "订单自编号(库存品没有)") |
||||
private String orderCode; |
||||
/** |
||||
* 预约单号 |
||||
*/ |
||||
@ApiModelProperty(value = "预约单号") |
||||
private String reservationCode; |
||||
/** |
||||
* 扫描类型:1-包件、2-订单、3-托盘、4... |
||||
*/ |
||||
@ApiModelProperty(value = "扫描类型:1-包件、2-订单、3-托盘、4...") |
||||
private Integer scanType; |
||||
/** |
||||
* 包件ID |
||||
*/ |
||||
@ApiModelProperty(value = "包件ID") |
||||
private Long orderPackageId; |
||||
/** |
||||
* 包条码 |
||||
*/ |
||||
@ApiModelProperty(value = "包条码") |
||||
private String orderPackageCode; |
||||
/** |
||||
* 滞留数量 |
||||
*/ |
||||
@ApiModelProperty(value = "滞留数量") |
||||
private Integer retentionQuantity; |
||||
/** |
||||
* 滞留扫描操作人名称 |
||||
*/ |
||||
@ApiModelProperty(value = "滞留扫描操作人名称") |
||||
private String retentionScanUsername; |
||||
/** |
||||
* 滞留扫描操作人Id |
||||
*/ |
||||
@ApiModelProperty(value = "滞留扫描操作人Id") |
||||
private String retentionScanUserId; |
||||
/** |
||||
* 滞留操作备注 |
||||
*/ |
||||
@ApiModelProperty(value = "滞留操作备注") |
||||
private String remarks; |
||||
/** |
||||
* 滞留扫描时间 |
||||
*/ |
||||
@ApiModelProperty(value = "滞留扫描时间") |
||||
private Date retentionScanTime; |
||||
/** |
||||
* 滞留方式 1-PDA、2-PC |
||||
*/ |
||||
@ApiModelProperty(value = "滞留方式 1-PDA、2-PC") |
||||
private Integer retentionWay; |
||||
/** |
||||
* 配送任务ID |
||||
*/ |
||||
@ApiModelProperty(value = "配送任务ID") |
||||
private Long deliveryListId; |
||||
|
||||
} |
@ -0,0 +1,12 @@
|
||||
package com.logpm.trunkline.dto; |
||||
|
||||
import com.logpm.trunkline.entity.TrunklineBillladingEntity; |
||||
import lombok.Data; |
||||
|
||||
@Data |
||||
public class BillladingDTO extends TrunklineBillladingEntity { |
||||
|
||||
private Integer pageNum; |
||||
private Integer pageSize; |
||||
|
||||
} |
@ -0,0 +1,92 @@
|
||||
package com.logpm.trunkline.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.tenant.mp.TenantEntity; |
||||
|
||||
@Data |
||||
@TableName("logpm_trunkline_advance_detail") |
||||
@ApiModel(value = "TrunklineAdvanceDetail对象", description = "暂存单包件数据表") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class TrunklineAdvanceDetailEntity extends TenantEntity { |
||||
|
||||
/** 预留1 */ |
||||
@ApiModelProperty(name = "预留1",notes = "") |
||||
private String reserve1 ; |
||||
/** 预留2 */ |
||||
@ApiModelProperty(name = "预留2",notes = "") |
||||
private String reserve2 ; |
||||
/** 预留3 */ |
||||
@ApiModelProperty(name = "预留3",notes = "") |
||||
private String reserve3 ; |
||||
/** 预留4 */ |
||||
@ApiModelProperty(name = "预留4",notes = "") |
||||
private String reserve4 ; |
||||
/** 预留5 */ |
||||
@ApiModelProperty(name = "预留5",notes = "") |
||||
private String reserve5 ; |
||||
/** 仓库id */ |
||||
@ApiModelProperty(name = "仓库id",notes = "") |
||||
private Long warehouseId ; |
||||
/** 仓库名称 */ |
||||
@ApiModelProperty(name = "仓库名称",notes = "") |
||||
private String warehouseName ; |
||||
/** 暂存单id */ |
||||
@ApiModelProperty(name = "暂存单id",notes = "") |
||||
private Long advanceId ; |
||||
/** 订单自编号 */ |
||||
@ApiModelProperty(name = "订单自编号",notes = "") |
||||
private String orderCode ; |
||||
/** 品牌 */ |
||||
@ApiModelProperty(name = "品牌",notes = "") |
||||
private String brand ; |
||||
/** 订单来源 */ |
||||
@ApiModelProperty(name = "订单来源",notes = "") |
||||
private String systemType ; |
||||
/** 一级品类名称 */ |
||||
@ApiModelProperty(name = "一级品类名称",notes = "") |
||||
private String firstPackName ; |
||||
/** 一级品类编码 */ |
||||
@ApiModelProperty(name = "一级品类编码",notes = "") |
||||
private String firstPackCode ; |
||||
/** 二级品类名称 */ |
||||
@ApiModelProperty(name = "二级品类名称",notes = "") |
||||
private String secondPackName ; |
||||
/** 二级品类编码 */ |
||||
@ApiModelProperty(name = "二级品类编码",notes = "") |
||||
private String secondPackCode ; |
||||
/** 三级品类名称 */ |
||||
@ApiModelProperty(name = "三级品类名称",notes = "") |
||||
private String thirdPackName ; |
||||
/** 三级品类编码 */ |
||||
@ApiModelProperty(name = "三级品类编码",notes = "") |
||||
private String thirdPackCode ; |
||||
/** 基地名称 */ |
||||
@ApiModelProperty(name = "基地名称",notes = "") |
||||
private String siteName ; |
||||
/** 基地编码 */ |
||||
@ApiModelProperty(name = "基地编码",notes = "") |
||||
private String siteCode ; |
||||
/** 数量 */ |
||||
@ApiModelProperty(name = "数量",notes = "") |
||||
private Integer quantity ; |
||||
/** 包件码 */ |
||||
@ApiModelProperty(name = "包件码",notes = "") |
||||
private String orderPackageCode ; |
||||
/** 车次号 */ |
||||
@ApiModelProperty(name = "车次号",notes = "") |
||||
private String trainNumber ; |
||||
/** 服务号 */ |
||||
@ApiModelProperty(name = "服务号",notes = "") |
||||
private String serviceNum ; |
||||
/** 运单号 */ |
||||
@ApiModelProperty(name = "运单号",notes = "") |
||||
private String waybillNo ; |
||||
/** 包件状态 */ |
||||
@ApiModelProperty(name = "包件状态 0未入库 1已入库",notes = "") |
||||
private String packageStatus ; |
||||
|
||||
} |
@ -0,0 +1,116 @@
|
||||
package com.logpm.trunkline.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.tenant.mp.TenantEntity; |
||||
|
||||
@Data |
||||
@TableName("logpm_trunkline_advance") |
||||
@ApiModel(value = "TrunklineAdvance对象", description = "暂存单数据表") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class TrunklineAdvanceEntity extends TenantEntity { |
||||
|
||||
/** 预留1 */ |
||||
@ApiModelProperty(name = "预留1",notes = "") |
||||
private String reserve1 ; |
||||
/** 预留2 */ |
||||
@ApiModelProperty(name = "预留2",notes = "") |
||||
private String reserve2 ; |
||||
/** 预留3 */ |
||||
@ApiModelProperty(name = "预留3",notes = "") |
||||
private String reserve3 ; |
||||
/** 预留4 */ |
||||
@ApiModelProperty(name = "预留4",notes = "") |
||||
private String reserve4 ; |
||||
/** 预留5 */ |
||||
@ApiModelProperty(name = "预留5",notes = "") |
||||
private String reserve5 ; |
||||
/** 仓库id */ |
||||
@ApiModelProperty(name = "仓库id",notes = "") |
||||
private Long warehouseId ; |
||||
/** 仓库名称 */ |
||||
@ApiModelProperty(name = "仓库名称",notes = "") |
||||
private String warehouseName ; |
||||
/** 订单自编码 */ |
||||
@ApiModelProperty(name = "订单自编码",notes = "") |
||||
private String orderCode ; |
||||
/** 基地 */ |
||||
@ApiModelProperty(name = "基地",notes = "") |
||||
private String siteName ; |
||||
/** 区域 */ |
||||
@ApiModelProperty(name = "区域",notes = "") |
||||
private String area ; |
||||
/** 订单类型 */ |
||||
@ApiModelProperty(name = "订单类型",notes = "") |
||||
private String orderType ; |
||||
/** 品牌 */ |
||||
@ApiModelProperty(name = "品牌",notes = "") |
||||
private String brand ; |
||||
/** 订单总数 */ |
||||
@ApiModelProperty(name = "订单总数",notes = "") |
||||
private Integer totalNum ; |
||||
/** 品名 */ |
||||
@ApiModelProperty(name = "品名",notes = "") |
||||
private String packName ; |
||||
/** 品名编码 */ |
||||
@ApiModelProperty(name = "品名编码",notes = "") |
||||
private String packCode ; |
||||
/** 商场编码 */ |
||||
@ApiModelProperty(name = "商场编码",notes = "") |
||||
private String dealerCode ; |
||||
/** 商场名称 */ |
||||
@ApiModelProperty(name = "商场名称",notes = "") |
||||
private String dealerName ; |
||||
/** 承运商 */ |
||||
@ApiModelProperty(name = "承运商",notes = "") |
||||
private String carrierName ; |
||||
/** 客户名称 */ |
||||
@ApiModelProperty(name = "客户名称",notes = "") |
||||
private String customerName ; |
||||
/** 客户电话 */ |
||||
@ApiModelProperty(name = "客户电话",notes = "") |
||||
private String customerPhone ; |
||||
/** 客户地址 */ |
||||
@ApiModelProperty(name = "客户地址",notes = "") |
||||
private String customerAddress ; |
||||
/** 订单来源 */ |
||||
@ApiModelProperty(name = "订单来源",notes = "") |
||||
private String systemType ; |
||||
/** 门店编码 */ |
||||
@ApiModelProperty(name = "门店编码",notes = "") |
||||
private String storeCode ; |
||||
/** 门店名称 */ |
||||
@ApiModelProperty(name = "门店名称",notes = "") |
||||
private String storeName ; |
||||
/** 服务号 */ |
||||
@ApiModelProperty(name = "服务号",notes = "") |
||||
private String serviceNum ; |
||||
/** 齐套状态 0未齐套 1齐套 2多仓齐套 */ |
||||
@ApiModelProperty(name = "齐套状态 0未齐套 1齐套 2多仓齐套",notes = "") |
||||
private String matingType ; |
||||
/** 发货人名称 */ |
||||
@ApiModelProperty(name = "发货人名称",notes = "") |
||||
private String senderName ; |
||||
/** 发货人电话 */ |
||||
@ApiModelProperty(name = "发货人电话",notes = "") |
||||
private String senderPhone ; |
||||
/** 发货人地址 */ |
||||
@ApiModelProperty(name = "发货人地址",notes = "") |
||||
private String senderAddress ; |
||||
/** 开单状态 0未开单 1已开单 */ |
||||
@ApiModelProperty(name = "开单状态 0未开单 1已开单",notes = "") |
||||
private String waybillStatus ; |
||||
/** 运单号 */ |
||||
@ApiModelProperty(name = "运单号",notes = "") |
||||
private String waybillNo ; |
||||
/** 车次号 */ |
||||
@ApiModelProperty(name = "车次号",notes = "") |
||||
private String trainNumber ; |
||||
/** 冻结状态 0未冻结 1已冻结 */ |
||||
@ApiModelProperty(name = "冻结状态 0未冻结 1已冻结",notes = "") |
||||
private String freezeStatus ; |
||||
|
||||
} |
@ -0,0 +1,112 @@
|
||||
package com.logpm.trunkline.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.tenant.mp.TenantEntity; |
||||
|
||||
import java.util.Date; |
||||
|
||||
@Data |
||||
@TableName("logpm_trunkline_billlading") |
||||
@ApiModel(value = "TrunklineBilllading对象", description = "干线提货表") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class TrunklineBillladingEntity extends TenantEntity { |
||||
|
||||
/** 预留1 */ |
||||
@ApiModelProperty(name = "预留1",notes = "") |
||||
private String reserve1 ; |
||||
/** 预留2 */ |
||||
@ApiModelProperty(name = "预留2",notes = "") |
||||
private String reserve2 ; |
||||
/** 预留3 */ |
||||
@ApiModelProperty(name = "预留3",notes = "") |
||||
private String reserve3 ; |
||||
/** 预留4 */ |
||||
@ApiModelProperty(name = "预留4",notes = "") |
||||
private String reserve4 ; |
||||
/** 预留5 */ |
||||
@ApiModelProperty(name = "预留5",notes = "") |
||||
private String reserve5 ; |
||||
/** 仓库id */ |
||||
@ApiModelProperty(name = "仓库id",notes = "") |
||||
private Long warehouseId ; |
||||
/** 仓库名称 */ |
||||
@ApiModelProperty(name = "仓库名称",notes = "") |
||||
private String warehouseName ; |
||||
/** 提货单号 */ |
||||
@ApiModelProperty(name = "提货单号",notes = "") |
||||
private String billladingCode ; |
||||
/** 车牌号 */ |
||||
@ApiModelProperty(name = "车牌号",notes = "") |
||||
private String carNumber ; |
||||
/** 司机id */ |
||||
@ApiModelProperty(name = "司机id",notes = "") |
||||
private Long driverId ; |
||||
/** 司机名称 */ |
||||
@ApiModelProperty(name = "司机名称",notes = "") |
||||
private String driverName ; |
||||
/** 司机电话 */ |
||||
@ApiModelProperty(name = "司机电话",notes = "") |
||||
private String driverPhone ; |
||||
/** 承运商 */ |
||||
@ApiModelProperty(name = "承运商",notes = "") |
||||
private String carrierName ; |
||||
/** 线路关联id */ |
||||
@ApiModelProperty(name = "线路关联id",notes = "") |
||||
private Long lineId ; |
||||
/** 线路名称 */ |
||||
@ApiModelProperty(name = "线路名称",notes = "") |
||||
private String lineNameTitle ; |
||||
/** 预计件数 */ |
||||
@ApiModelProperty(name = "预计件数",notes = "") |
||||
private int planNum ; |
||||
/** 预计重量 */ |
||||
@ApiModelProperty(name = "预计重量",notes = "") |
||||
private Double planWeight ; |
||||
/** 预计体积 */ |
||||
@ApiModelProperty(name = "预计体积",notes = "") |
||||
private Double planVolume ; |
||||
/** 实际件数 */ |
||||
@ApiModelProperty(name = "实际件数",notes = "") |
||||
private int realNum ; |
||||
/** 实际重量 */ |
||||
@ApiModelProperty(name = "实际重量",notes = "") |
||||
private Double realWeight ; |
||||
/** 实际体积 */ |
||||
@ApiModelProperty(name = "实际体积",notes = "") |
||||
private Double realVolume ; |
||||
/** 计费模式 1按件 2按重量 3按体积 */ |
||||
@ApiModelProperty(name = "计费模式 1按件 2按重量 3按体积",notes = "") |
||||
private String chargeType ; |
||||
/** 提货费用 */ |
||||
@ApiModelProperty(name = "提货费用",notes = "") |
||||
private Double totalFee ; |
||||
/** 提货单状态 1=未开始,2=提货中,3=已完成,4=已取消 */ |
||||
@ApiModelProperty(name = "提货单状态 1=未开始,2=提货中,3=已完成,4=已取消",notes = "") |
||||
private String billladingStatus ; |
||||
/** 提货开始时间 */ |
||||
@ApiModelProperty(name = "提货开始时间",notes = "") |
||||
private Date startTime ; |
||||
/** 提货完成时间 */ |
||||
@ApiModelProperty(name = "提货完成时间",notes = "") |
||||
private Date endTime ; |
||||
/** 结算时间 */ |
||||
@ApiModelProperty(name = "结算时间",notes = "") |
||||
private Date settlementTime ; |
||||
/** 结算人id */ |
||||
@ApiModelProperty(name = "结算人id",notes = "") |
||||
private Long settlementId ; |
||||
/** 结算人名称 */ |
||||
@ApiModelProperty(name = "结算人名称",notes = "") |
||||
private String settlementName ; |
||||
/** 备注 */ |
||||
@ApiModelProperty(name = "备注",notes = "") |
||||
private String remark ; |
||||
/** 创建用户名称 */ |
||||
@ApiModelProperty(name = "创建用户名称",notes = "") |
||||
private String createUserName ; |
||||
|
||||
} |
@ -0,0 +1,41 @@
|
||||
package com.logpm.trunkline.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.tenant.mp.TenantEntity; |
||||
|
||||
@Data |
||||
@TableName("logpm_trunkline_billlading_package") |
||||
@ApiModel(value = "TrunklineBillladingPackage对象", description = "提货单包件明细表") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class TrunklineBillladingPackageEntity extends TenantEntity { |
||||
|
||||
/** 预留1 */ |
||||
@ApiModelProperty(name = "预留1",notes = "") |
||||
private String reserve1 ; |
||||
/** 预留2 */ |
||||
@ApiModelProperty(name = "预留2",notes = "") |
||||
private String reserve2 ; |
||||
/** 预留3 */ |
||||
@ApiModelProperty(name = "预留3",notes = "") |
||||
private String reserve3 ; |
||||
/** 预留4 */ |
||||
@ApiModelProperty(name = "预留4",notes = "") |
||||
private String reserve4 ; |
||||
/** 预留5 */ |
||||
@ApiModelProperty(name = "预留5",notes = "") |
||||
private String reserve5 ; |
||||
/** 仓库id */ |
||||
@ApiModelProperty(name = "仓库id",notes = "") |
||||
private Long warehouseId ; |
||||
/** 仓库名称 */ |
||||
@ApiModelProperty(name = "仓库名称",notes = "") |
||||
private String warehouseName ; |
||||
/** 包件码 */ |
||||
@ApiModelProperty(name = "包件码",notes = "") |
||||
private String orderPackageCode ; |
||||
|
||||
} |
@ -0,0 +1,56 @@
|
||||
package com.logpm.trunkline.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.tenant.mp.TenantEntity; |
||||
|
||||
import java.math.BigDecimal; |
||||
|
||||
@Data |
||||
@TableName("logpm_trunkline_billlading_waybill") |
||||
@ApiModel(value = "TrunklineBillladingWaybill对象", description = "提货运单关联表") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class TrunklineBillladingWaybillEntity extends TenantEntity { |
||||
|
||||
/** 预留1 */ |
||||
@ApiModelProperty(name = "预留1",notes = "") |
||||
private String reserve1 ; |
||||
/** 预留2 */ |
||||
@ApiModelProperty(name = "预留2",notes = "") |
||||
private String reserve2 ; |
||||
/** 预留3 */ |
||||
@ApiModelProperty(name = "预留3",notes = "") |
||||
private String reserve3 ; |
||||
/** 预留4 */ |
||||
@ApiModelProperty(name = "预留4",notes = "") |
||||
private String reserve4 ; |
||||
/** 预留5 */ |
||||
@ApiModelProperty(name = "预留5",notes = "") |
||||
private String reserve5 ; |
||||
/** 仓库id */ |
||||
@ApiModelProperty(name = "仓库id",notes = "") |
||||
private Long warehouseId ; |
||||
/** 提货单id */ |
||||
@ApiModelProperty(name = "提货单id",notes = "") |
||||
private Long billladingId ; |
||||
/** 提货单号 */ |
||||
@ApiModelProperty(name = "提货单号",notes = "") |
||||
private String billadingCode ; |
||||
/** 运单号 */ |
||||
@ApiModelProperty(name = "运单号",notes = "") |
||||
private String waybillNo ; |
||||
/** 提货数量 */ |
||||
@ApiModelProperty(name = "提货数量",notes = "") |
||||
private Integer realNum ; |
||||
/** 提货重量 */ |
||||
@ApiModelProperty(name = "提货重量",notes = "") |
||||
private BigDecimal realWeight ; |
||||
/** 提货体积 */ |
||||
@ApiModelProperty(name = "提货体积",notes = "") |
||||
private BigDecimal realVolume ; |
||||
|
||||
|
||||
} |
@ -0,0 +1,50 @@
|
||||
package com.logpm.trunkline.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.tenant.mp.TenantEntity; |
||||
|
||||
@Data |
||||
@TableName("logpm_trunkline_detail_product") |
||||
@ApiModel(value = "TrunklineDetailProduct对象", description = "提货运单关联表") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class TrunklineDetailProductEntity extends TenantEntity { |
||||
|
||||
/** 预留1 */ |
||||
@ApiModelProperty(name = "预留1",notes = "") |
||||
private String reserve1 ; |
||||
/** 预留2 */ |
||||
@ApiModelProperty(name = "预留2",notes = "") |
||||
private String reserve2 ; |
||||
/** 预留3 */ |
||||
@ApiModelProperty(name = "预留3",notes = "") |
||||
private String reserve3 ; |
||||
/** 预留4 */ |
||||
@ApiModelProperty(name = "预留4",notes = "") |
||||
private String reserve4 ; |
||||
/** 预留5 */ |
||||
@ApiModelProperty(name = "预留5",notes = "") |
||||
private String reserve5 ; |
||||
/** 仓库id */ |
||||
@ApiModelProperty(name = "仓库id",notes = "") |
||||
private Long warehouseId ; |
||||
/** 仓库名称 */ |
||||
@ApiModelProperty(name = "仓库名称",notes = "") |
||||
private String warehouseName ; |
||||
/** 包件码 */ |
||||
@ApiModelProperty(name = "包件码",notes = "") |
||||
private String unitNo ; |
||||
/** 货品代码 */ |
||||
@ApiModelProperty(name = "货品代码",notes = "") |
||||
private String productCode ; |
||||
/** 货品名称 */ |
||||
@ApiModelProperty(name = "货品名称",notes = "") |
||||
private String productName ; |
||||
/** 数量 */ |
||||
@ApiModelProperty(name = "数量",notes = "") |
||||
private Integer quantity ; |
||||
|
||||
} |
@ -0,0 +1,8 @@
|
||||
package com.logpm.trunkline.vo; |
||||
|
||||
import com.logpm.trunkline.entity.TrunklineAdvanceDetailEntity; |
||||
import lombok.Data; |
||||
|
||||
@Data |
||||
public class TrunklineAdvanceDetailVO extends TrunklineAdvanceDetailEntity { |
||||
} |
@ -0,0 +1,8 @@
|
||||
package com.logpm.trunkline.vo; |
||||
|
||||
import com.logpm.trunkline.entity.TrunklineAdvanceEntity; |
||||
import lombok.Data; |
||||
|
||||
@Data |
||||
public class TrunklineAdvanceVO extends TrunklineAdvanceEntity { |
||||
} |
@ -0,0 +1,8 @@
|
||||
package com.logpm.trunkline.vo; |
||||
|
||||
import com.logpm.trunkline.entity.TrunklineBillladingPackageEntity; |
||||
import lombok.Data; |
||||
|
||||
@Data |
||||
public class TrunklineBillladingPackageVO extends TrunklineBillladingPackageEntity { |
||||
} |
@ -0,0 +1,17 @@
|
||||
package com.logpm.trunkline.vo; |
||||
|
||||
import com.logpm.trunkline.entity.TrunklineBillladingEntity; |
||||
import lombok.Data; |
||||
|
||||
import java.math.BigDecimal; |
||||
|
||||
@Data |
||||
public class TrunklineBillladingVO extends TrunklineBillladingEntity { |
||||
|
||||
private Integer nodeNub; |
||||
private Integer waybillCount; |
||||
private Integer totalNum; |
||||
private BigDecimal totalWeight; |
||||
private BigDecimal totalVolume; |
||||
|
||||
} |
@ -0,0 +1,11 @@
|
||||
package com.logpm.trunkline.vo; |
||||
|
||||
import com.logpm.trunkline.entity.TrunklineBillladingWaybillEntity; |
||||
import lombok.Data; |
||||
|
||||
@Data |
||||
public class TrunklineBillladingWaybillVO extends TrunklineBillladingWaybillEntity { |
||||
|
||||
|
||||
|
||||
} |
@ -0,0 +1,8 @@
|
||||
package com.logpm.trunkline.vo; |
||||
|
||||
import com.logpm.trunkline.entity.TrunklineDetailProductEntity; |
||||
import lombok.Data; |
||||
|
||||
@Data |
||||
public class TrunklineDetailProductVO extends TrunklineDetailProductEntity { |
||||
} |
@ -0,0 +1,183 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.warehouse.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import java.util.Date; |
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
||||
import org.springblade.core.tenant.mp.TenantEntity; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* 滞留扫描记录 实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2023-11-03 |
||||
*/ |
||||
@Data |
||||
@TableName("logpm_warehouse_retention_scan") |
||||
@ApiModel(value = "WarehouseRetentionRecord对象", description = "滞留扫描记录") |
||||
public class WarehouseRetentionScanEntity extends TenantEntity implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
/** |
||||
* 主键 |
||||
*/ |
||||
@JsonSerialize(using = ToStringSerializer.class) |
||||
@ApiModelProperty(value = "主键") |
||||
@TableId(value = "id", type = IdType.ASSIGN_ID) |
||||
private Long id; |
||||
|
||||
/** |
||||
* 租户号 |
||||
*/ |
||||
@ApiModelProperty(value = "租户号") |
||||
private String tenantId; |
||||
/** |
||||
* 是否已删除 |
||||
*/ |
||||
@ApiModelProperty(value = "是否已删除") |
||||
private Integer isDeleted; |
||||
/** |
||||
* 预留1 |
||||
*/ |
||||
@ApiModelProperty(value = "预留1") |
||||
private String reserve1; |
||||
/** |
||||
* 预留2 |
||||
*/ |
||||
@ApiModelProperty(value = "预留2") |
||||
private String reserve2; |
||||
/** |
||||
* 预留3 |
||||
*/ |
||||
@ApiModelProperty(value = "预留3") |
||||
private String reserve3; |
||||
/** |
||||
* 预留4 |
||||
*/ |
||||
@ApiModelProperty(value = "预留4") |
||||
private String reserve4; |
||||
/** |
||||
* 预留5 |
||||
*/ |
||||
@ApiModelProperty(value = "预留5") |
||||
private String reserve5; |
||||
/** |
||||
* 配送车次号 |
||||
*/ |
||||
@ApiModelProperty(value = "配送车次号") |
||||
private String trainNumber; |
||||
/** |
||||
* 订单ID |
||||
*/ |
||||
@ApiModelProperty(value = "订单ID") |
||||
private Long orderId; |
||||
/** |
||||
* 库存品ID |
||||
*/ |
||||
@ApiModelProperty(value = "库存品ID") |
||||
private Long inventoryId; |
||||
/** |
||||
* 滞留类型 1-包件、2-零担(这里会关联到具体的品类)、3-库存品 |
||||
*/ |
||||
@ApiModelProperty(value = "滞留类型 1-包件、2-零担(这里会关联到具体的品类)、3-库存品") |
||||
private Integer conditions; |
||||
/** |
||||
* 物料编码(库存品) |
||||
*/ |
||||
@ApiModelProperty(value = "物料编码(库存品)") |
||||
private String materialNumber; |
||||
/** |
||||
* 物料名称(库存品) |
||||
*/ |
||||
@ApiModelProperty(value = "物料名称(库存品)") |
||||
private String materialName; |
||||
/** |
||||
* 预约客户ID |
||||
*/ |
||||
@ApiModelProperty(value = "预约客户ID") |
||||
private Long reservationId; |
||||
/** |
||||
* 订单自编号(库存品没有) |
||||
*/ |
||||
@ApiModelProperty(value = "订单自编号(库存品没有)") |
||||
private String orderCode; |
||||
/** |
||||
* 预约单号 |
||||
*/ |
||||
@ApiModelProperty(value = "预约单号") |
||||
private String reservationCode; |
||||
/** |
||||
* 扫描类型:1-包件、2-订单、3-托盘、4... |
||||
*/ |
||||
@ApiModelProperty(value = "扫描类型:1-包件、2-订单、3-托盘、4...") |
||||
private Integer scanType; |
||||
/** |
||||
* 包件ID |
||||
*/ |
||||
@ApiModelProperty(value = "包件ID") |
||||
private Long orderPackageId; |
||||
/** |
||||
* 包条码 |
||||
*/ |
||||
@ApiModelProperty(value = "包条码") |
||||
private String orderPackageCode; |
||||
/** |
||||
* 滞留数量 |
||||
*/ |
||||
@ApiModelProperty(value = "滞留数量") |
||||
private Integer retentionQuantity; |
||||
/** |
||||
* 滞留扫描操作人名称 |
||||
*/ |
||||
@ApiModelProperty(value = "滞留扫描操作人名称") |
||||
private String retentionScanUsername; |
||||
/** |
||||
* 滞留扫描操作人Id |
||||
*/ |
||||
@ApiModelProperty(value = "滞留扫描操作人Id") |
||||
private String retentionScanUserId; |
||||
/** |
||||
* 滞留操作备注 |
||||
*/ |
||||
@ApiModelProperty(value = "滞留操作备注") |
||||
private String remarks; |
||||
/** |
||||
* 滞留扫描时间 |
||||
*/ |
||||
@ApiModelProperty(value = "滞留扫描时间") |
||||
private Date retentionScanTime; |
||||
/** |
||||
* 滞留方式 1-PDA、2-PC |
||||
*/ |
||||
@ApiModelProperty(value = "滞留方式 1-PDA、2-PC") |
||||
private Integer retentionWay; |
||||
/** |
||||
* 配送任务ID |
||||
*/ |
||||
@ApiModelProperty(value = "配送任务ID") |
||||
private Long deliveryListId; |
||||
|
||||
} |
@ -0,0 +1,50 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.warehouse.feign; |
||||
|
||||
import com.logpm.warehouse.entity.WarehouseRetentionScanEntity; |
||||
import org.springblade.core.mp.support.BladePage; |
||||
import com.logpm.warehouse.entity.WarehouseRetentionRecordEntity; |
||||
import org.springframework.cloud.openfeign.FeignClient; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RequestParam; |
||||
|
||||
/** |
||||
* 滞留扫描记录 Feign接口类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2023-11-03 |
||||
*/ |
||||
@FeignClient( |
||||
value = "warehouseRetentionScan" |
||||
) |
||||
public interface IWarehouseRetentionScanClient { |
||||
|
||||
String API_PREFIX = "retentionScan/client"; |
||||
String TOP = API_PREFIX + "/top"; |
||||
|
||||
/** |
||||
* 获取滞留扫描记录列表 |
||||
* |
||||
* @param current 页号 |
||||
* @param size 页数 |
||||
* @return BladePage |
||||
*/ |
||||
@GetMapping(TOP) |
||||
BladePage<WarehouseRetentionScanEntity> retentionScanTop(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
||||
|
||||
} |
@ -0,0 +1,34 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.warehouse.vo; |
||||
|
||||
import com.logpm.warehouse.entity.WarehouseRetentionScanEntity; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* 滞留扫描记录 视图实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2023-11-03 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class WarehouseRetentionScanVO extends WarehouseRetentionScanEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,137 @@
|
||||
/* |
||||
package com.logpm.oldproject.config; |
||||
|
||||
import com.alibaba.nacos.shaded.com.google.common.collect.Maps; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springblade.common.constant.RabbitConstant; |
||||
import org.springframework.amqp.core.*; |
||||
import org.springframework.amqp.rabbit.connection.ConnectionFactory; |
||||
import org.springframework.amqp.rabbit.connection.CorrelationData; |
||||
import org.springframework.amqp.rabbit.core.RabbitTemplate; |
||||
import org.springframework.amqp.rabbit.retry.MessageRecoverer; |
||||
import org.springframework.amqp.rabbit.retry.RepublishMessageRecoverer; |
||||
import org.springframework.context.annotation.Bean; |
||||
import org.springframework.context.annotation.Configuration; |
||||
|
||||
import java.util.Map; |
||||
|
||||
*/ |
||||
/** |
||||
* RabbitMQ配置,主要是配置队列,如果提前存在该队列,可以省略本配置类 |
||||
* |
||||
* @author yangkai.shen |
||||
*//*
|
||||
|
||||
@Slf4j |
||||
@Configuration |
||||
public class RabbitMqConfiguration { |
||||
|
||||
@Bean |
||||
public RabbitTemplate createRabbitTemplate(ConnectionFactory connectionFactory){ |
||||
RabbitTemplate template = new RabbitTemplate(); |
||||
template.setConnectionFactory(connectionFactory); |
||||
template.setMandatory(true); |
||||
template.setConfirmCallback(new RabbitTemplate.ConfirmCallback() { |
||||
@Override |
||||
public void confirm(CorrelationData correlationData, boolean b, String s) { |
||||
System.out.println("确认回调-相关数据:"+correlationData); |
||||
System.out.println("确认回调-确认情况:"+b); |
||||
System.out.println("确认回调-原因:"+s); |
||||
// Long id = Long.parseLong(correlationData.getId());
|
||||
// UpdateWrapper<PanOrderStatusLog> updateWrapper = new UpdateWrapper<>();
|
||||
// if(b){
|
||||
// //修改处理日志为已处理
|
||||
// updateWrapper.set("status",0)
|
||||
// .eq("id",id);
|
||||
//
|
||||
// }else{
|
||||
// //修改处理日志为已处理
|
||||
// updateWrapper.set("status",2)
|
||||
// .eq("id",id);
|
||||
// }
|
||||
// panOrderStatusLogService.update(updateWrapper);
|
||||
} |
||||
}); |
||||
|
||||
template.setReturnsCallback(new RabbitTemplate.ReturnsCallback() { |
||||
@Override |
||||
public void returnedMessage(ReturnedMessage returnedMessage) { |
||||
System.out.println("返回回调-消息:"+returnedMessage.getMessage()); |
||||
System.out.println("返回回调-回应码:"+returnedMessage.getReplyCode()); |
||||
System.out.println("返回回调-回应信息:"+returnedMessage.getReplyText()); |
||||
System.out.println("返回回调-交换机:"+returnedMessage.getExchange()); |
||||
System.out.println("返回回调-路由键:"+returnedMessage.getRoutingKey()); |
||||
} |
||||
}); |
||||
return template; |
||||
} |
||||
|
||||
@Bean |
||||
public DirectExchange errorMessageExchange(){ |
||||
return new DirectExchange(RabbitConstant.ERROR_EXCHANGE); |
||||
} |
||||
@Bean |
||||
public Queue errorQueue(){ |
||||
return new Queue(RabbitConstant.ERROR_QUEUE, true); |
||||
} |
||||
@Bean |
||||
public Binding errorBinding(Queue errorQueue, DirectExchange errorMessageExchange){ |
||||
return BindingBuilder.bind(errorQueue).to(errorMessageExchange).with(RabbitConstant.ERROR_ROUTING); |
||||
} |
||||
|
||||
*/ |
||||
/** |
||||
* 消费失败队列 |
||||
* @param rabbitTemplate |
||||
* @return |
||||
*//*
|
||||
|
||||
@Bean |
||||
public MessageRecoverer republishMessageRecoverer(RabbitTemplate rabbitTemplate){ |
||||
return new RepublishMessageRecoverer(rabbitTemplate, RabbitConstant.ERROR_EXCHANGE, RabbitConstant.ERROR_ROUTING); |
||||
} |
||||
|
||||
|
||||
*/ |
||||
/** |
||||
* 延迟队列 |
||||
*//*
|
||||
|
||||
@Bean |
||||
public Queue orderStatusQueue() { |
||||
return new Queue(RabbitConstant.ORDER_STATUS_QUEUE, true); |
||||
} |
||||
|
||||
*/ |
||||
/** |
||||
* 延迟队列交换器, x-delayed-type 和 x-delayed-message 固定 |
||||
*//*
|
||||
|
||||
@Bean |
||||
public CustomExchange orderStatusExchange() { |
||||
Map<String, Object> args = Maps.newHashMap(); |
||||
args.put("x-delayed-type", "direct"); |
||||
return new CustomExchange(RabbitConstant.ORDER_STATUS_EXCHANGE, "x-delayed-message", true, false, args); |
||||
} |
||||
|
||||
*/ |
||||
/** |
||||
* 延迟队列绑定自定义交换器 |
||||
* |
||||
* @param orderStatusQueue 队列 |
||||
* @param orderStatusExchange 延迟交换器 |
||||
*//*
|
||||
|
||||
@Bean |
||||
public Binding orderStatusBinding(Queue orderStatusQueue, CustomExchange orderStatusExchange) { |
||||
return BindingBuilder.bind(orderStatusQueue).to(orderStatusExchange).with(RabbitConstant.ORDER_STATUS_ROUTING).noargs(); |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} |
||||
*/ |
@ -0,0 +1,61 @@
|
||||
package com.logpm.trunkline.controller; |
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||
import com.logpm.basicdata.entity.BasicdataWarehouseEntity; |
||||
import com.logpm.basicdata.feign.IBasicdataWarehouseClient; |
||||
import com.logpm.trunkline.dto.BillladingDTO; |
||||
import com.logpm.trunkline.service.ITrunklineBillladingService; |
||||
import com.logpm.trunkline.vo.TrunklineBillladingVO; |
||||
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springblade.common.exception.CustomerException; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springframework.web.bind.annotation.*; |
||||
|
||||
import java.util.Objects; |
||||
|
||||
@Slf4j |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/billlading") |
||||
@Api(value = "提货单控制类", tags = "提货单接口") |
||||
public class BillladingController { |
||||
|
||||
private final IBasicdataWarehouseClient warehouseClient; |
||||
|
||||
private final ITrunklineBillladingService trunklineBillladingService; |
||||
|
||||
@ResponseBody |
||||
@PostMapping("/pageList") |
||||
@ApiOperationSupport(order = 1) |
||||
@ApiOperation(value = "提货单列表", notes = "传入waybillDTO") |
||||
public R pageList(@RequestBody BillladingDTO billladingDTO) { |
||||
String method = "############pageList: "; |
||||
log.info(method+"请求参数{}",billladingDTO); |
||||
try{ |
||||
|
||||
//当前登录人选择的仓库
|
||||
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); |
||||
if(Objects.isNull(myCurrentWarehouse)){ |
||||
log.warn(method+"仓库信息为空 myCurrentWarehouse={}",myCurrentWarehouse); |
||||
return R.fail(403,"仓库信息为空"); |
||||
} |
||||
billladingDTO.setWarehouseId(myCurrentWarehouse.getId()); |
||||
|
||||
IPage<TrunklineBillladingVO> pages = trunklineBillladingService.pageList(billladingDTO); |
||||
|
||||
return R.data(pages); |
||||
}catch (CustomerException e){ |
||||
log.error(e.message,e); |
||||
return R.fail(e.code,e.message); |
||||
}catch (Exception e){ |
||||
log.error("############sendOrders: 系统异常",e); |
||||
return R.fail(500,"############sendOrders: 系统异常"); |
||||
} |
||||
} |
||||
|
||||
|
||||
} |
@ -0,0 +1,9 @@
|
||||
package com.logpm.trunkline.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.logpm.trunkline.entity.TrunklineAdvanceDetailEntity; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
|
||||
@Mapper |
||||
public interface TrunklineAdvanceDetailMapper extends BaseMapper<TrunklineAdvanceDetailEntity> { |
||||
} |
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.logpm.trunkline.mapper.TrunklineAdvanceDetailMapper"> |
||||
|
||||
|
||||
</mapper> |
@ -0,0 +1,9 @@
|
||||
package com.logpm.trunkline.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.logpm.trunkline.entity.TrunklineAdvanceEntity; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
|
||||
@Mapper |
||||
public interface TrunklineAdvanceMapper extends BaseMapper<TrunklineAdvanceEntity> { |
||||
} |
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.logpm.trunkline.mapper.TrunklineAdvanceMapper"> |
||||
|
||||
|
||||
</mapper> |
@ -0,0 +1,16 @@
|
||||
package com.logpm.trunkline.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.logpm.trunkline.dto.BillladingDTO; |
||||
import com.logpm.trunkline.entity.TrunklineBillladingEntity; |
||||
import com.logpm.trunkline.vo.TrunklineBillladingVO; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
import org.apache.ibatis.annotations.Param; |
||||
|
||||
@Mapper |
||||
public interface TrunklineBillladingMapper extends BaseMapper<TrunklineBillladingEntity> { |
||||
|
||||
IPage<TrunklineBillladingVO> pageList(IPage<Object> page, @Param("param") BillladingDTO billladingDTO); |
||||
|
||||
} |
@ -0,0 +1,78 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.logpm.trunkline.mapper.TrunklineBillladingMapper"> |
||||
|
||||
<select id="pageList" resultType="com.logpm.trunkline.vo.TrunklineBillladingVO"> |
||||
select ltb.id id, |
||||
ltb.billlading_code billladingCode, |
||||
ltb.car_number carNumber, |
||||
ltb.driver_name driverName, |
||||
ltb.driver_phone driverPhone, |
||||
ltb.warehouse_id warehouseId, |
||||
ltb.warehouse_name warehouseName, |
||||
ltb.line_id lineId, |
||||
ltb.line_name_title lineNameTitle, |
||||
lbd.node_nub nodeNub, |
||||
ltb.start_time startTime, |
||||
ltb.end_time endTime, |
||||
ltb.plan_num planNum, |
||||
ltb.billlading_status billladingStatus, |
||||
ltb.charge_type chargeType, |
||||
ltb.total_fee totalFee, |
||||
ltb.remark remark, |
||||
ltb.carrier_name carrierName, |
||||
ltb.create_user_name createUserName, |
||||
count(ltbw.id) waybillCount, |
||||
sum(ltbw.real_num) totalNum, |
||||
sum(ltbw.real_weight) totalWeight, |
||||
sum(ltbw.real_volume) totalVolume |
||||
from logpm_trunkline_billlading ltb |
||||
left join logpm_basic_deline lbd on lbd.id = ltb.line_id |
||||
left join logpm_trunkline_billlading_waybill ltbw on ltbw.billlading_id = ltb.id |
||||
where ltb.is_deleted = 0 |
||||
<if test="param.billladingCode != null and param.billladingCode != '' "> |
||||
and ltb.billlading_code = #{param.billladingCode} |
||||
</if> |
||||
<if test="param.carNumber != null and param.carNumber != '' "> |
||||
and ltb.car_number = #{param.carNumber} |
||||
</if> |
||||
<if test="param.driverName != null and param.driverName != '' "> |
||||
and ltb.driver_name = #{param.driverName} |
||||
</if> |
||||
<if test="param.driverPhone != null and param.driverPhone != '' "> |
||||
and ltb.driver_phone = #{param.driverPhone} |
||||
</if> |
||||
<if test="param.warehouseName != null and param.warehouseName != '' "> |
||||
and ltb.warehouse_name = #{param.warehouseName} |
||||
</if> |
||||
<if test="param.billladingStatus != null and param.billladingStatus != '' "> |
||||
and ltb.billlading_status = #{param.billladingStatus} |
||||
</if> |
||||
<if test="param.chargeType != null and param.chargeType != '' "> |
||||
and ltb.charge_type = #{param.chargeType} |
||||
</if> |
||||
<if test="param.createUserName != null and param.createUserName != '' "> |
||||
and ltb.create_user_name = #{param.createUserName} |
||||
</if> |
||||
group by ltb.id,ltb.billlading_code, |
||||
ltb.car_number, |
||||
ltb.driver_name, |
||||
ltb.driver_phone, |
||||
ltb.warehouse_id, |
||||
ltb.warehouse_name, |
||||
ltb.line_id, |
||||
ltb.line_name_title, |
||||
lbd.node_nub, |
||||
ltb.start_time, |
||||
ltb.end_time, |
||||
ltb.plan_num, |
||||
ltb.billlading_status, |
||||
ltb.charge_type, |
||||
ltb.total_fee, |
||||
ltb.remark, |
||||
ltb.carrier_name, |
||||
ltb.create_user_name |
||||
order by ltb.create_time desc |
||||
</select> |
||||
|
||||
</mapper> |
@ -0,0 +1,9 @@
|
||||
package com.logpm.trunkline.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.logpm.trunkline.entity.TrunklineBillladingPackageEntity; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
|
||||
@Mapper |
||||
public interface TrunklineBillladingPackageMapper extends BaseMapper<TrunklineBillladingPackageEntity> { |
||||
} |
@ -0,0 +1,9 @@
|
||||
package com.logpm.trunkline.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.logpm.trunkline.entity.TrunklineBillladingWaybillEntity; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
|
||||
@Mapper |
||||
public interface TrunklineBillladingWaybillMapper extends BaseMapper<TrunklineBillladingWaybillEntity> { |
||||
} |
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.logpm.trunkline.mapper.TrunklineBillladingWaybillMapper"> |
||||
|
||||
|
||||
</mapper> |
@ -0,0 +1,9 @@
|
||||
package com.logpm.trunkline.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.logpm.trunkline.entity.TrunklineDetailProductEntity; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
|
||||
@Mapper |
||||
public interface TrunklineDetailProductMapper extends BaseMapper<TrunklineDetailProductEntity> { |
||||
} |
@ -0,0 +1,7 @@
|
||||
package com.logpm.trunkline.service; |
||||
|
||||
import com.logpm.trunkline.entity.TrunklineAdvanceDetailEntity; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
|
||||
public interface ITrunklineAdvanceDetailService extends BaseService<TrunklineAdvanceDetailEntity> { |
||||
} |
@ -0,0 +1,7 @@
|
||||
package com.logpm.trunkline.service; |
||||
|
||||
import com.logpm.trunkline.entity.TrunklineAdvanceEntity; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
|
||||
public interface ITrunklineAdvanceService extends BaseService<TrunklineAdvanceEntity> { |
||||
} |
@ -0,0 +1,7 @@
|
||||
package com.logpm.trunkline.service; |
||||
|
||||
import com.logpm.trunkline.entity.TrunklineBillladingPackageEntity; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
|
||||
public interface ITrunklineBillladingPackageServicie extends BaseService<TrunklineBillladingPackageEntity> { |
||||
} |
@ -0,0 +1,13 @@
|
||||
package com.logpm.trunkline.service; |
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.logpm.trunkline.dto.BillladingDTO; |
||||
import com.logpm.trunkline.entity.TrunklineBillladingEntity; |
||||
import com.logpm.trunkline.vo.TrunklineBillladingVO; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
|
||||
public interface ITrunklineBillladingService extends BaseService<TrunklineBillladingEntity> { |
||||
|
||||
IPage<TrunklineBillladingVO> pageList(BillladingDTO billladingDTO); |
||||
|
||||
} |
@ -0,0 +1,7 @@
|
||||
package com.logpm.trunkline.service; |
||||
|
||||
import com.logpm.trunkline.entity.TrunklineBillladingWaybillEntity; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
|
||||
public interface ITrunklineBillladingWaybillService extends BaseService<TrunklineBillladingWaybillEntity> { |
||||
} |
@ -0,0 +1,7 @@
|
||||
package com.logpm.trunkline.service; |
||||
|
||||
import com.logpm.trunkline.entity.TrunklineDetailProductEntity; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
|
||||
public interface ITrunklineDetailProductService extends BaseService<TrunklineDetailProductEntity> { |
||||
} |
@ -0,0 +1,15 @@
|
||||
package com.logpm.trunkline.service.impl; |
||||
|
||||
import com.logpm.trunkline.entity.TrunklineAdvanceDetailEntity; |
||||
import com.logpm.trunkline.mapper.TrunklineAdvanceDetailMapper; |
||||
import com.logpm.trunkline.service.ITrunklineAdvanceDetailService; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
@Slf4j |
||||
@Service |
||||
@AllArgsConstructor |
||||
public class TrunklineAdvanceDetailServiceImpl extends BaseServiceImpl<TrunklineAdvanceDetailMapper, TrunklineAdvanceDetailEntity> implements ITrunklineAdvanceDetailService { |
||||
} |
@ -0,0 +1,15 @@
|
||||
package com.logpm.trunkline.service.impl; |
||||
|
||||
import com.logpm.trunkline.entity.TrunklineAdvanceEntity; |
||||
import com.logpm.trunkline.mapper.TrunklineAdvanceMapper; |
||||
import com.logpm.trunkline.service.ITrunklineAdvanceService; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
@Slf4j |
||||
@Service |
||||
@AllArgsConstructor |
||||
public class TrunklineAdvanceServiceImpl extends BaseServiceImpl<TrunklineAdvanceMapper, TrunklineAdvanceEntity> implements ITrunklineAdvanceService { |
||||
} |
@ -0,0 +1,15 @@
|
||||
package com.logpm.trunkline.service.impl; |
||||
|
||||
import com.logpm.trunkline.entity.TrunklineBillladingPackageEntity; |
||||
import com.logpm.trunkline.mapper.TrunklineBillladingPackageMapper; |
||||
import com.logpm.trunkline.service.ITrunklineBillladingPackageServicie; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
@Slf4j |
||||
@Service |
||||
@AllArgsConstructor |
||||
public class TrunklineBillladingPackageServiceImpl extends BaseServiceImpl<TrunklineBillladingPackageMapper, TrunklineBillladingPackageEntity> implements ITrunklineBillladingPackageServicie { |
||||
} |
@ -0,0 +1,30 @@
|
||||
package com.logpm.trunkline.service.impl; |
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||
import com.logpm.trunkline.dto.BillladingDTO; |
||||
import com.logpm.trunkline.entity.TrunklineBillladingEntity; |
||||
import com.logpm.trunkline.mapper.TrunklineBillladingMapper; |
||||
import com.logpm.trunkline.service.ITrunklineBillladingService; |
||||
import com.logpm.trunkline.vo.TrunklineBillladingVO; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
@Slf4j |
||||
@Service |
||||
@AllArgsConstructor |
||||
public class TrunklineBillladingServiceImpl extends BaseServiceImpl<TrunklineBillladingMapper, TrunklineBillladingEntity> implements ITrunklineBillladingService { |
||||
|
||||
@Override |
||||
public IPage<TrunklineBillladingVO> pageList(BillladingDTO billladingDTO) { |
||||
IPage<Object> page = new Page<>(); |
||||
page.setCurrent(billladingDTO.getPageNum()); |
||||
page.setSize(billladingDTO.getPageSize()); |
||||
|
||||
IPage<TrunklineBillladingVO> pageList = baseMapper.pageList(page,billladingDTO); |
||||
|
||||
return null; |
||||
} |
||||
} |
@ -0,0 +1,15 @@
|
||||
package com.logpm.trunkline.service.impl; |
||||
|
||||
import com.logpm.trunkline.entity.TrunklineBillladingWaybillEntity; |
||||
import com.logpm.trunkline.mapper.TrunklineBillladingWaybillMapper; |
||||
import com.logpm.trunkline.service.ITrunklineBillladingWaybillService; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
@Slf4j |
||||
@Service |
||||
@AllArgsConstructor |
||||
public class TrunklineBillladingWaybillServiceImpl extends BaseServiceImpl<TrunklineBillladingWaybillMapper, TrunklineBillladingWaybillEntity> implements ITrunklineBillladingWaybillService { |
||||
} |
@ -0,0 +1,15 @@
|
||||
package com.logpm.trunkline.service.impl; |
||||
|
||||
import com.logpm.trunkline.entity.TrunklineDetailProductEntity; |
||||
import com.logpm.trunkline.mapper.TrunklineDetailProductMapper; |
||||
import com.logpm.trunkline.service.ITrunklineDetailProductService; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
@Slf4j |
||||
@Service |
||||
@AllArgsConstructor |
||||
public class TrunklineDetailProductServiceImpl extends BaseServiceImpl<TrunklineDetailProductMapper, TrunklineDetailProductEntity> implements ITrunklineDetailProductService { |
||||
} |
@ -0,0 +1,154 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.warehouse.controller; |
||||
|
||||
import com.logpm.warehouse.entity.WarehouseRetentionScanEntity; |
||||
import com.logpm.warehouse.excel.WarehouseRetentionScanExcel; |
||||
import com.logpm.warehouse.service.IWarehouseRetentionScanService; |
||||
import com.logpm.warehouse.vo.WarehouseRetentionScanVO; |
||||
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import io.swagger.annotations.ApiParam; |
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||
import lombok.AllArgsConstructor; |
||||
import javax.validation.Valid; |
||||
|
||||
import org.springblade.core.secure.BladeUser; |
||||
import org.springblade.core.mp.support.Condition; |
||||
import org.springblade.core.mp.support.Query; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springblade.core.tool.utils.Func; |
||||
import org.springframework.web.bind.annotation.*; |
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.logpm.warehouse.entity.WarehouseRetentionRecordEntity; |
||||
import com.logpm.warehouse.vo.WarehouseRetentionRecordVO; |
||||
import com.logpm.warehouse.excel.WarehouseRetentionRecordExcel; |
||||
import com.logpm.warehouse.service.IWarehouseRetentionRecordService; |
||||
import org.springblade.core.boot.ctrl.BladeController; |
||||
import org.springblade.core.tool.utils.DateUtil; |
||||
import org.springblade.core.excel.util.ExcelUtil; |
||||
import org.springblade.core.tool.constant.BladeConstant; |
||||
import springfox.documentation.annotations.ApiIgnore; |
||||
import java.util.Map; |
||||
import java.util.List; |
||||
import javax.servlet.http.HttpServletResponse; |
||||
|
||||
/** |
||||
* 滞留扫描记录 控制器 |
||||
* |
||||
* @author BladeX |
||||
* @since 2023-11-03 |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/warehouseRetentionScan") |
||||
@Api(value = "滞留扫描记录", tags = "滞留扫描记录接口") |
||||
public class WarehouseRetentionScanController extends BladeController { |
||||
|
||||
private final IWarehouseRetentionScanService warehouseRetentionScanService; |
||||
|
||||
/** |
||||
* 滞留扫描记录 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 1) |
||||
@ApiOperation(value = "详情", notes = "传入warehouseRetentionScan") |
||||
public R<WarehouseRetentionScanEntity> detail(WarehouseRetentionScanEntity warehouseRetentionScan) { |
||||
WarehouseRetentionScanEntity detail = warehouseRetentionScanService.getOne(Condition.getQueryWrapper(warehouseRetentionScan)); |
||||
return R.data(detail); |
||||
} |
||||
/** |
||||
* 滞留扫描记录 分页 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 2) |
||||
@ApiOperation(value = "分页", notes = "传入warehouseRetentionScan") |
||||
public R<IPage<WarehouseRetentionScanEntity>> list(@ApiIgnore @RequestParam Map<String, Object> warehouseRetentionScan, Query query) { |
||||
IPage<WarehouseRetentionScanEntity> pages = warehouseRetentionScanService.page(Condition.getPage(query), Condition.getQueryWrapper(warehouseRetentionScan, WarehouseRetentionScanEntity.class)); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 滞留扫描记录 自定义分页 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 3) |
||||
@ApiOperation(value = "分页", notes = "传入warehouseRetentionScan") |
||||
public R<IPage<WarehouseRetentionScanVO>> page(WarehouseRetentionScanVO warehouseRetentionScan, Query query) { |
||||
IPage<WarehouseRetentionScanVO> pages = warehouseRetentionScanService.selectWarehouseRetentionRecordPage(Condition.getPage(query), warehouseRetentionScan); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 滞留扫描记录 新增 |
||||
*/ |
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 4) |
||||
@ApiOperation(value = "新增", notes = "传入warehouseRetentionScan") |
||||
public R save(@Valid @RequestBody WarehouseRetentionScanEntity warehouseRetentionScan) { |
||||
return R.status(warehouseRetentionScanService.save(warehouseRetentionScan)); |
||||
} |
||||
|
||||
/** |
||||
* 滞留扫描记录 修改 |
||||
*/ |
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 5) |
||||
@ApiOperation(value = "修改", notes = "传入warehouseRetentionScan") |
||||
public R update(@Valid @RequestBody WarehouseRetentionScanEntity warehouseRetentionScan) { |
||||
return R.status(warehouseRetentionScanService.updateById(warehouseRetentionScan)); |
||||
} |
||||
|
||||
/** |
||||
* 滞留扫描记录 新增或修改 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@ApiOperation(value = "新增或修改", notes = "传入warehouseRetentionScan") |
||||
public R submit(@Valid @RequestBody WarehouseRetentionScanEntity warehouseRetentionScan) { |
||||
return R.status(warehouseRetentionScanService.saveOrUpdate(warehouseRetentionScan)); |
||||
} |
||||
|
||||
/** |
||||
* 滞留扫描记录 删除 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 7) |
||||
@ApiOperation(value = "删除", notes = "传入ids") |
||||
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||
return R.status(warehouseRetentionScanService.removeByIds(Func.toLongList(ids))); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
*/ |
||||
@GetMapping("/export-warehouseRetentionScan") |
||||
@ApiOperationSupport(order = 9) |
||||
@ApiOperation(value = "导出数据", notes = "传入warehouseRetentionScan") |
||||
public void exportWarehouseRetentionScan(@ApiIgnore @RequestParam Map<String, Object> warehouseRetentionScan, BladeUser bladeUser, HttpServletResponse response) { |
||||
QueryWrapper<WarehouseRetentionScanEntity> queryWrapper = Condition.getQueryWrapper(warehouseRetentionScan, WarehouseRetentionScanEntity.class); |
||||
//if (!AuthUtil.isAdministrator()) {
|
||||
// queryWrapper.lambda().eq(WarehouseRetentionScan::getTenantId, bladeUser.getTenantId());
|
||||
//}
|
||||
queryWrapper.lambda().eq(WarehouseRetentionScanEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
||||
List<WarehouseRetentionScanExcel> list = warehouseRetentionScanService.exportWarehouseRetentionRecord(queryWrapper); |
||||
ExcelUtil.export(response, "滞留扫描记录数据" + DateUtil.time(), "滞留扫描记录数据表", list, WarehouseRetentionScanExcel.class); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,34 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.warehouse.dto; |
||||
|
||||
import com.logpm.warehouse.entity.WarehouseRetentionScanEntity; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* 滞留扫描记录 数据传输对象实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2023-11-03 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class WarehouseRetentionScanDTO extends WarehouseRetentionScanEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,201 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.warehouse.excel; |
||||
|
||||
|
||||
import lombok.Data; |
||||
|
||||
import java.util.Date; |
||||
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 java.io.Serializable; |
||||
|
||||
|
||||
/** |
||||
* 滞留扫描记录 Excel实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2023-11-03 |
||||
*/ |
||||
@Data |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
public class WarehouseRetentionScanExcel implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 租户号 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("租户号") |
||||
private String tenantId; |
||||
/** |
||||
* 是否已删除 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("是否已删除") |
||||
private Integer isDeleted; |
||||
/** |
||||
* 预留1 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预留1") |
||||
private String reserve1; |
||||
/** |
||||
* 预留2 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预留2") |
||||
private String reserve2; |
||||
/** |
||||
* 预留3 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预留3") |
||||
private String reserve3; |
||||
/** |
||||
* 预留4 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预留4") |
||||
private String reserve4; |
||||
/** |
||||
* 预留5 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预留5") |
||||
private String reserve5; |
||||
/** |
||||
* 配送车次号 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("配送车次号") |
||||
private String trainNumber; |
||||
/** |
||||
* 订单ID |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("订单ID") |
||||
private Long orderId; |
||||
/** |
||||
* 库存品ID |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("库存品ID") |
||||
private Long inventoryId; |
||||
/** |
||||
* 滞留类型 1-包件、2-零担(这里会关联到具体的品类)、3-库存品 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("滞留类型 1-包件、2-零担(这里会关联到具体的品类)、3-库存品") |
||||
private Integer conditions; |
||||
/** |
||||
* 物料编码(库存品) |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("物料编码(库存品)") |
||||
private String materialNumber; |
||||
/** |
||||
* 物料名称(库存品) |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("物料名称(库存品)") |
||||
private String materialName; |
||||
/** |
||||
* 预约客户ID |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预约客户ID") |
||||
private Long reservationId; |
||||
/** |
||||
* 订单自编号(库存品没有) |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("订单自编号(库存品没有)") |
||||
private String orderCode; |
||||
/** |
||||
* 预约单号 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预约单号") |
||||
private String reservationCode; |
||||
/** |
||||
* 扫描类型:1-包件、2-订单、3-托盘、4... |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("扫描类型:1-包件、2-订单、3-托盘、4...") |
||||
private Integer scanType; |
||||
/** |
||||
* 包件ID |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("包件ID") |
||||
private Long orderPackageId; |
||||
/** |
||||
* 包条码 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("包条码") |
||||
private String orderPackageCode; |
||||
/** |
||||
* 滞留数量 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("滞留数量") |
||||
private Integer retentionQuantity; |
||||
/** |
||||
* 滞留扫描操作人名称 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("滞留扫描操作人名称") |
||||
private String retentionScanUsername; |
||||
/** |
||||
* 滞留扫描操作人Id |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("滞留扫描操作人Id") |
||||
private String retentionScanUserId; |
||||
/** |
||||
* 滞留操作备注 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("滞留操作备注") |
||||
private String remarks; |
||||
/** |
||||
* 滞留扫描时间 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("滞留扫描时间") |
||||
private Date retentionScanTime; |
||||
/** |
||||
* 滞留方式 1-PDA、2-PC |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("滞留方式 1-PDA、2-PC") |
||||
private Integer retentionWay; |
||||
/** |
||||
* 配送任务ID |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("配送任务ID") |
||||
private Long deliveryListId; |
||||
|
||||
} |
@ -0,0 +1,55 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.warehouse.feign; |
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.logpm.warehouse.entity.WarehouseRetentionScanEntity; |
||||
import com.logpm.warehouse.service.IWarehouseRetentionScanService; |
||||
import lombok.AllArgsConstructor; |
||||
import org.springblade.core.mp.support.BladePage; |
||||
import org.springblade.core.mp.support.Condition; |
||||
import org.springblade.core.mp.support.Query; |
||||
import com.logpm.warehouse.entity.WarehouseRetentionRecordEntity; |
||||
import com.logpm.warehouse.service.IWarehouseRetentionRecordService; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
import springfox.documentation.annotations.ApiIgnore; |
||||
|
||||
/** |
||||
* 滞留扫描记录 Feign实现类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2023-11-03 |
||||
*/ |
||||
@ApiIgnore() |
||||
@RestController |
||||
@AllArgsConstructor |
||||
public class WarehouseRetentionScanClient implements IWarehouseRetentionScanClient { |
||||
|
||||
private final IWarehouseRetentionScanService warehouseRetentionScanService; |
||||
|
||||
@Override |
||||
@GetMapping(TOP) |
||||
public BladePage<WarehouseRetentionScanEntity> retentionScanTop(Integer current, Integer size) { |
||||
Query query = new Query(); |
||||
query.setCurrent(current); |
||||
query.setSize(size); |
||||
IPage<WarehouseRetentionScanEntity> page = warehouseRetentionScanService.page(Condition.getPage(query)); |
||||
return BladePage.of(page); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,57 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.warehouse.mapper; |
||||
|
||||
import com.logpm.warehouse.entity.WarehouseRetentionRecordEntity; |
||||
import com.logpm.warehouse.entity.WarehouseRetentionScanEntity; |
||||
import com.logpm.warehouse.excel.WarehouseRetentionScanExcel; |
||||
import com.logpm.warehouse.vo.WarehouseRetentionRecordVO; |
||||
import com.logpm.warehouse.excel.WarehouseRetentionRecordExcel; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.logpm.warehouse.vo.WarehouseRetentionScanVO; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 滞留扫描记录 Mapper 接口 |
||||
* |
||||
* @author BladeX |
||||
* @since 2023-11-03 |
||||
*/ |
||||
public interface WarehouseRetentionScanMapper extends BaseMapper<WarehouseRetentionScanEntity> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param warehouseRetentionScanVO |
||||
* @return |
||||
*/ |
||||
List<WarehouseRetentionScanVO> selectWarehouseRetentionRecordPage(IPage page, WarehouseRetentionScanVO warehouseRetentionScanVO); |
||||
|
||||
|
||||
/** |
||||
* 获取导出数据 |
||||
* |
||||
* @param queryWrapper |
||||
* @return |
||||
*/ |
||||
List<WarehouseRetentionScanExcel> exportWarehouseRetentionRecord(@Param("ew") Wrapper<WarehouseRetentionScanEntity> queryWrapper); |
||||
|
||||
} |
@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.logpm.warehouse.mapper.WarehouseRetentionScanMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="warehouseRetentionRecordResultMap" type="com.logpm.warehouse.entity.WarehouseRetentionScanEntity"> |
||||
<result column="id" property="id"/> |
||||
<result column="tenant_id" property="tenantId"/> |
||||
<result column="create_user" property="createUser"/> |
||||
<result column="create_time" property="createTime"/> |
||||
<result column="update_user" property="updateUser"/> |
||||
<result column="update_time" property="updateTime"/> |
||||
<result column="status" property="status"/> |
||||
<result column="is_deleted" property="isDeleted"/> |
||||
<result column="create_dept" property="createDept"/> |
||||
<result column="reserve1" property="reserve1"/> |
||||
<result column="reserve2" property="reserve2"/> |
||||
<result column="reserve3" property="reserve3"/> |
||||
<result column="reserve4" property="reserve4"/> |
||||
<result column="reserve5" property="reserve5"/> |
||||
<result column="train_number" property="trainNumber"/> |
||||
<result column="order_id" property="orderId"/> |
||||
<result column="inventory_id" property="inventoryId"/> |
||||
<result column="conditions" property="conditions"/> |
||||
<result column="material_number" property="materialNumber"/> |
||||
<result column="material_name" property="materialName"/> |
||||
<result column="reservation_id" property="reservationId"/> |
||||
<result column="order_code" property="orderCode"/> |
||||
<result column="reservation_code" property="reservationCode"/> |
||||
<result column="scan_type" property="scanType"/> |
||||
<result column="order_package_id" property="orderPackageId"/> |
||||
<result column="order_package_code" property="orderPackageCode"/> |
||||
<result column="retention_quantity" property="retentionQuantity"/> |
||||
<result column="retention_scan_username" property="retentionScanUsername"/> |
||||
<result column="retention_scan_user_id" property="retentionScanUserId"/> |
||||
<result column="remarks" property="remarks"/> |
||||
<result column="retention_scan_time" property="retentionScanTime"/> |
||||
<result column="retention_way" property="retentionWay"/> |
||||
<result column="delivery_list_id" property="deliveryListId"/> |
||||
</resultMap> |
||||
|
||||
|
||||
<select id="selectWarehouseRetentionRecordPage" resultMap="warehouseRetentionRecordResultMap"> |
||||
select * from logpm_warehouse_retention_scan where is_deleted = 0 |
||||
</select> |
||||
|
||||
|
||||
<select id="exportWarehouseRetentionRecord" resultType="com.logpm.warehouse.excel.WarehouseRetentionScanExcel"> |
||||
SELECT * FROM logpm_warehouse_retention_scan ${ew.customSqlSegment} |
||||
</select> |
||||
|
||||
</mapper> |
@ -0,0 +1,55 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.warehouse.service; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.logpm.warehouse.entity.WarehouseRetentionRecordEntity; |
||||
import com.logpm.warehouse.entity.WarehouseRetentionScanEntity; |
||||
import com.logpm.warehouse.excel.WarehouseRetentionScanExcel; |
||||
import com.logpm.warehouse.vo.WarehouseRetentionRecordVO; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.logpm.warehouse.vo.WarehouseRetentionScanVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 滞留扫描记录 服务类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2023-11-03 |
||||
*/ |
||||
public interface IWarehouseRetentionScanService extends IService<WarehouseRetentionScanEntity> { |
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param warehouseRetentionScanVO |
||||
* @return |
||||
*/ |
||||
IPage<WarehouseRetentionScanVO> selectWarehouseRetentionRecordPage(IPage<WarehouseRetentionScanVO> page, WarehouseRetentionScanVO warehouseRetentionScanVO); |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
* |
||||
* @param queryWrapper |
||||
* @return |
||||
*/ |
||||
List<WarehouseRetentionScanExcel> exportWarehouseRetentionRecord(Wrapper<WarehouseRetentionScanEntity> queryWrapper); |
||||
|
||||
} |
@ -0,0 +1,57 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.warehouse.service.impl; |
||||
|
||||
import com.logpm.warehouse.entity.WarehouseRetentionRecordEntity; |
||||
import com.logpm.warehouse.entity.WarehouseRetentionScanEntity; |
||||
import com.logpm.warehouse.excel.WarehouseRetentionScanExcel; |
||||
import com.logpm.warehouse.mapper.WarehouseRetentionScanMapper; |
||||
import com.logpm.warehouse.service.IWarehouseRetentionScanService; |
||||
import com.logpm.warehouse.vo.WarehouseRetentionRecordVO; |
||||
import com.logpm.warehouse.excel.WarehouseRetentionRecordExcel; |
||||
import com.logpm.warehouse.vo.WarehouseRetentionScanVO; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 滞留扫描记录 服务实现类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2023-11-03 |
||||
*/ |
||||
@Service |
||||
public class WarehouseRetentionScanServiceImpl extends BaseServiceImpl<WarehouseRetentionScanMapper, WarehouseRetentionScanEntity> implements IWarehouseRetentionScanService { |
||||
|
||||
@Override |
||||
public IPage<WarehouseRetentionScanVO> selectWarehouseRetentionRecordPage(IPage<WarehouseRetentionScanVO> page, WarehouseRetentionScanVO warehouseRetentionScanVO) { |
||||
return page.setRecords(baseMapper.selectWarehouseRetentionRecordPage(page, warehouseRetentionScanVO)); |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public List<WarehouseRetentionScanExcel> exportWarehouseRetentionRecord(Wrapper<WarehouseRetentionScanEntity> queryWrapper) { |
||||
List<WarehouseRetentionScanExcel> warehouseRetentionRecordList = baseMapper.exportWarehouseRetentionRecord(queryWrapper); |
||||
//warehouseRetentionRecordList.forEach(warehouseRetentionRecord -> {
|
||||
// warehouseRetentionRecord.setTypeName(DictCache.getValue(DictEnum.YES_NO, WarehouseRetentionRecord.getType()));
|
||||
//});
|
||||
return warehouseRetentionRecordList; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue