查询统计-库存

This commit is contained in:
liuhanqing
2025-10-27 13:22:19 +08:00
parent 2e760e7a3e
commit 89c47306ce
8 changed files with 433 additions and 508 deletions

View File

@@ -40,7 +40,7 @@ public class ToWcsServiceImpl implements IToWcsService {
@Override
@Scheduled(fixedDelay=1500)
//@Scheduled(fixedDelay=1500)
public void pushOutMydoJob() {
//查询所有未推送的料箱出库作业
MydoJob mydoJobParam = new MydoJob();

View File

@@ -1,11 +1,16 @@
package com.ruoyi.search.ViewStockDetail.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.util.Date;
/**
* 库存明细查询对象 view_stock_detail
@@ -21,271 +26,116 @@ public class ViewStockDetail extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 序号 */
// @Excel(name = "序号")
private Long onlyIdentity;
@Excel(name = "库存编码")
private String stockId; // 库存编码
/** 库存ID */
@Excel(name = "库存ID")
private String stockId;
@Excel(name = "账套",dictType = "account_type")
private String spare3; // 账套
@Excel(name = "订单号")
private String orderId;
@Excel(name = "库位编码")
private String cargoSpaceId; // 库位编码
/** 物料编码 */
@Excel(name = "物料编码")
private String productId;
@Excel(name = "托盘")
private String trayCode; // 托盘
/** 物料名称 */
@Excel(name = "物料名称")
private String productName;
@Excel(name = "产品编码")
private String productId; // 产品编码
/** 货位ID */
// @Excel(name = "货位ID")
private String cargoSpaceId;
@Excel(name = "产品名称")
private String productName; // 产品名称
/** 货位名称 */
@Excel(name = "货位名称")
private String cargoSpaceName;
/** 托盘条码 */
@Excel(name = "托盘条码")
private String trayCode;
/** 数量 */
// @Excel(name = "数量")
private String quantity;
/** 作业ID */
@Excel(name = "作业ID")
private String jobId;
/** 批号 */
// @Excel(name = "批号")
private String lotNo;
/** 入库子单ID */
@Excel(name = "入库子单ID")
private String stockinDetailId;
/** 入库时间 */
@Excel(name = "入库时间")
private String inDate;
/** 仓库ID */
// @Excel(name = "仓库ID")
private String warehouseId;
/** 仓库名称 */
// @Excel(name = "仓库名称")
private String warehouseName;
/** 垛型ID */
// @Excel(name = "垛型ID")
private String stackingId;
/** 巷道ID */
@Excel(name = "巷道ID")
private String roadwayId;
/** 货位状态 1空2满 3入库分配 4出库分配 5入库盘点 6出库盘点 */
@Excel(name = "货位状态", dictType = "cargo_space_status")
private String cargoSpaceStatus;
/** 库存状态 1正常 2冻结 */
@Excel(name = "库存状态", dictType = "stock_status")
private String stockStatus;
/** 物料状态 1正常 2盘点待审批 3异常 */
@Excel(name = "物料状态", dictType = "product_status")
private String productStatus;
/** 是否锁定 Y锁、N开 */
// @Excel(name = "是否锁定", dictType = "cargo_space_lock_status")
private String locked;
/** 物料GUID */
@Excel(name = "物料GUID")
private String productGuid;
/** 规格 */
@Excel(name = "规格")
private String spec;
private String spec; // 规格
@Excel(name = "数量")
private BigDecimal quantity; // 数量
@Excel(name = "金额")
private String spare6; // 金额
@Excel(name = "单价")
private BigDecimal price; // 单价
@Excel(name = "产品状态",dictType = "turnover_type")
private String spare1; // 产品状态
/** 单位 */
@Excel(name = "单位")
private String unit;
private String unit; // 单位
/** 价格 */
@Excel(name = "价格")
private String price;
@Excel(name = "图号")
private String cargoNo; // 图号
/** 产品分类 */
@Excel(name = "产品分类")
private String parentId;
@Excel(name = "合同号")
private String orderId; // 合同号
/** 品号描述 */
@Excel(name = "品号描述")
private String cargoNo;
@Excel(name = "台次")
private String spare5; // 台次
/** 英文名称 */
@Excel(name = "英文名称")
private String spare1;
@Excel(name = "件次")
private String power; // 件次
/** 单件净重 */
@Excel(name = "单件净重")
private String spare2;
@Excel(name = "质量",dictType = "quality_type")
private String spare8; // 质量
/** 颜色 */
@Excel(name = "颜色")
private String spare3;
@Excel(name = "常用编码")
private String parentId; // 常用编码
/** 序列号 */
@Excel(name = "序列号")
@Excel(name = "入库单号")
private String stockinId; // 入库单号
@Excel(name = "供应商名称")
private String supplierName; // 供应商名称
@Excel(name = "供应商编号")
private String supplierNo; // 供应商编号
@Excel(name = "仓库编码")
private String warehouseId; // 仓库编码
@Excel(name = "仓库名称")
private String warehouseName; // 仓库名称
@Excel(name = "首次入库时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date inDate; // 入库时间
@Excel(name = "最后出库时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date backDate; // 出库时间
@Excel(name = "盘点标识",dictType = "check_flag")
private String spare7; // 盘点标识
@Excel(name = "出库时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date stackingId; // 盘点时间
@Excel(name = "备注")
private String remark; // 备注
@Excel(name = "库存状态")
private String stockStatus; // 库存状态
@Excel(name = "批次号")
private String lotNo; // 批次号
private BigDecimal outQuantity; // 出库数量
private String roadwayId;
private String theFloor;
private String thePlatoon;
private String theColumn;
private String supplierId;
private String inDateStart;
private String inDateEnd;
private String voltage;
private String productType;
private String outside;
private String spare4;
/** 电压 */
@Excel(name = "电压")
private String spare5;
/** 功率 */
@Excel(name = "功率")
private String spare6;
/** 相位 */
@Excel(name = "相位")
private String spare7;
/** 毛重 */
@Excel(name = "毛重")
private String spare8;
/** NC号 */
@Excel(name = "NC号")
private String spare9;
/** 电源线 */
@Excel(name = "电源线")
private String spare10;
/** 插头 */
@Excel(name = "插头")
private String spare11;
/** 接嘴 */
@Excel(name = "接嘴")
private String spare12;
/** 快捷码 */
@Excel(name = "快捷码")
private String spare13;
/** 库存单位编号 */
@Excel(name = "库存单位编号")
private String spare14;
/** 库存单位名称 */
@Excel(name = "库存单位名称")
private String spare15;
/** 品号群组 */
@Excel(name = "品号群组")
private String spare16;
/** 归类品 */
@Excel(name = "归类品")
private String spare17;
/** 计量体系 */
@Excel(name = "计量体系")
private String spare18;
/** 群组名称 */
@Excel(name = "群组名称")
private String spare19;
/** 批号管理 */
@Excel(name = "批号管理")
private String spare20;
/** 状态 */
@Excel(name = "状态")
private String spare21;
/** 产品大类 */
@Excel(name = "产品大类")
private String spare22;
/** 产品二类 */
@Excel(name = "产品二类")
private String spare23;
/** 产品线/产品系列 */
@Excel(name = "产品线/产品系列")
private String spare24;
/** BOM状态 */
@Excel(name = "BOM状态")
private String spare25;
/** 产品定位 */
@Excel(name = "产品定位")
private String spare26;
/** 电脑板型号 */
@Excel(name = "电脑板型号")
private String spare27;
/** 非标要求 */
@Excel(name = "非标要求")
private String spare28;
/** 品牌 */
@Excel(name = "品牌")
private String spare29;
/** 非标颜色 */
@Excel(name = "非标颜色")
private String spare30;
/** 主颜色 */
@Excel(name = "主颜色")
private String spare31;
/** 辅助颜色 */
@Excel(name = "辅助颜色")
private String spare32;
/** 是否标准款 */
@Excel(name = "是否标准款")
private String spare33;
/** 包装方式 */
@Excel(name = "包装方式")
private String spare34;
/** 主要包装方式 */
@Excel(name = "主要包装方式")
private String spare35;
/** 长 */
@Excel(name = "长")
private String spare36;
/** 宽 */
@Excel(name = "宽")
private String spare37;
/** 高 */
@Excel(name = "高")
private String spare38;
/** 包装材积 */
@Excel(name = "包装材积")
private String spare39;
/** 备注 */
@Excel(name = "描述")
private String remark;
}

View File

@@ -40,7 +40,7 @@ public class ViewStockDetailServiceImpl implements IViewStockDetailService
* @return 库存明细查询
*/
@Override
@DataScope(warehouseAlias = "vsd")
//@DataScope(warehouseAlias = "vsd")
public List<ViewStockDetail> selectViewStockDetailList(ViewStockDetail viewStockDetail)
{
return viewStockDetailMapper.selectViewStockDetailList(viewStockDetail);