leo.li
2024-09-09 9b7983b8aff2428691cf4bdfef0e0e13cb27e949
update
1 files modified
10 ■■■■■ changed files
src/main/java/com/jw/ai/service/impl/TaskServiceImpl.java 10 ●●●●● patch | view | raw | blame | history
src/main/java/com/jw/ai/service/impl/TaskServiceImpl.java
@@ -195,9 +195,17 @@
                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);
            }