提交价格套餐功能

This commit is contained in:
wuweihua
2026-09-04 14:56:05 +08:00
parent f8b9681583
commit 5e15ab9c44
47 changed files with 6243 additions and 9 deletions
@@ -0,0 +1,57 @@
package com.ruoyi.price.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 客户套餐 prc_customer_price_set
*
* @author ruoyi
*/
public class PrcCustomerPriceSet extends BaseEntity
{
private static final long serialVersionUID = 1L;
private Long customerPricesetId;
private Long priceSetId;
private Long customerId;
private String customerName;
/** 优先级,数字越小越优先 */
private Integer bindPriority;
@JsonFormat(pattern = "yyyy-MM-dd")
private Date prBegindate;
@JsonFormat(pattern = "yyyy-MM-dd")
private Date prEnddate;
private String priceSetNote;
public Long getCustomerPricesetId() { return customerPricesetId; }
public void setCustomerPricesetId(Long customerPricesetId) { this.customerPricesetId = customerPricesetId; }
public Long getPriceSetId() { return priceSetId; }
public void setPriceSetId(Long priceSetId) { this.priceSetId = priceSetId; }
public Long getCustomerId() { return customerId; }
public void setCustomerId(Long customerId) { this.customerId = customerId; }
public String getCustomerName() { return customerName; }
public void setCustomerName(String customerName) { this.customerName = customerName; }
public Integer getBindPriority() { return bindPriority; }
public void setBindPriority(Integer bindPriority) { this.bindPriority = bindPriority; }
public Date getPrBegindate() { return prBegindate; }
public void setPrBegindate(Date prBegindate) { this.prBegindate = prBegindate; }
public Date getPrEnddate() { return prEnddate; }
public void setPrEnddate(Date prEnddate) { this.prEnddate = prEnddate; }
public String getPriceSetNote() { return priceSetNote; }
public void setPriceSetNote(String priceSetNote) { this.priceSetNote = priceSetNote; }
@Override
public String toString()
{
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("customerPricesetId", getCustomerPricesetId())
.append("priceSetId", getPriceSetId())
.append("customerId", getCustomerId())
.append("bindPriority", getBindPriority())
.toString();
}
}
@@ -0,0 +1,115 @@
package com.ruoyi.price.domain;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 价格套餐 prc_price_set
*
* @author ruoyi
*/
public class PrcPriceSet extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 价格套餐id */
private Long priceSetId;
/** 套餐编码 */
private String priceSetCode;
/** 套餐名称 */
private String priceSetName;
/** 备注 */
private String priceSetNote;
/** 计价类型 FIXED / DISCOUNT */
private String setType;
/** 默认折扣百分数 */
private BigDecimal defaultDiscount;
/** 默认套餐 Y */
private String defaultType;
/** 试算标记 Y */
private String calculateSign;
/** 生效日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
private Date effectiveDate;
/** 失效日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
private Date expireDate;
/** 状态 D/A/E/R/S */
private String status;
/** 租户ID */
private Long tmsId;
/** 产品数(列表) */
private Integer productCount;
/** 客户数(列表) */
private Integer customerCount;
/** 是否已过期(计算字段) */
private Boolean expired;
/** 列表搜索关键字 */
private String keyword;
/** 保存后是否提交审核 Y */
private String submitFlag;
/** 套餐明细(向导保存) */
private List<PrcPriceSetDetail> details;
/** 绑定客户(向导保存) */
private List<PrcCustomerPriceSet> customers;
public Long getPriceSetId() { return priceSetId; }
public void setPriceSetId(Long priceSetId) { this.priceSetId = priceSetId; }
public String getPriceSetCode() { return priceSetCode; }
public void setPriceSetCode(String priceSetCode) { this.priceSetCode = priceSetCode; }
public String getPriceSetName() { return priceSetName; }
public void setPriceSetName(String priceSetName) { this.priceSetName = priceSetName; }
public String getPriceSetNote() { return priceSetNote; }
public void setPriceSetNote(String priceSetNote) { this.priceSetNote = priceSetNote; }
public String getSetType() { return setType; }
public void setSetType(String setType) { this.setType = setType; }
public BigDecimal getDefaultDiscount() { return defaultDiscount; }
public void setDefaultDiscount(BigDecimal defaultDiscount) { this.defaultDiscount = defaultDiscount; }
public String getDefaultType() { return defaultType; }
public void setDefaultType(String defaultType) { this.defaultType = defaultType; }
public String getCalculateSign() { return calculateSign; }
public void setCalculateSign(String calculateSign) { this.calculateSign = calculateSign; }
public Date getEffectiveDate() { return effectiveDate; }
public void setEffectiveDate(Date effectiveDate) { this.effectiveDate = effectiveDate; }
public Date getExpireDate() { return expireDate; }
public void setExpireDate(Date expireDate) { this.expireDate = expireDate; }
public String getStatus() { return status; }
public void setStatus(String status) { this.status = status; }
public Long getTmsId() { return tmsId; }
public void setTmsId(Long tmsId) { this.tmsId = tmsId; }
public Integer getProductCount() { return productCount; }
public void setProductCount(Integer productCount) { this.productCount = productCount; }
public Integer getCustomerCount() { return customerCount; }
public void setCustomerCount(Integer customerCount) { this.customerCount = customerCount; }
public Boolean getExpired() { return expired; }
public void setExpired(Boolean expired) { this.expired = expired; }
public String getKeyword() { return keyword; }
public void setKeyword(String keyword) { this.keyword = keyword; }
public String getSubmitFlag() { return submitFlag; }
public void setSubmitFlag(String submitFlag) { this.submitFlag = submitFlag; }
public List<PrcPriceSetDetail> getDetails() { return details; }
public void setDetails(List<PrcPriceSetDetail> details) { this.details = details; }
public List<PrcCustomerPriceSet> getCustomers() { return customers; }
public void setCustomers(List<PrcCustomerPriceSet> customers) { this.customers = customers; }
@Override
public String toString()
{
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("priceSetId", getPriceSetId())
.append("priceSetCode", getPriceSetCode())
.append("priceSetName", getPriceSetName())
.append("setType", getSetType())
.append("status", getStatus())
.append("effectiveDate", getEffectiveDate())
.append("expireDate", getExpireDate())
.toString();
}
}
@@ -0,0 +1,34 @@
package com.ruoyi.price.domain;
/**
* 套餐校验项
*
* @author ruoyi
*/
public class PrcPriceSetCheckItem
{
/** 校验项名称 */
private String item;
/** PASS / WARN / FAIL / INFO */
private String result;
/** 说明 */
private String message;
public PrcPriceSetCheckItem()
{
}
public PrcPriceSetCheckItem(String item, String result, String message)
{
this.item = item;
this.result = result;
this.message = message;
}
public String getItem() { return item; }
public void setItem(String item) { this.item = item; }
public String getResult() { return result; }
public void setResult(String result) { this.result = result; }
public String getMessage() { return message; }
public void setMessage(String message) { this.message = message; }
}
@@ -0,0 +1,79 @@
package com.ruoyi.price.domain;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 价格套餐明细 prc_price_set_detail
*
* @author ruoyi
*/
public class PrcPriceSetDetail implements Serializable
{
private static final long serialVersionUID = 1L;
private Long psdId;
private Long priceSetId;
private String productCode;
private String productName;
private String countryCode;
private String countryName;
private Long zdId;
private Long wsdId;
private String weightLabel;
private BigDecimal fvValue;
private BigDecimal fvRegistrationFee;
private BigDecimal discountValue;
private Integer prId;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createdAt;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updatedAt;
public Long getPsdId() { return psdId; }
public void setPsdId(Long psdId) { this.psdId = psdId; }
public Long getPriceSetId() { return priceSetId; }
public void setPriceSetId(Long priceSetId) { this.priceSetId = priceSetId; }
public String getProductCode() { return productCode; }
public void setProductCode(String productCode) { this.productCode = productCode; }
public String getProductName() { return productName; }
public void setProductName(String productName) { this.productName = productName; }
public String getCountryCode() { return countryCode; }
public void setCountryCode(String countryCode) { this.countryCode = countryCode; }
public String getCountryName() { return countryName; }
public void setCountryName(String countryName) { this.countryName = countryName; }
public Long getZdId() { return zdId; }
public void setZdId(Long zdId) { this.zdId = zdId; }
public Long getWsdId() { return wsdId; }
public void setWsdId(Long wsdId) { this.wsdId = wsdId; }
public String getWeightLabel() { return weightLabel; }
public void setWeightLabel(String weightLabel) { this.weightLabel = weightLabel; }
public BigDecimal getFvValue() { return fvValue; }
public void setFvValue(BigDecimal fvValue) { this.fvValue = fvValue; }
public BigDecimal getFvRegistrationFee() { return fvRegistrationFee; }
public void setFvRegistrationFee(BigDecimal fvRegistrationFee) { this.fvRegistrationFee = fvRegistrationFee; }
public BigDecimal getDiscountValue() { return discountValue; }
public void setDiscountValue(BigDecimal discountValue) { this.discountValue = discountValue; }
public Integer getPrId() { return prId; }
public void setPrId(Integer prId) { this.prId = prId; }
public Date getCreatedAt() { return createdAt; }
public void setCreatedAt(Date createdAt) { this.createdAt = createdAt; }
public Date getUpdatedAt() { return updatedAt; }
public void setUpdatedAt(Date updatedAt) { this.updatedAt = updatedAt; }
@Override
public String toString()
{
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("psdId", getPsdId())
.append("priceSetId", getPriceSetId())
.append("productCode", getProductCode())
.append("countryCode", getCountryCode())
.append("wsdId", getWsdId())
.toString();
}
}
@@ -0,0 +1,86 @@
package com.ruoyi.price.domain;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 重量段明细 prc_weight_section_detail
*
* @author ruoyi
*/
public class PrcWeightSectionDetail implements Serializable
{
private static final long serialVersionUID = 1L;
/** 重量段明细ID */
private Long wsdId;
/** 重量段模板ID */
private Long wstId;
/** 段标题 */
private String wlTitle;
/** 起始重量 */
private BigDecimal wlStartweight;
/** 结束重量 */
private BigDecimal wlEndweight;
/** 计费方式代码 */
private String weightBillingCode;
/** 单位重量 */
private BigDecimal fvUnitweight;
/** 生效日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
private Date effectiveDate;
/** 失效日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
private Date expireDate;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createdAt;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updatedAt;
public Long getWsdId() { return wsdId; }
public void setWsdId(Long wsdId) { this.wsdId = wsdId; }
public Long getWstId() { return wstId; }
public void setWstId(Long wstId) { this.wstId = wstId; }
public String getWlTitle() { return wlTitle; }
public void setWlTitle(String wlTitle) { this.wlTitle = wlTitle; }
public BigDecimal getWlStartweight() { return wlStartweight; }
public void setWlStartweight(BigDecimal wlStartweight) { this.wlStartweight = wlStartweight; }
public BigDecimal getWlEndweight() { return wlEndweight; }
public void setWlEndweight(BigDecimal wlEndweight) { this.wlEndweight = wlEndweight; }
public String getWeightBillingCode() { return weightBillingCode; }
public void setWeightBillingCode(String weightBillingCode) { this.weightBillingCode = weightBillingCode; }
public BigDecimal getFvUnitweight() { return fvUnitweight; }
public void setFvUnitweight(BigDecimal fvUnitweight) { this.fvUnitweight = fvUnitweight; }
public Date getEffectiveDate() { return effectiveDate; }
public void setEffectiveDate(Date effectiveDate) { this.effectiveDate = effectiveDate; }
public Date getExpireDate() { return expireDate; }
public void setExpireDate(Date expireDate) { this.expireDate = expireDate; }
public Date getCreatedAt() { return createdAt; }
public void setCreatedAt(Date createdAt) { this.createdAt = createdAt; }
public Date getUpdatedAt() { return updatedAt; }
public void setUpdatedAt(Date updatedAt) { this.updatedAt = updatedAt; }
@Override
public String toString()
{
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("wsdId", getWsdId())
.append("wstId", getWstId())
.append("wlTitle", getWlTitle())
.append("wlStartweight", getWlStartweight())
.append("wlEndweight", getWlEndweight())
.append("weightBillingCode", getWeightBillingCode())
.append("fvUnitweight", getFvUnitweight())
.append("effectiveDate", getEffectiveDate())
.append("expireDate", getExpireDate())
.append("createdAt", getCreatedAt())
.append("updatedAt", getUpdatedAt())
.toString();
}
}
@@ -0,0 +1,78 @@
package com.ruoyi.price.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 重量段模板 prc_weight_section_template
*
* @author ruoyi
*/
public class PrcWeightSectionTemplate extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 重量段模板ID */
private Long wstId;
/** 模板名称 */
private String wstName;
/** 状态码(on/off) */
private String ssCode;
/** 产品组代码 */
private String pgCode;
/** 服务渠道ID */
private Long snId;
/** 货物类型代码 */
private String ctCode;
/** 付款方式代码 */
private String pmCode;
/** 备注 */
private String wstNote;
/** 租户ID */
private Long tmsId;
/** 明细数量(列表展示,非表字段) */
private Integer detailCount;
public Long getWstId() { return wstId; }
public void setWstId(Long wstId) { this.wstId = wstId; }
public String getWstName() { return wstName; }
public void setWstName(String wstName) { this.wstName = wstName; }
public String getSsCode() { return ssCode; }
public void setSsCode(String ssCode) { this.ssCode = ssCode; }
public String getPgCode() { return pgCode; }
public void setPgCode(String pgCode) { this.pgCode = pgCode; }
public Long getSnId() { return snId; }
public void setSnId(Long snId) { this.snId = snId; }
public String getCtCode() { return ctCode; }
public void setCtCode(String ctCode) { this.ctCode = ctCode; }
public String getPmCode() { return pmCode; }
public void setPmCode(String pmCode) { this.pmCode = pmCode; }
public String getWstNote() { return wstNote; }
public void setWstNote(String wstNote) { this.wstNote = wstNote; }
public Long getTmsId() { return tmsId; }
public void setTmsId(Long tmsId) { this.tmsId = tmsId; }
public Integer getDetailCount() { return detailCount; }
public void setDetailCount(Integer detailCount) { this.detailCount = detailCount; }
@Override
public String toString()
{
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("wstId", getWstId())
.append("wstName", getWstName())
.append("ssCode", getSsCode())
.append("pgCode", getPgCode())
.append("snId", getSnId())
.append("ctCode", getCtCode())
.append("pmCode", getPmCode())
.append("wstNote", getWstNote())
.append("tmsId", getTmsId())
.append("detailCount", getDetailCount())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}
@@ -0,0 +1,58 @@
package com.ruoyi.price.domain;
import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 分区国家 xtd_zonecountry
*
* @author ruoyi
*/
public class XtdZoneCountry implements Serializable
{
private static final long serialVersionUID = 1L;
/** 分区国家ID */
private Long zcId;
/** 区划ID */
private Long zdId;
/** 国家代码(ISO2) */
private String countryCode;
/** 划分类型(默认C) */
private String zcDividekind;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createdAt;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updatedAt;
public Long getZcId() { return zcId; }
public void setZcId(Long zcId) { this.zcId = zcId; }
public Long getZdId() { return zdId; }
public void setZdId(Long zdId) { this.zdId = zdId; }
public String getCountryCode() { return countryCode; }
public void setCountryCode(String countryCode) { this.countryCode = countryCode; }
public String getZcDividekind() { return zcDividekind; }
public void setZcDividekind(String zcDividekind) { this.zcDividekind = zcDividekind; }
public Date getCreatedAt() { return createdAt; }
public void setCreatedAt(Date createdAt) { this.createdAt = createdAt; }
public Date getUpdatedAt() { return updatedAt; }
public void setUpdatedAt(Date updatedAt) { this.updatedAt = updatedAt; }
@Override
public String toString()
{
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("zcId", getZcId())
.append("zdId", getZdId())
.append("countryCode", getCountryCode())
.append("zcDividekind", getZcDividekind())
.append("createdAt", getCreatedAt())
.append("updatedAt", getUpdatedAt())
.toString();
}
}
@@ -0,0 +1,78 @@
package com.ruoyi.price.domain;
import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 分区区划 xtd_zone_division
*
* @author ruoyi
*/
public class XtdZoneDivision implements Serializable
{
private static final long serialVersionUID = 1L;
/** 区划ID */
private Long zdId;
/** 分区方案ID */
private Long zsId;
/** 排序 */
private Integer zdSort;
/** 区划代码 */
private String zdCode;
/** 区划名称 */
private String znName;
/** 区划英文名 */
private String znEname;
/** 备注 */
private String znNote;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createdAt;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updatedAt;
/** 国家数量(列表展示,非表字段) */
private Integer countryCount;
public Long getZdId() { return zdId; }
public void setZdId(Long zdId) { this.zdId = zdId; }
public Long getZsId() { return zsId; }
public void setZsId(Long zsId) { this.zsId = zsId; }
public Integer getZdSort() { return zdSort; }
public void setZdSort(Integer zdSort) { this.zdSort = zdSort; }
public String getZdCode() { return zdCode; }
public void setZdCode(String zdCode) { this.zdCode = zdCode; }
public String getZnName() { return znName; }
public void setZnName(String znName) { this.znName = znName; }
public String getZnEname() { return znEname; }
public void setZnEname(String znEname) { this.znEname = znEname; }
public String getZnNote() { return znNote; }
public void setZnNote(String znNote) { this.znNote = znNote; }
public Date getCreatedAt() { return createdAt; }
public void setCreatedAt(Date createdAt) { this.createdAt = createdAt; }
public Date getUpdatedAt() { return updatedAt; }
public void setUpdatedAt(Date updatedAt) { this.updatedAt = updatedAt; }
public Integer getCountryCount() { return countryCount; }
public void setCountryCount(Integer countryCount) { this.countryCount = countryCount; }
@Override
public String toString()
{
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("zdId", getZdId())
.append("zsId", getZsId())
.append("zdSort", getZdSort())
.append("zdCode", getZdCode())
.append("znName", getZnName())
.append("znEname", getZnEname())
.append("znNote", getZnNote())
.append("createdAt", getCreatedAt())
.append("updatedAt", getUpdatedAt())
.append("countryCount", getCountryCount())
.toString();
}
}
@@ -0,0 +1,75 @@
package com.ruoyi.price.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 分区方案 xtd_zone_scheme
*
* @author ruoyi
*/
public class XtdZoneScheme extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 分区方案ID */
private Long zsId;
/** 方案名称 */
private String zsName;
/** 状态码(on/off) */
private String ssCode;
/** 产品组代码 */
private String pgCode;
/** 服务渠道ID */
private Long snId;
/** 备注 */
private String zsNote;
/** 租户ID */
private Long tmsId;
/** 区划数量(列表展示,非表字段) */
private Integer divisionCount;
public Long getZsId() { return zsId; }
public void setZsId(Long zsId) { this.zsId = zsId; }
public String getZsName() { return zsName; }
public void setZsName(String zsName) { this.zsName = zsName; }
public String getSsCode() { return ssCode; }
public void setSsCode(String ssCode) { this.ssCode = ssCode; }
public String getPgCode() { return pgCode; }
public void setPgCode(String pgCode) { this.pgCode = pgCode; }
public Long getSnId() { return snId; }
public void setSnId(Long snId) { this.snId = snId; }
public String getZsNote() { return zsNote; }
public void setZsNote(String zsNote) { this.zsNote = zsNote; }
public Long getTmsId() { return tmsId; }
public void setTmsId(Long tmsId) { this.tmsId = tmsId; }
public Integer getDivisionCount() { return divisionCount; }
public void setDivisionCount(Integer divisionCount) { this.divisionCount = divisionCount; }
@Override
public String toString()
{
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("zsId", getZsId())
.append("zsName", getZsName())
.append("ssCode", getSsCode())
.append("pgCode", getPgCode())
.append("snId", getSnId())
.append("zsNote", getZsNote())
.append("tmsId", getTmsId())
.append("divisionCount", getDivisionCount())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}