Commit a949ac34 authored by 邓吉芬's avatar 邓吉芬

修改时间范围查询

修改线上数据源配置
parent 1293ad6e
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
<build> <build>
<finalName>draw-run</finalName> <finalName>draw-nongfu</finalName>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
......
...@@ -80,9 +80,8 @@ public class DrawManagerImpl implements IDrawManager { ...@@ -80,9 +80,8 @@ public class DrawManagerImpl implements IDrawManager {
} catch (Exception e) { } catch (Exception e) {
log.error("保存用户信息出错:{}", e.getMessage()); log.error("保存用户信息出错:{}", e.getMessage());
} }
LocalDateTime nowTime = LocalDateTime.now(); LocalDateTime nowTime = LocalDateTime.now();
LocalDateTime start = LocalDateTimeUtil.beginOfDay(nowTime); LocalDateTime start = nowTime.minusDays(3);
LocalDateTime end = LocalDateTimeUtil.endOfDay(nowTime); LocalDateTime end = LocalDateTimeUtil.endOfDay(nowTime);
Integer maxDrawCountLimit = businessConfig.getDrawMaxCount(); Integer maxDrawCountLimit = businessConfig.getDrawMaxCount();
Integer alreadyDrawCount = accountPrizeService.gainAlreadyDrawCount(request.getPhone(), start, end); Integer alreadyDrawCount = accountPrizeService.gainAlreadyDrawCount(request.getPhone(), start, end);
......
...@@ -11,7 +11,7 @@ spring: ...@@ -11,7 +11,7 @@ spring:
strict: true strict: true
datasource: datasource:
db1: db1:
url: jdbc:mysql://rm-bp15h28bq72fbw407.mysql.rds.aliyuncs.com:3306/drawxili?characterEncoding=UTF-8&useSSL=true&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2B8&rewriteBatchedStatements=true url: jdbc:mysql://rm-bp15h28bq72fbw407.mysql.rds.aliyuncs.com:3306/drawnongfu?characterEncoding=UTF-8&useSSL=true&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2B8&rewriteBatchedStatements=true
username: draw username: draw
password: sACSFEgGEYcWXNDeyr74 password: sACSFEgGEYcWXNDeyr74
driver-class-name: com.mysql.jdbc.Driver driver-class-name: com.mysql.jdbc.Driver
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment