diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpInboundOrderDetail.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpInboundOrderDetail.java index 14b328bc..c6bcb7f8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpInboundOrderDetail.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpInboundOrderDetail.java @@ -34,6 +34,11 @@ public class ErpInboundOrderDetail extends BaseEntity @Excel(name = "生产订单bomid") private Long makeorderBomId; + + /** 本单可用库存数 */ + @Excel(name = "本单可用库存数") + private Integer availableStockNum; + /** 已完成数 */ @Excel(name = "已完成数") private Long completedNum; @@ -97,7 +102,17 @@ public class ErpInboundOrderDetail extends BaseEntity { return makeorderBomId; } - public void setCompletedNum(Long completedNum) + + + public Integer getAvailableStockNum() { + return availableStockNum; + } + + public void setAvailableStockNum(Integer availableStockNum) { + this.availableStockNum = availableStockNum; + } + + public void setCompletedNum(Long completedNum) { this.completedNum = completedNum; } @@ -162,6 +177,7 @@ public class ErpInboundOrderDetail extends BaseEntity .append("inboundOrderNo", getInboundOrderNo()) .append("materialNo", getMaterialNo()) .append("makeorderBomId", getMakeorderBomId()) + .append("availableStockNum",getAvailableStockNum()) .append("completedNum", getCompletedNum()) .append("currentNum", getCurrentNum()) .append("processFeeUnitPrice", getProcessFeeUnitPrice()) diff --git a/ruoyi-admin/src/main/resources/mapper/erp/ErpInboundOrderDetailMapper.xml b/ruoyi-admin/src/main/resources/mapper/erp/ErpInboundOrderDetailMapper.xml index 619b363d..7d93fc9f 100644 --- a/ruoyi-admin/src/main/resources/mapper/erp/ErpInboundOrderDetailMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/erp/ErpInboundOrderDetailMapper.xml @@ -15,6 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + @@ -57,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + @@ -76,7 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select a.id, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time, a.remark, a.inbound_order_no, a.material_no, a.makeorder_bom_id, a.completed_num, a.current_num, a.process_fee_unit_price from erp_inbound_order_detail a + select a.id, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time, a.remark, a.inbound_order_no, a.material_no, a.makeorder_bom_id, a.available_stock_num, a.completed_num, a.current_num, a.process_fee_unit_price from erp_inbound_order_detail a