src/main/java/com/linghu/model/dto/ExportStaticsDTO.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/linghu/model/entity/KeywordTask.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/linghu/model/entity/QuestionResultList.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/linghu/model/entity/User.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/linghu/model/vo/GetTimeVO.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/linghu/service/impl/CollectionServiceImpl.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/linghu/utils/OpenCryptUtil.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/linghu/model/dto/ExportStaticsDTO.java
@@ -13,7 +13,6 @@ @NotNull(message = "关键词id不能为空") private Integer keywordId; @ApiModelProperty("提问词id") @NotNull(message = "提问词id不能为空") private Integer questionId; @ApiModelProperty("是否首次 0-否 1- 是") @Max(value = 1 , message = "是否首次选择范围为0-1") src/main/java/com/linghu/model/entity/KeywordTask.java
@@ -5,8 +5,10 @@ import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.time.LocalDateTime; import java.util.Date; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; /** @@ -34,7 +36,8 @@ private String status; private Integer num; private String error; private Date create_time; @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private LocalDateTime create_time; @TableField(exist = false) private static final long serialVersionUID = 1L; src/main/java/com/linghu/model/entity/QuestionResultList.java
@@ -7,6 +7,8 @@ import java.io.Serializable; import java.time.LocalDateTime; import java.util.Date; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; /** @@ -70,6 +72,7 @@ /** * 记录创建时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date create_time; private Integer keyword_id; src/main/java/com/linghu/model/entity/User.java
@@ -64,7 +64,7 @@ * 创建时间 */ @ApiModelProperty(hidden = true) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private LocalDateTime create_time; /** src/main/java/com/linghu/model/vo/GetTimeVO.java
@@ -13,10 +13,10 @@ public class GetTimeVO { @ApiModelProperty("本次采集时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date now; @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private LocalDateTime now; @ApiModelProperty("首次采集时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date first; @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private LocalDateTime first; } src/main/java/com/linghu/service/impl/CollectionServiceImpl.java
@@ -396,7 +396,7 @@ KeywordTask keywordTask = new KeywordTask(); keywordTask.setKeyword_id(keywordId); keywordTask.setTask_id(null); // 任务ID为空 keywordTask.setCreate_time(new Date()); keywordTask.setCreate_time( LocalDateTime.now()); keywordTask.setNum(keyword.getNum()); keywordTaskService.save(keywordTask); // 保存 KeywordTask @@ -439,7 +439,7 @@ //更新关键词状态 LambdaUpdateWrapper<Keyword> updateWrapper = new LambdaUpdateWrapper<>(); updateWrapper.eq(Keyword::getKeyword_id, batchRequest.getKeyword_id()); updateWrapper.set(Keyword::getStatus, FinalStatus.COMPLETED.getValue()); updateWrapper.set(Keyword::getStatus, FinalStatus.SUBMITTED.getValue()); updateWrapper.set(Keyword::getTask_id, taskResponse.getTask_id()); keywordService.update(updateWrapper); //设置轮数 src/main/java/com/linghu/utils/OpenCryptUtil.java
@@ -14,9 +14,7 @@ @Component public class OpenCryptUtil { // 加密密钥(从配置文件读取,避免硬编码) // @Value("${app.crypt.secret-key}") // 长度需符合算法要求(如AES-256需32位) // private String secret; // 初始化加密配置(若需要) @PostConstruct