You've already forked FrameTour-BE
feat(pricing): 集成定价服务并优化价格查询逻辑- 在 OrderBiz 中添加 IPriceCalculationService 依赖,用于计算价格
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
- 重构 queryPrice 方法,使用定价服务计算价格而不是直接从数据库读取 - 移除 PriceObj 中未使用的 scenicAllPrice 字段 - 删除 ScenicEntity 和 ScenicAddOrUpdateReq 中的冗余价格字段 -优化 ProductConfigServiceImpl 中的 getTierConfig 方法,增加参数校验
This commit is contained in:
@@ -12,6 +12,5 @@ public class PriceObj {
|
||||
private Long goodsId;
|
||||
private Long faceId;
|
||||
private BigDecimal price = BigDecimal.ZERO;
|
||||
private BigDecimal scenicAllPrice;
|
||||
private BigDecimal slashPrice;
|
||||
}
|
||||
|
@@ -61,7 +61,4 @@ public class ScenicEntity {
|
||||
* 景区源素材价格,元
|
||||
*/
|
||||
private String kfCodeUrl;
|
||||
private BigDecimal price;
|
||||
private BigDecimal sourceVideoPrice;
|
||||
private BigDecimal sourceImagePrice;
|
||||
}
|
||||
|
@@ -77,10 +77,6 @@ public class ScenicAddOrUpdateReq {
|
||||
private Date createTime;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date updateTime;
|
||||
// 景区源素材价格,元
|
||||
private BigDecimal price;
|
||||
private BigDecimal sourceVideoPrice;
|
||||
private BigDecimal sourceImagePrice;
|
||||
|
||||
// 账号
|
||||
private String account;
|
||||
|
Reference in New Issue
Block a user