diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/domain/PurchaseQuoteChild.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/domain/PurchaseQuoteChild.java index 66fc9dcd..5dc557a4 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/domain/PurchaseQuoteChild.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/domain/PurchaseQuoteChild.java @@ -22,7 +22,6 @@ public class PurchaseQuoteChild extends BaseEntity /** 关联报价编号字段 */ @Excel(name = "关联报价编号字段") private String purchaseQuoteCode; - /** 物料表中的id */ @Excel(name = "物料表中的id") private Long materialId; @@ -288,7 +287,22 @@ public class PurchaseQuoteChild extends BaseEntity { return delFlag; } + private String purchasePlanCode; + public void setPurchasePlanCode(String purchasePlanCode) { + this.purchasePlanCode = purchasePlanCode; + } + public String getPurchasePlanCode() { + return purchasePlanCode; + } + private String correlationCode; + + public void setCorrelationCode(String correlationCode) { + this.correlationCode = correlationCode; + } + public String getCorrelationCode() { + return correlationCode; + } @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) @@ -320,11 +334,5 @@ public class PurchaseQuoteChild extends BaseEntity .append("delFlag", getDelFlag()) .toString(); } - private String purchasePlanCode; - public String setPurchasePlanCode(String purchasePlanCode) { - return this.purchasePlanCode = purchasePlanCode; - } - public String getPurchasePlanCode() { - return purchasePlanCode; - } + } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/mapper/PurchaseQuoteChildMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/mapper/PurchaseQuoteChildMapper.java index edfb285b..1749dce5 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/mapper/PurchaseQuoteChildMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/mapper/PurchaseQuoteChildMapper.java @@ -78,4 +78,6 @@ public interface PurchaseQuoteChildMapper * @return 结果 */ public int restorePurchaseQuoteChildById(Long purchaseQuoteChildId); + + List selectQuoteChildByMaterialCode(String materialCode); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/IPurchaseQuoteChildService.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/IPurchaseQuoteChildService.java index e3ee35ea..f32b96a4 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/IPurchaseQuoteChildService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/IPurchaseQuoteChildService.java @@ -81,4 +81,5 @@ public interface IPurchaseQuoteChildService */ int restorePurchaseQuoteChildById(Long purchaseQuoteChildId); + List selectQuoteChildByMaterialCode(String materialCode); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseQuoteChildServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseQuoteChildServiceImpl.java index a51b0486..1f4b544d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseQuoteChildServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseQuoteChildServiceImpl.java @@ -128,4 +128,9 @@ public class PurchaseQuoteChildServiceImpl implements IPurchaseQuoteChildService { return purchaseQuoteChildMapper.restorePurchaseQuoteChildById(purchaseQuoteChildId); } + + @Override + public List selectQuoteChildByMaterialCode(String materialCode) { + return purchaseQuoteChildMapper.selectQuoteChildByMaterialCode(materialCode); + } } diff --git a/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseQuoteChildMapper.xml b/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseQuoteChildMapper.xml index 2cf6bac8..d801657a 100644 --- a/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseQuoteChildMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseQuoteChildMapper.xml @@ -182,5 +182,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update purchase_quote_child set del_flag = '0' where purchase_quote_child_id = #{purchaseQuoteChildId} + \ No newline at end of file