|
|
|
@ -8,6 +8,7 @@ import cn.hutool.core.text.StrPool;
|
|
|
|
|
import cn.hutool.core.text.csv.*;
|
|
|
|
|
import cn.hutool.core.util.CharsetUtil;
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
|
import com.baiye.common.CommonLog;
|
|
|
|
|
import com.baiye.config.properties.DeliveryProperties;
|
|
|
|
|
import com.baiye.constant.AdPlatFormConstants;
|
|
|
|
|
import com.baiye.constant.DefaultNumberConstants;
|
|
|
|
@ -126,14 +127,15 @@ public class MailSourceTask {
|
|
|
|
|
if (CollUtil.isNotEmpty(decryptList)) {
|
|
|
|
|
log.info("=================== the decryptList size as {} =====================", decryptList.size());
|
|
|
|
|
if (byTaskName.getType() == DefaultNumberConstants.ONE_NUMBER) {
|
|
|
|
|
CommonLog.info("接收邮件,当前tag值为".concat(tagList.get(DefaultNumberConstants.ZERO_NUMBER)));
|
|
|
|
|
saveClue(taskName, byTaskName, task, taskId, tagList, decryptList, path, unzipPath);
|
|
|
|
|
}
|
|
|
|
|
if (byTaskName.getType() == DefaultNumberConstants.THREE_NUMBER) {
|
|
|
|
|
sendRequest(taskName, tagList, decryptList, path, unzipPath);
|
|
|
|
|
}
|
|
|
|
|
if (byTaskName.getType() == DefaultNumberConstants.TWO_NUMBER) {
|
|
|
|
|
downResource(taskName, byTaskName, decryptList, path, data.getRows(), parseFile);
|
|
|
|
|
}
|
|
|
|
|
if (byTaskName.getType() == DefaultNumberConstants.THREE_NUMBER) {
|
|
|
|
|
sendRequest(taskName, tagList, decryptList, path, unzipPath);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -172,7 +174,7 @@ public class MailSourceTask {
|
|
|
|
|
Integer saveNumer = clueService.saveClue
|
|
|
|
|
(tagList, isNotblackList,
|
|
|
|
|
byTaskName.getTaskId(),
|
|
|
|
|
byTaskName.getUserId(), DefaultNumberConstants.FOUR_NUMBER);
|
|
|
|
|
byTaskName.getUserId(), DefaultNumberConstants.FOUR_NUMBER);
|
|
|
|
|
// 修改任务总条数
|
|
|
|
|
Integer taskNum = clueTalkRepository.findTaskNum(taskId);
|
|
|
|
|
task.setId(taskId);
|
|
|
|
|