|
@@ -35,6 +35,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
+import java.time.format.DateTimeFormatter;
|
|
|
import java.util.*;
|
|
|
|
|
|
import static java.util.stream.Collectors.groupingBy;
|
|
@@ -48,7 +50,7 @@ import static java.util.stream.Collectors.groupingBy;
|
|
|
@Service
|
|
|
public class ArchiveAiNameServiceImpl extends BaseServiceImpl<ArchiveAiNameMapper, ArchiveAiName> implements IArchiveAiNameService {
|
|
|
|
|
|
- static String DEEPSEEK_ARCHIVE_NAME = ".这是一段案卷题名,精简案卷题名重复啰嗦的内容,不要加以上内容没有的词语";
|
|
|
+ static String DEEPSEEK_ARCHIVE_NAME = ".这是一段案卷题名,精简案卷题名重复啰嗦的内容,不要加以上内容没有的词语 返回值不要有任何多余得废话,只要结果";
|
|
|
|
|
|
@Autowired
|
|
|
private JdbcTemplate jdbcTemplate;
|
|
@@ -78,13 +80,15 @@ public class ArchiveAiNameServiceImpl extends BaseServiceImpl<ArchiveAiNameMappe
|
|
|
ArchiveAiNameVO archiveAiNameVO = new ArchiveAiNameVO();
|
|
|
List<ArchiveAiName> archiveAiNames = entry.getValue();
|
|
|
archiveAiNameVO.setTaskId(entry.getKey());
|
|
|
- archiveAiNameVO.setTaskTime(archiveAiNames.get(0).getCreateTime()+"");
|
|
|
+ Date createTime = archiveAiNames.get(0).getCreateTime();
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
+ String formattedDate = sdf.format(createTime);
|
|
|
+ archiveAiNameVO.setTaskTime(formattedDate);
|
|
|
archiveAiNameVO.setNum(archiveAiNames.size());
|
|
|
archiveAiNameVO.setStatus(archiveAiNames.stream().allMatch(ai -> ai.getStatus() == 2) ? 2 : 1);
|
|
|
list.add(archiveAiNameVO);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return list;
|
|
|
}
|
|
|
|
|
@@ -104,4 +108,9 @@ public class ArchiveAiNameServiceImpl extends BaseServiceImpl<ArchiveAiNameMappe
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Boolean deletedArchiveAiTask(Long taskId) {
|
|
|
+ return baseMapper.deletedArchiveAiTask(taskId);
|
|
|
+ }
|
|
|
}
|