1.修改大哥数据入库方法名
2.增加大哥数据入库时总金币判断 3.修改生产环境配置
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -16,7 +16,7 @@
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>tk-dataSave</name>
|
||||
<properties>
|
||||
<java.version>11</java.version>
|
||||
<java.version>17</java.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
||||
@@ -27,7 +27,7 @@ public class BigBrotherController {
|
||||
|
||||
|
||||
@PostMapping("add_brother")
|
||||
public BaseResponse<Boolean> addHost(@RequestBody ServerBigBrother bigBrothers){
|
||||
public BaseResponse<Boolean> addBigBrother(@RequestBody ServerBigBrother bigBrothers){
|
||||
mqSender.bigBrotherSend(bigBrothers);
|
||||
return ResultUtils.success(true);
|
||||
}
|
||||
|
||||
@@ -38,6 +38,9 @@ public class ServerBigBrotherServiceImpl extends ServiceImpl<ServerBigBrotherMap
|
||||
log.info("当前存储花费: {}ms",totalTimeMillis);
|
||||
} else {
|
||||
bigBrother.setId(serverBigBrother.getId());
|
||||
if (serverBigBrother.getTotalGiftCoins() == null || serverBigBrother.getTotalGiftCoins() <= 0) {
|
||||
serverBigBrother.setTotalGiftCoins(0);
|
||||
}
|
||||
bigBrother.setTotalGiftCoins(bigBrother.getHistoricHighCoins()+serverBigBrother.getTotalGiftCoins());
|
||||
updateById(bigBrother);
|
||||
stopWatch.stop();
|
||||
|
||||
@@ -8,7 +8,7 @@ spring:
|
||||
# todo 需替换配置
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://120.26.251.180:3326/new_tkdata?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true
|
||||
url: jdbc:mysql://localhost:3326/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true
|
||||
username: root
|
||||
password: wfn53400
|
||||
# Redis 配置
|
||||
@@ -16,14 +16,14 @@ spring:
|
||||
redis:
|
||||
database: 0
|
||||
host: localhost
|
||||
port: 6379
|
||||
port: 16379
|
||||
timeout: 5000
|
||||
password: Ofl1xafvbJFtQFo
|
||||
password: ezyPM2UQkPO8O6i8s9
|
||||
rabbitmq:
|
||||
host: localhost
|
||||
port: 5672
|
||||
username: root
|
||||
password: kB;V=wOH0iD#s3cW1)
|
||||
username: tkdata
|
||||
password: 6rARaRj8Z7UG3ahLzh
|
||||
listener:
|
||||
simple:
|
||||
acknowledge-mode: manual
|
||||
|
||||
@@ -73,7 +73,7 @@ mybatis-plus:
|
||||
|
||||
# 接口文档配置
|
||||
knife4j:
|
||||
enable: true
|
||||
enable: false
|
||||
openapi:
|
||||
title: "接口文档"
|
||||
version: 1.0
|
||||
|
||||
Reference in New Issue
Block a user