|
@@ -65,8 +65,8 @@ public class CommunitySyncServiceImpl implements CommunitySyncService {
|
|
|
// 3,根据推送数据时间进行数据查询
|
|
|
List<Integer> cIds = customerMapper.getSubId(customerId);
|
|
|
String pushCustomers = StringUtils.join(cIds, ",");
|
|
|
- log.info("begin query push community list , beginDate={}, endDate={}",
|
|
|
- beginDate, endDate);
|
|
|
+ log.info("begin query push community list pushCustomers={}, beginDate={}, endDate={}",
|
|
|
+ pushCustomers, beginDate, endDate);
|
|
|
List<CommunityData> dataList = communityMapper.getPushCommunityList(pushCustomers,
|
|
|
status,
|
|
|
beginDate,
|
|
@@ -74,7 +74,7 @@ public class CommunitySyncServiceImpl implements CommunitySyncService {
|
|
|
|
|
|
log.info("end query push community list , size = {}",dataList.size());
|
|
|
if(dataList.size() != 0) {
|
|
|
- sendRabbitData(dataList);
|
|
|
+
|
|
|
// 4,定义push日志
|
|
|
PushLog pushLog = new PushLog();
|
|
|
pushLog.setDataSize(dataList.size());
|
|
@@ -83,6 +83,8 @@ public class CommunitySyncServiceImpl implements CommunitySyncService {
|
|
|
pushLog.setPushTime(endDate);
|
|
|
pushLog.setPushContent(4);
|
|
|
pushLogMapper.insertSelective(pushLog);
|
|
|
+
|
|
|
+ sendRabbitData(dataList);
|
|
|
}
|
|
|
|
|
|
}
|