Commit 4aeac41a authored by liucx's avatar liucx

错误日志捕获

parent 550c4a9b
......@@ -45,10 +45,15 @@ public class CommunicationRecordStatisticalLogServiceImpl extends ServiceImpl<Co
CommunicationRecordStatisticalLog distinct = getBaseMapper().selectDistinct(customerCommunicationRecordTask.getCustomerId().longValue(), customerCommunicationRecordTask.getProductId().longValue(), customerCommunicationRecordTask.getProductType());
if (ObjectUtils.isEmpty(distinct)) {
CommunicationRecordStatisticalLog communicationRecordStatisticalLog = new CommunicationRecordStatisticalLog();
communicationRecordStatisticalLog.setCustomerId(customerCommunicationRecordTask.getCustomerId().longValue());
communicationRecordStatisticalLog.setProductType(customerCommunicationRecordTask.getProductType());
communicationRecordStatisticalLog.setProductId(customerCommunicationRecordTask.getProductId().longValue());
distinct.setDayConut(customerCommunicationRecordTask.getCount());
if(!ObjectUtils.isEmpty(customerCommunicationRecordTask.getCustomerId())){
communicationRecordStatisticalLog.setCustomerId(customerCommunicationRecordTask.getCustomerId().longValue());
} if(!ObjectUtils.isEmpty(customerCommunicationRecordTask.getProductType())){
communicationRecordStatisticalLog.setProductType(customerCommunicationRecordTask.getProductType());
} if(!ObjectUtils.isEmpty(customerCommunicationRecordTask.getProductId())){
communicationRecordStatisticalLog.setProductId(customerCommunicationRecordTask.getProductId().longValue());
}if(!ObjectUtils.isEmpty(customerCommunicationRecordTask.getCount())){
distinct.setDayConut(customerCommunicationRecordTask.getCount());
}
saveOrUpdate(communicationRecordStatisticalLog);
} else {
if (type.equals("day")) {
......
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