Commit 706105fb by 崔彦峰

feat(car-condition): 更新价格趋势计算逻辑并添加年月字段

- 修改价格趋势算法使用最高保留价替代指导价进行计算
- 在PriceTrendDTO中新增yearMonth字段用于显示年月信息
- 使用当前日期动态计算未来12个月的价格趋势
- 集成DateUtil工具类处理日期格式化和月份偏移
- 为价格趋势数据同时设置月份和年月标识
- 优化价格计算精度处理和万位转换逻辑
2 parents 6272e4dd fdb01bae
......@@ -22,6 +22,9 @@ public class PriceTrendDTO implements Serializable {
@Schema(description = "月份")
private Integer month;
@Schema(description = "年月 (如 2024-03)")
private String yearMonth;
@Schema(description = "对应价格(单位:元)")
private BigDecimal price;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!