| | |
| | | // 一键获客的日志增加批次号 |
| | | jobExecLog.setSecId(secId); |
| | | } |
| | | jobExecLog.setStartTime(new Date()); |
| | | jobExecLogMapper.insert(jobExecLog); |
| | | |
| | | // 任务执行流水 |
| | |
| | | taskLog.setUpdateTime(new Date()); |
| | | taskLog.setJobid(task.getJobUniqueNo()); |
| | | taskLog.setTenantId(task.getTenantId()); |
| | | taskLog.setUuid(uuid); |
| | | if (StringUtils.isNotBlank(secId)) { |
| | | taskLog.setSecId(secId); |
| | | } |
| | | taskLogService.save(taskLog); |
| | | } |
| | | } |
| | |
| | | |
| | | // 3.更新任务日志数据(只返回100条记录) |
| | | for (Map.Entry<String, List<CommonRes.Finished>> entry : entries) { |
| | | String jobid = entry.getKey(); |
| | | /*String jobid = entry.getKey(); |
| | | List<CommonRes.Finished> finishedList = entry.getValue(); |
| | | List<JobExecLog> jobExecLogs = jobExecLogMapper.selectList(new LambdaQueryWrapper<JobExecLog>() |
| | | .eq(JobExecLog::getName, jobid) |
| | |
| | | log.info("更新。。。。。。"); |
| | | } else { |
| | | //taskLogService.saveBatch(list); |
| | | } |
| | | }*/ |
| | | } |
| | | // 4.如果任务执行完成后待完善粉丝数量 > 0 需要重复执行完善脚本 |
| | | if (!CollectionUtil.isEmpty(demandUserProfile)) { |
| | |
| | | body.put("task_name", selectOne.getName()); |
| | | body.put("tenant_id", selectOne.getTenantId()); |
| | | body.put("sec_id", secId); |
| | | body.put("demand_id", task.getRequireId()); |
| | | body.put("uuid", uuid); |
| | | log.info("execPyJob ==> request url {}", body); |
| | | String s = HttpUtil.post(pythonScriptConfig.getScheduleJob(), body); |