Commit 662bbc7d by 周晓航

校验修改

parent 060095e8
...@@ -11,6 +11,7 @@ import com.alibaba.fastjson.JSON; ...@@ -11,6 +11,7 @@ import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.BoundHashOperations; import org.springframework.data.redis.core.BoundHashOperations;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
...@@ -38,7 +39,7 @@ public class OrderReportJobHandler { ...@@ -38,7 +39,7 @@ public class OrderReportJobHandler {
BoundHashOperations<String, String, Set<String>> boundHashOperations = redisCache.getRedisTemplate().boundHashOps(RedisKeyConstant.KGD_NO_ORDER_STORE_DATE + date); BoundHashOperations<String, String, Set<String>> boundHashOperations = redisCache.getRedisTemplate().boundHashOps(RedisKeyConstant.KGD_NO_ORDER_STORE_DATE + date);
Map<String, Set<String>> entries = boundHashOperations.entries(); Map<String, Set<String>> entries = boundHashOperations.entries();
LogUtil.info("下单门店记录推送 entries", entries, null); LogUtil.info("下单门店记录推送 entries", entries, null);
if (entries != null && !entries.isEmpty()) { if (!CollectionUtils.isEmpty(entries)) {
// 推送门店 服务 // 推送门店 服务
List<ReportStoreIdsRequestVo> requestDto = new ArrayList<>(entries.size()); List<ReportStoreIdsRequestVo> requestDto = new ArrayList<>(entries.size());
entries.forEach((partnerId, storeIds) -> { entries.forEach((partnerId, storeIds) -> {
......
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