Browse Source
删除旧版的采购计划的所有相关的文件,和其数据库的文件 删除旧版的采购计划子表的所有相关的文件,和其数据的文件 修改采购计划前端页面按照新版prd调整 按照新版prd 新增采购计划表purchase_plan 数据库新增5条测试数据 新增采购计划实体类 新增采购计划Controller 新增采购计划Mapper 新增采购计划Mapper.XML 新增采购计划Service接口 新增采购计划ServiceImpl实现类 按照新版prd 新增采购计划子表purchase_plan_child 数据库新增10条测试数据 新增采购计划子表实体类 新增采购计划子表Mapper 新增采购计划子表Mapper.XML 新增采购计划子表Service接口 新增采购计划子表ServiceImpl实现类 修改请购单的关联采购计划的方法,修改部分方法吗,采用最新的字段dev
liuxiaoxu
2 weeks ago
8 changed files with 522 additions and 675 deletions
@ -1,383 +1,350 @@ |
|||
package com.ruoyi.purchase.domain; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.ArrayList; |
|||
import java.util.Collections; |
|||
import java.util.List; |
|||
|
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
import com.ruoyi.common.annotation.Excel; |
|||
import com.ruoyi.common.core.domain.BaseEntity; |
|||
|
|||
/** |
|||
* 采购计划单物料信息对象 purchase_plan_child |
|||
* |
|||
* @author zhang |
|||
* @date 2024-05-16 |
|||
* 采购计划单子对象 purchase_plan_child |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-11-15 |
|||
*/ |
|||
public class PurchasePlanChild extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
public List<PurchaseQuoteChild> parseSupplierMaterialCombinations; |
|||
|
|||
/** 采购计划物料清单索引 */ |
|||
/** 采购计划子表id */ |
|||
private Long purchasePlanChildId; |
|||
|
|||
/** 关联采购计划编号字段 */ |
|||
@Excel(name = "关联采购计划编号字段") |
|||
/** 采购计划编号 */ |
|||
@Excel(name = "采购计划编号") |
|||
private String purchasePlanCode; |
|||
|
|||
/** 物料表中的id */ |
|||
@Excel(name = "物料表中的id") |
|||
private Long materialId; |
|||
/** 采购计划状态(0待申请、1部分申请、2全部申请、3全部作废) */ |
|||
@Excel(name = "采购计划状态(0待申请、1部分申请、2全部申请、3全部作废)") |
|||
private String purchasePlanStatus; |
|||
|
|||
/** 物料表中的编号 */ |
|||
@Excel(name = "物料表中的编号") |
|||
private String materialCode; |
|||
/** 关联单号 */ |
|||
@Excel(name = "关联单号") |
|||
private String correlationCode; |
|||
|
|||
/** 物料的名称 */ |
|||
@Excel(name = "物料的名称") |
|||
private String materialName; |
|||
/** 采购来源(1生产单、2请购单、3开发修改单) */ |
|||
@Excel(name = "采购来源(1生产单、2请购单、3开发修改单)") |
|||
private String purchasePlanType; |
|||
|
|||
/** 物料的类型 */ |
|||
@Excel(name = "物料的类型") |
|||
private String materialType; |
|||
/** 料号 */ |
|||
@Excel(name = "料号") |
|||
private String materialNo; |
|||
|
|||
/** 物料的加工方式 */ |
|||
@Excel(name = "物料的加工方式") |
|||
private String processMethod; |
|||
/** 物料名称 */ |
|||
@Excel(name = "物料名称") |
|||
private String materialName; |
|||
|
|||
/** 物料的品牌 */ |
|||
@Excel(name = "物料的品牌") |
|||
private String brand; |
|||
/** 物料类型 */ |
|||
@Excel(name = "物料类型") |
|||
private String materialType; |
|||
|
|||
/** 物料的图片 */ |
|||
@Excel(name = "物料的图片") |
|||
private String photoUrl; |
|||
/** 物料图片地址 */ |
|||
@Excel(name = "物料图片地址") |
|||
private String materialPhotourl; |
|||
|
|||
/** 物料的描述 */ |
|||
@Excel(name = "物料的描述") |
|||
private String describe; |
|||
/** 物料品牌 */ |
|||
@Excel(name = "物料品牌") |
|||
private String materialBrand; |
|||
|
|||
/** 物料单位 */ |
|||
@Excel(name = "物料单位") |
|||
private String unit; |
|||
@Excel(name = "物料入库部门") |
|||
private String warehouseDept; |
|||
private String materialUnit; |
|||
|
|||
/** 采购计划数 */ |
|||
@Excel(name = "采购计划数") |
|||
private Double materialNum; |
|||
/** 物料描述 */ |
|||
@Excel(name = "物料描述") |
|||
private String materialDescribe; |
|||
|
|||
/** 物料的对外报价 */ |
|||
private Long materialSole; |
|||
/** 物料加工方式 */ |
|||
@Excel(name = "物料加工方式") |
|||
private String materialProcessMethod; |
|||
|
|||
/** 物料的不含税单价(RMB) */ |
|||
private BigDecimal materialRmb; |
|||
/** 物料型号 */ |
|||
@Excel(name = "物料型号") |
|||
private String materialModel; |
|||
|
|||
/** 物料的含税单价(RMB) */ |
|||
private BigDecimal materialNoRmb; |
|||
/** 入库部门(0仓库、1采购) */ |
|||
@Excel(name = "入库部门(0仓库、1采购)") |
|||
private String warehouseDept; |
|||
|
|||
/*供应商编号*/ |
|||
private String supplierCode; |
|||
/** 物料供应商 */ |
|||
private String supplierName; |
|||
/** 物料不含税总价(RMB) */ |
|||
@Excel(name = "物料不含税总价(RMB)") |
|||
private BigDecimal materialNormbSum; |
|||
|
|||
/** 使用状态 */ |
|||
private String useStatus; |
|||
/** 物料含税总价(RMB) */ |
|||
@Excel(name = "物料含税总价(RMB)") |
|||
private BigDecimal materialRmbSum; |
|||
|
|||
/** 审核状态 */ |
|||
private String auditStatus; |
|||
/** 计划采购数 */ |
|||
@Excel(name = "计划采购数") |
|||
private Integer planPurchaseNum; |
|||
|
|||
/** 删除标志 */ |
|||
private String delFlag; |
|||
/** 关联供应商编号 */ |
|||
private String supplierCodes; |
|||
/** 关联采购报价单编号 */ |
|||
private String correlationCodes; |
|||
/** 待采购数 */ |
|||
@Excel(name = "待采购数") |
|||
private Integer purchaseNum; |
|||
|
|||
private String planCodes; |
|||
private List<PurchaseQuoteChild> purchaseSupplierList; |
|||
/** 实际采购数 */ |
|||
@Excel(name = "实际采购数") |
|||
private Integer actualPurchaseNum; |
|||
|
|||
public String getSupplierCodes() { |
|||
return supplierCodes; |
|||
} |
|||
|
|||
public void setSupplierCodes(String supplierCodes) { |
|||
this.supplierCodes = supplierCodes; |
|||
} |
|||
/** 共享库存占用数 */ |
|||
@Excel(name = "共享库存占用数") |
|||
private Integer sharedInventoryOccupancyNum; |
|||
|
|||
public String getCorrelationCodes() { |
|||
return correlationCodes; |
|||
} |
|||
/** 作废数 */ |
|||
@Excel(name = "作废数") |
|||
private Integer cancelNum; |
|||
|
|||
public void setCorrelationCodes(String correlationCodes) { |
|||
this.correlationCodes = correlationCodes; |
|||
} |
|||
/** 删除标志 0 启用 1逻辑删除 */ |
|||
private String delFlag; |
|||
|
|||
public void setPurchasePlanChildId(Long purchasePlanChildId) |
|||
{ |
|||
this.purchasePlanChildId = purchasePlanChildId; |
|||
} |
|||
|
|||
public Long getPurchasePlanChildId() |
|||
public Long getPurchasePlanChildId() |
|||
{ |
|||
return purchasePlanChildId; |
|||
} |
|||
public void setPurchasePlanCode(String purchasePlanCode) |
|||
public void setPurchasePlanCode(String purchasePlanCode) |
|||
{ |
|||
this.purchasePlanCode = purchasePlanCode; |
|||
} |
|||
|
|||
public String getPurchasePlanCode() |
|||
public String getPurchasePlanCode() |
|||
{ |
|||
return purchasePlanCode; |
|||
} |
|||
public void setMaterialId(Long materialId) |
|||
public void setPurchasePlanStatus(String purchasePlanStatus) |
|||
{ |
|||
this.materialId = materialId; |
|||
this.purchasePlanStatus = purchasePlanStatus; |
|||
} |
|||
|
|||
public Long getMaterialId() |
|||
public String getPurchasePlanStatus() |
|||
{ |
|||
return materialId; |
|||
return purchasePlanStatus; |
|||
} |
|||
public void setMaterialCode(String materialCode) |
|||
public void setCorrelationCode(String correlationCode) |
|||
{ |
|||
this.materialCode = materialCode; |
|||
this.correlationCode = correlationCode; |
|||
} |
|||
|
|||
public String getMaterialCode() |
|||
public String getCorrelationCode() |
|||
{ |
|||
return materialCode; |
|||
return correlationCode; |
|||
} |
|||
public void setMaterialName(String materialName) |
|||
public void setPurchasePlanType(String purchasePlanType) |
|||
{ |
|||
this.materialName = materialName; |
|||
this.purchasePlanType = purchasePlanType; |
|||
} |
|||
|
|||
public String getMaterialName() |
|||
public String getPurchasePlanType() |
|||
{ |
|||
return materialName; |
|||
return purchasePlanType; |
|||
} |
|||
public void setMaterialType(String materialType) |
|||
public void setMaterialNo(String materialNo) |
|||
{ |
|||
this.materialType = materialType; |
|||
this.materialNo = materialNo; |
|||
} |
|||
|
|||
public String getMaterialType() |
|||
public String getMaterialNo() |
|||
{ |
|||
return materialType; |
|||
return materialNo; |
|||
} |
|||
public void setProcessMethod(String processMethod) |
|||
public void setMaterialName(String materialName) |
|||
{ |
|||
this.processMethod = processMethod; |
|||
this.materialName = materialName; |
|||
} |
|||
|
|||
public String getProcessMethod() |
|||
public String getMaterialName() |
|||
{ |
|||
return processMethod; |
|||
return materialName; |
|||
} |
|||
public void setBrand(String brand) |
|||
public void setMaterialType(String materialType) |
|||
{ |
|||
this.brand = brand; |
|||
this.materialType = materialType; |
|||
} |
|||
|
|||
public String getBrand() |
|||
public String getMaterialType() |
|||
{ |
|||
return brand; |
|||
return materialType; |
|||
} |
|||
public void setPhotoUrl(String photoUrl) |
|||
public void setMaterialPhotourl(String materialPhotourl) |
|||
{ |
|||
this.photoUrl = photoUrl; |
|||
this.materialPhotourl = materialPhotourl; |
|||
} |
|||
|
|||
public String getPhotoUrl() |
|||
public String getMaterialPhotourl() |
|||
{ |
|||
return photoUrl; |
|||
return materialPhotourl; |
|||
} |
|||
public void setDescribe(String describe) |
|||
public void setMaterialBrand(String materialBrand) |
|||
{ |
|||
this.describe = describe; |
|||
this.materialBrand = materialBrand; |
|||
} |
|||
|
|||
public String getDescribe() |
|||
public String getMaterialBrand() |
|||
{ |
|||
return describe; |
|||
return materialBrand; |
|||
} |
|||
|
|||
public String getUnit() { |
|||
return unit; |
|||
} |
|||
|
|||
public void setUnit(String unit) { |
|||
this.unit = unit; |
|||
} |
|||
|
|||
public Double getMaterialNum() { |
|||
return materialNum; |
|||
public void setMaterialUnit(String materialUnit) |
|||
{ |
|||
this.materialUnit = materialUnit; |
|||
} |
|||
|
|||
public void setMaterialNum(Double materialNum) { |
|||
this.materialNum = materialNum; |
|||
public String getMaterialUnit() |
|||
{ |
|||
return materialUnit; |
|||
} |
|||
|
|||
|
|||
|
|||
public List<PurchaseQuoteChild> getParseSupplierMaterialCombinations() { |
|||
return parseSupplierMaterialCombinations; |
|||
public void setMaterialDescribe(String materialDescribe) |
|||
{ |
|||
this.materialDescribe = materialDescribe; |
|||
} |
|||
|
|||
public void setParseSupplierMaterialCombinations(List<PurchaseQuoteChild> parseSupplierMaterialCombinations) { |
|||
this.parseSupplierMaterialCombinations = parseSupplierMaterialCombinations; |
|||
public String getMaterialDescribe() |
|||
{ |
|||
return materialDescribe; |
|||
} |
|||
|
|||
public void setMaterialSole(Long materialSole) |
|||
public void setMaterialProcessMethod(String materialProcessMethod) |
|||
{ |
|||
this.materialSole = materialSole; |
|||
this.materialProcessMethod = materialProcessMethod; |
|||
} |
|||
|
|||
public Long getMaterialSole() |
|||
public String getMaterialProcessMethod() |
|||
{ |
|||
return materialSole; |
|||
return materialProcessMethod; |
|||
} |
|||
public void setMaterialRmb(BigDecimal materialRmb) |
|||
public void setMaterialModel(String materialModel) |
|||
{ |
|||
this.materialRmb = materialRmb; |
|||
this.materialModel = materialModel; |
|||
} |
|||
|
|||
public BigDecimal getMaterialRmb() |
|||
public String getMaterialModel() |
|||
{ |
|||
return materialRmb; |
|||
return materialModel; |
|||
} |
|||
public void setMaterialNoRmb(BigDecimal materialNoRmb) |
|||
public void setWarehouseDept(String warehouseDept) |
|||
{ |
|||
this.materialNoRmb = materialNoRmb; |
|||
this.warehouseDept = warehouseDept; |
|||
} |
|||
|
|||
public BigDecimal getMaterialNoRmb() |
|||
public String getWarehouseDept() |
|||
{ |
|||
return materialNoRmb; |
|||
return warehouseDept; |
|||
} |
|||
public void setUseStatus(String useStatus) |
|||
public void setMaterialNormbSum(BigDecimal materialNormbSum) |
|||
{ |
|||
this.useStatus = useStatus; |
|||
this.materialNormbSum = materialNormbSum; |
|||
} |
|||
|
|||
public String getSupplierCode() { |
|||
return supplierCode; |
|||
public BigDecimal getMaterialNormbSum() |
|||
{ |
|||
return materialNormbSum; |
|||
} |
|||
|
|||
public void setSupplierCode(String supplierCode) { |
|||
this.supplierCode = supplierCode; |
|||
public void setMaterialRmbSum(BigDecimal materialRmbSum) |
|||
{ |
|||
this.materialRmbSum = materialRmbSum; |
|||
} |
|||
|
|||
public String getSupplierName() { |
|||
return supplierName; |
|||
public BigDecimal getMaterialRmbSum() |
|||
{ |
|||
return materialRmbSum; |
|||
} |
|||
|
|||
public void setSupplierName(String supplierName) { |
|||
this.supplierName = supplierName; |
|||
public void setPlanPurchaseNum(Integer planPurchaseNum) |
|||
{ |
|||
this.planPurchaseNum = planPurchaseNum; |
|||
} |
|||
|
|||
public String getWarehouseDept() { |
|||
return warehouseDept; |
|||
public Integer getPlanPurchaseNum() |
|||
{ |
|||
return planPurchaseNum; |
|||
} |
|||
|
|||
public void setWarehouseDept(String warehouseDept) { |
|||
this.warehouseDept = warehouseDept; |
|||
public void setPurchaseNum(Integer purchaseNum) |
|||
{ |
|||
this.purchaseNum = purchaseNum; |
|||
} |
|||
|
|||
public List<PurchaseQuoteChild> getPurchaseSupplierList() { |
|||
return purchaseSupplierList; |
|||
public Integer getPurchaseNum() |
|||
{ |
|||
return purchaseNum; |
|||
} |
|||
|
|||
public void setPurchaseSupplierList(List<PurchaseQuoteChild> purchaseSupplierList) { |
|||
this.purchaseSupplierList = purchaseSupplierList; |
|||
public void setActualPurchaseNum(Integer actualPurchaseNum) |
|||
{ |
|||
this.actualPurchaseNum = actualPurchaseNum; |
|||
} |
|||
|
|||
public String getPlanCodes() { |
|||
return planCodes; |
|||
public Integer getActualPurchaseNum() |
|||
{ |
|||
return actualPurchaseNum; |
|||
} |
|||
|
|||
public void setPlanCodes(String planCodes) { |
|||
this.planCodes = planCodes; |
|||
public void setSharedInventoryOccupancyNum(Integer sharedInventoryOccupancyNum) |
|||
{ |
|||
this.sharedInventoryOccupancyNum = sharedInventoryOccupancyNum; |
|||
} |
|||
|
|||
public String getUseStatus() |
|||
public Integer getSharedInventoryOccupancyNum() |
|||
{ |
|||
return useStatus; |
|||
return sharedInventoryOccupancyNum; |
|||
} |
|||
public void setAuditStatus(String auditStatus) |
|||
public void setCancelNum(Integer cancelNum) |
|||
{ |
|||
this.auditStatus = auditStatus; |
|||
this.cancelNum = cancelNum; |
|||
} |
|||
|
|||
public String getAuditStatus() |
|||
public Integer getCancelNum() |
|||
{ |
|||
return auditStatus; |
|||
return cancelNum; |
|||
} |
|||
public void setDelFlag(String delFlag) |
|||
public void setDelFlag(String delFlag) |
|||
{ |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
|
|||
|
|||
public String getDelFlag() |
|||
{ |
|||
return delFlag; |
|||
} |
|||
|
|||
public List<PurchaseQuoteChild> parseSupplierMaterialCombinations(String combinations) { |
|||
if (combinations == null || combinations.isEmpty()) { |
|||
return Collections.emptyList(); |
|||
} |
|||
//materialCode|purchaseQuoteCode|supplierCode|supplierName|materialName|materialNoRmb|materialRmb|purchasePlanCode|correlationCode
|
|||
/* 1. 料号 | 2. 供应商报价编号 | 3. 供应商编号 | 4.供应商名称 | 5. 物料名称 | 6. 物料含税单价(RMB) | 7. 物料不含税单价(RMB) | 8关联采购计划单号 | 9关联相关订单号 */ |
|||
List<PurchaseQuoteChild> purchaseSupplierList = new ArrayList<>(); |
|||
String[] split = combinations.split(","); |
|||
for (int i = 0; i < split.length; i++) { |
|||
String[] split1 = split[i].split("\\|"); |
|||
PurchaseQuoteChild purchaseQuoteChild = new PurchaseQuoteChild(); |
|||
purchaseQuoteChild.setMaterialCode(split1[0]); |
|||
purchaseQuoteChild.setPurchaseQuoteCode(split1[1]); |
|||
purchaseQuoteChild.setSupplierCode(split1[2]); |
|||
purchaseQuoteChild.setSupplierName(split1[3]); |
|||
purchaseQuoteChild.setMaterialName(split1[4]); |
|||
purchaseQuoteChild.setMaterialNoRmb(BigDecimal.valueOf(Float.parseFloat(split1[5]))); |
|||
purchaseQuoteChild.setMaterialRmb(BigDecimal.valueOf(Float.parseFloat(split1[6]))); |
|||
purchaseQuoteChild.setPurchasePlanCode(split1[7]); |
|||
purchaseQuoteChild.setCorrelationCode(split1[8]); |
|||
purchaseSupplierList.add(purchaseQuoteChild); |
|||
} |
|||
return purchaseSupplierList; |
|||
} |
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("purchasePlanChildId", getPurchasePlanChildId()) |
|||
.append("purchasePlanCode", getPurchasePlanCode()) |
|||
.append("materialId", getMaterialId()) |
|||
.append("materialCode", getMaterialCode()) |
|||
.append("materialName", getMaterialName()) |
|||
.append("materialType", getMaterialType()) |
|||
.append("processMethod", getProcessMethod()) |
|||
.append("brand", getBrand()) |
|||
.append("photoUrl", getPhotoUrl()) |
|||
.append("describe", getDescribe()) |
|||
.append("materialNum", getMaterialNum()) |
|||
.append("materialSole", getMaterialSole()) |
|||
.append("materialRmb", getMaterialRmb()) |
|||
.append("materialNoRmb", getMaterialNoRmb()) |
|||
.append("createBy", getCreateBy()) |
|||
.append("createTime", getCreateTime()) |
|||
.append("updateBy", getUpdateBy()) |
|||
.append("updateTime", getUpdateTime()) |
|||
.append("remark", getRemark()) |
|||
.append("useStatus", getUseStatus()) |
|||
.append("auditStatus", getAuditStatus()) |
|||
.append("delFlag", getDelFlag()) |
|||
.toString(); |
|||
.append("purchasePlanChildId", getPurchasePlanChildId()) |
|||
.append("purchasePlanCode", getPurchasePlanCode()) |
|||
.append("purchasePlanStatus", getPurchasePlanStatus()) |
|||
.append("correlationCode", getCorrelationCode()) |
|||
.append("purchasePlanType", getPurchasePlanType()) |
|||
.append("materialNo", getMaterialNo()) |
|||
.append("materialName", getMaterialName()) |
|||
.append("materialType", getMaterialType()) |
|||
.append("materialPhotourl", getMaterialPhotourl()) |
|||
.append("materialBrand", getMaterialBrand()) |
|||
.append("materialUnit", getMaterialUnit()) |
|||
.append("materialDescribe", getMaterialDescribe()) |
|||
.append("materialProcessMethod", getMaterialProcessMethod()) |
|||
.append("materialModel", getMaterialModel()) |
|||
.append("warehouseDept", getWarehouseDept()) |
|||
.append("materialNormbSum", getMaterialNormbSum()) |
|||
.append("materialRmbSum", getMaterialRmbSum()) |
|||
.append("planPurchaseNum", getPlanPurchaseNum()) |
|||
.append("purchaseNum", getPurchaseNum()) |
|||
.append("actualPurchaseNum", getActualPurchaseNum()) |
|||
.append("sharedInventoryOccupancyNum", getSharedInventoryOccupancyNum()) |
|||
.append("cancelNum", getCancelNum()) |
|||
.append("createBy", getCreateBy()) |
|||
.append("createTime", getCreateTime()) |
|||
.append("updateBy", getUpdateBy()) |
|||
.append("updateTime", getUpdateTime()) |
|||
.append("remark", getRemark()) |
|||
.append("delFlag", getDelFlag()) |
|||
.toString(); |
|||
} |
|||
} |
|||
|
Loading…
Reference in new issue