| | |
| | | taskLog.setUpdateTime(new Date()); |
| | | taskLog.setJobid(task.getJobUniqueNo()); |
| | | taskLog.setTenantId(task.getTenantId()); |
| | | if (task.getPyScript().contains(Constant.search_prefix)) { |
| | | taskLog.setTaskType(1); |
| | | } else if (task.getPyScript().contains(Constant.comment_prefix)) { |
| | | taskLog.setTaskType(2); |
| | | } else if (task.getPyScript().contains(Constant.profile_prefix)) { |
| | | taskLog.setTaskType(3); |
| | | } |
| | | taskLog.setTaskStatus(1); |
| | | taskLog.setUuid(uuid); |
| | | if (StringUtils.isNotBlank(secId)) { |
| | | taskLog.setSecId(secId); |
| | | taskLog.setSecId(secId); |
| | | } |
| | | taskLogService.save(taskLog); |
| | | } |