1.修改主播入库时间类型为 LocalDateTime
This commit is contained in:
4
pom.xml
4
pom.xml
@@ -12,8 +12,8 @@
|
||||
<relativePath/> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
<groupId>com.yupi</groupId>
|
||||
<artifactId>springboot-init</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<artifactId>tkDataSave</artifactId>
|
||||
<version>1.0</version>
|
||||
<name>tk-dataSave</name>
|
||||
<properties>
|
||||
<java.version>17</java.version>
|
||||
|
||||
@@ -6,6 +6,7 @@ import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
/*
|
||||
@@ -104,7 +105,7 @@ public class NewHosts {
|
||||
/**
|
||||
* 数据插入时间
|
||||
*/
|
||||
private Date createTime;
|
||||
private LocalDateTime createTime;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ public class HostInfoServiceImpl extends ServiceImpl<NewHostsMapper, NewHosts> i
|
||||
@Override
|
||||
public void queryCount(QueryCountDTO queryCountDTO) {
|
||||
|
||||
redisTemplate.opsForValue().increment("tkaccount:" + queryCountDTO.getTkAccount(),1);
|
||||
redisTemplate.opsForValue().increment( "tkaccount:" + queryCountDTO.getTkAccount(),1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ spring:
|
||||
# Redis 配置
|
||||
# todo 需替换配置
|
||||
redis:
|
||||
database: 0
|
||||
database: 1
|
||||
host: localhost
|
||||
port: 6379
|
||||
timeout: 5000
|
||||
|
||||
@@ -14,7 +14,7 @@ spring:
|
||||
# Redis 配置
|
||||
# todo 需替换配置
|
||||
redis:
|
||||
database: 0
|
||||
database: 1
|
||||
host: localhost
|
||||
port: 16379
|
||||
timeout: 5000
|
||||
|
||||
Reference in New Issue
Block a user