Commit 3e39ba47 by 徐康

麦咖啡推送数据测试

parent 649faea0
...@@ -2527,12 +2527,16 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService { ...@@ -2527,12 +2527,16 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
orderConditionsReq.setPageSize(500); orderConditionsReq.setPageSize(500);
orderConditionsReq.setSortRule(1); orderConditionsReq.setSortRule(1);
BaseDownLoadResponse<List<OrderInfoReqs>> response = orderDownLoadSdkService.queryOrderByConditions(orderConditionsReq, LogThreadLocal.getTrackingNo()); BaseDownLoadResponse<List<OrderInfoReqs>> response = orderDownLoadSdkService.queryOrderByConditions(orderConditionsReq, LogThreadLocal.getTrackingNo());
AppLogUtil.infoLog("queryOrderByConditions:"+ JSON.toJSONString(response),null,null);
if(CollectionUtils.isEmpty(response.getResult())) { if(CollectionUtils.isEmpty(response.getResult())) {
break; break;
} }
for(OrderInfoReqs orderInfoReqs : response.getResult()) { for(OrderInfoReqs orderInfoReqs : response.getResult()) {
try { try {
if(StringUtils.isBlank(orderInfoReqs.getReceiveTime())) {
orderInfoReqs.setReceiveTime(new Date().getTime()+"");
}
McCafePushOrderDto mcCafePushOrderDto = convert2McCafePushOrderInfo(orderInfoReqs); McCafePushOrderDto mcCafePushOrderDto = convert2McCafePushOrderInfo(orderInfoReqs);
System.out.println(JSON.toJSONString(mcCafePushOrderDto)); System.out.println(JSON.toJSONString(mcCafePushOrderDto));
if(null != mcCafePushOrderDto) { if(null != mcCafePushOrderDto) {
......
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