提交 69afed81 authored 作者: 000516's avatar 000516 提交者: Coding

日销数据-日期判断错误

Merge Request: 日销数据-日期判断错误 Created By: @李秋林 Accepted By: @李秋林 URL: https://g-pkkp8204.coding.net/p/wangxiaolu-sfa/d/wangxiaolu-link-module-bi/git/merge/64?initial=true
......@@ -45,7 +45,7 @@ public class MarketSummaryVo {
this.date = DateUtil.offsetDay(DateUtils.dateStart(new Date()), -1);
if (dateStart == null || dateEnd == null) {
int i = DateUtil.dayOfMonth(date);
this.dateStart = DateUtil.offsetDay(date, i-1);
this.dateStart = DateUtil.offsetDay(date, 1-i);
this.dateEnd = date;
}
}
......
......@@ -47,7 +47,7 @@ public class SummaryMarketDailyDetailImpl implements ISummaryMarketDailyDetailSe
Map<String, String> tMap = redisService.getCacheMap(RedisKeyBi.MARKET_PLATFORM_TARGETED);
for (MarketSummaryDto mDto : marketSummaryDtos) {
mDto.setTargetSaleSum(onlyPlatform ? new BigDecimal(tMap.get(String.valueOf(mDto.getPlatformId()))) : BigDecimal.ZERO);
tMap.remove(mDto.getPlatformId());
tMap.remove(String.valueOf(mDto.getPlatformId()));
}
for (Map.Entry<String, String> entry : tMap.entrySet()) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论