fix: 修复环比数据异常的问题

This commit is contained in:
han0
2024-11-25 15:28:12 +08:00
parent dba48dfcff
commit 0704c144d1

View File

@@ -80,7 +80,7 @@ public class PublicController {
queryYoy.isNotNull(PricePublish::getMaterialId); // 材料编号禁止为空 queryYoy.isNotNull(PricePublish::getMaterialId); // 材料编号禁止为空
var yoyData = pricePublishService.list(queryYoy); var yoyData = pricePublishService.list(queryYoy);
var momDate = LocalDate.of(year, month, 1).plusMonths(1); var momDate = LocalDate.of(year, month, 1).minusMonths(1);
var queryMom = pricePublishService.getQuery(momDate.getYear(), momDate.getMonthValue(), null, name, spec, PricePublishType.CURRENT); var queryMom = pricePublishService.getQuery(momDate.getYear(), momDate.getMonthValue(), null, name, spec, PricePublishType.CURRENT);
queryMom.isNotNull(PricePublish::getMaterialId); queryMom.isNotNull(PricePublish::getMaterialId);
var momData = pricePublishService.list(queryMom); var momData = pricePublishService.list(queryMom);