修改基础价格版本功能
This commit is contained in:
@@ -15,6 +15,10 @@ public class BmsProductCountry implements Serializable
|
||||
private Long detailId;
|
||||
/** FK to bms_product.product_id (one country version belongs to one product row) */
|
||||
private Long productId;
|
||||
/** FK to bms_product_price_version.ppv_id */
|
||||
private Long ppvId;
|
||||
/** Display only: joined from bms_product_price_version.version_no */
|
||||
private String versionNo;
|
||||
private String productCode;
|
||||
private String countryName;
|
||||
private String countryCode;
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.bms.price.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.bms.common.core.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/** Product base price version bms_product_price_version */
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class BmsProductPriceVersion extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Long ppvId;
|
||||
private String productCode;
|
||||
/** Linked bms_product.product_id for this version row */
|
||||
private Long productId;
|
||||
/** V1 / V2 */
|
||||
private String versionNo;
|
||||
private Integer versionSeq;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date effectiveDate;
|
||||
/** null = open; set to next version effective_date when that version starts */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date expireDate;
|
||||
/** 0 pending / 1 active / 2 expired */
|
||||
private String status;
|
||||
/** query only: product count for this effective_date option */
|
||||
private Integer productCount;
|
||||
}
|
||||
@@ -24,6 +24,11 @@ public class PrcPriceSet extends BaseEntity
|
||||
private BigDecimal defaultDiscount;
|
||||
private String defaultType;
|
||||
private String calculateSign;
|
||||
/**
|
||||
* Pull-only: product base price version_no (V1/V2 from bms_product_price_version).
|
||||
* Not a DB column — used when pullFromLibrary=Y to choose library rows.
|
||||
*/
|
||||
private String baseVersionNo;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date effectiveDate;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
|
||||
Reference in New Issue
Block a user