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