记得上下班打卡 | git大法好,push需谨慎

Commit 50bcddfb authored by GaoHu's avatar GaoHu

bug:时间区间修改

parent a4bde0d5
...@@ -35,6 +35,7 @@ import org.springframework.util.CollectionUtils; ...@@ -35,6 +35,7 @@ import org.springframework.util.CollectionUtils;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.*; import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -647,12 +648,13 @@ public class DataUtils { ...@@ -647,12 +648,13 @@ public class DataUtils {
List<String> threeDayIds = threeDaysList.stream().map(KylinPerformanceVo::getPerformancesId).collect(Collectors.toList()); List<String> threeDayIds = threeDaysList.stream().map(KylinPerformanceVo::getPerformancesId).collect(Collectors.toList());
//数字藏品 //数字藏品
LocalDateTime nowTimeTime = null;
List<String> toDayNftIds = null; List<String> toDayNftIds = null;
List<String> threeNftIds = null; List<String> threeNftIds = null;
try { try {
nowTimeTime = DateUtil.asLocalDateTime((Date) toDayTime.get("start")); DateTimeFormatter df = DateTimeFormatter.ofPattern(DateUtil.DATE_FULL_STR);
LocalDateTime toDayEndTime = DateUtil.asLocalDateTime((Date) toDayTime.get("end")); LocalDateTime nowTime = LocalDateTime.parse(nowTimeTStr, df);
LocalDateTime endTime = LocalDateTime.parse(toDayEndTimeStr,df);
LocalDateTime threeEndTime = DateUtil.asLocalDateTime(beforeDayEnd); LocalDateTime threeEndTime = DateUtil.asLocalDateTime(beforeDayEnd);
//查询预约(当天) //查询预约(当天)
// List<GoblinGoodsSkuInfoVo> toDayAboutNft = getAboutNftByStartAndEndTime(nowTimeTime, toDayEndTime,0); // List<GoblinGoodsSkuInfoVo> toDayAboutNft = getAboutNftByStartAndEndTime(nowTimeTime, toDayEndTime,0);
...@@ -673,7 +675,7 @@ public class DataUtils { ...@@ -673,7 +675,7 @@ public class DataUtils {
queryToDayNft.addCriteria(Criteria.where("delFlg").is("0")); queryToDayNft.addCriteria(Criteria.where("delFlg").is("0"));
queryToDayNft.addCriteria(Criteria.where("soldoutStatus").is("0")); queryToDayNft.addCriteria(Criteria.where("soldoutStatus").is("0"));
queryToDayNft.addCriteria(Criteria.where("skuAppear").is("0")); queryToDayNft.addCriteria(Criteria.where("skuAppear").is("0"));
queryToDayNft.addCriteria(Criteria.where("saleStartTime").gte(nowTimeTime).lt(toDayEndTime)); queryToDayNft.addCriteria(Criteria.where("saleStartTime").gte(nowTime).lt(endTime));
// queryToDayNft.addCriteria(Criteria.where("skuId").nin(toDayAboutNftSkuIds)); // queryToDayNft.addCriteria(Criteria.where("skuId").nin(toDayAboutNftSkuIds));
/* queryToDayNft.addCriteria(Criteria.where("skuId").nin(allListSkuIds));*/ /* queryToDayNft.addCriteria(Criteria.where("skuId").nin(allListSkuIds));*/
queryToDayNft.addCriteria(Criteria.where("shelvesHandle").ne("3")); queryToDayNft.addCriteria(Criteria.where("shelvesHandle").ne("3"));
...@@ -690,7 +692,7 @@ public class DataUtils { ...@@ -690,7 +692,7 @@ public class DataUtils {
queryThreeNft.addCriteria(Criteria.where("delFlg").is("0")); queryThreeNft.addCriteria(Criteria.where("delFlg").is("0"));
queryThreeNft.addCriteria(Criteria.where("soldoutStatus").is("0")); queryThreeNft.addCriteria(Criteria.where("soldoutStatus").is("0"));
queryThreeNft.addCriteria(Criteria.where("skuAppear").is("0")); queryThreeNft.addCriteria(Criteria.where("skuAppear").is("0"));
queryThreeNft.addCriteria(Criteria.where("saleStartTime").gte(toDayEndTime).lt(threeEndTime)); queryThreeNft.addCriteria(Criteria.where("saleStartTime").gte(endTime).lt(threeEndTime));
/*queryThreeNft.addCriteria(Criteria.where("skuId").nin(allListSkuIds));*/ /*queryThreeNft.addCriteria(Criteria.where("skuId").nin(allListSkuIds));*/
queryThreeNft.addCriteria(Criteria.where("shelvesHandle").ne("3")); queryThreeNft.addCriteria(Criteria.where("shelvesHandle").ne("3"));
Sort sortThreeNft = Sort.by(Sort.Direction.ASC, "saleStartTime"); Sort sortThreeNft = Sort.by(Sort.Direction.ASC, "saleStartTime");
...@@ -736,7 +738,6 @@ public class DataUtils { ...@@ -736,7 +738,6 @@ public class DataUtils {
idsList.put("threeNftIds", threeNftIds); idsList.put("threeNftIds", threeNftIds);
idsList.put("toDayCombinationIds", toDayCombinationIds); idsList.put("toDayCombinationIds", toDayCombinationIds);
idsList.put("threeDayCombinationIds", threeDayCombinationIds); idsList.put("threeDayCombinationIds", threeDayCombinationIds);
idsList.put("now", nowTimeTime);
setRedisNoticeIsd(idsList); setRedisNoticeIsd(idsList);
return idsList; return idsList;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment