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

修改时间范围查询

修改线上数据源配置
parent 1293ad6e
......@@ -217,7 +217,7 @@
<build>
<finalName>draw-run</finalName>
<finalName>draw-nongfu</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
......
......@@ -80,9 +80,8 @@ public class DrawManagerImpl implements IDrawManager {
} catch (Exception e) {
log.error("保存用户信息出错:{}", e.getMessage());
}
LocalDateTime nowTime = LocalDateTime.now();
LocalDateTime start = LocalDateTimeUtil.beginOfDay(nowTime);
LocalDateTime start = nowTime.minusDays(3);
LocalDateTime end = LocalDateTimeUtil.endOfDay(nowTime);
Integer maxDrawCountLimit = businessConfig.getDrawMaxCount();
Integer alreadyDrawCount = accountPrizeService.gainAlreadyDrawCount(request.getPhone(), start, end);
......
......@@ -11,7 +11,7 @@ spring:
strict: true
datasource:
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
password: sACSFEgGEYcWXNDeyr74
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