Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
Z
zion
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
zion
Commits
81e4aa4c
提交
81e4aa4c
authored
11月 23, 2019
作者:
luojie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改注册赠送的优惠券为30天有效期
上级
7d8251b2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
10 行删除
+8
-10
TbCfUserInfoServiceImpl.java
...zion/chinafrica/service/impl/TbCfUserInfoServiceImpl.java
+2
-4
TbCfCouponDao.xml
src/main/resources/mapper/TbCfCouponDao.xml
+6
-6
没有找到文件。
src/main/java/com/diaoyun/zion/chinafrica/service/impl/TbCfUserInfoServiceImpl.java
浏览文件 @
81e4aa4c
...
...
@@ -9,8 +9,6 @@ import com.diaoyun.zion.chinafrica.entity.TbCfCouponEntity;
import
com.diaoyun.zion.chinafrica.entity.TbCfToicouponEntity
;
import
com.diaoyun.zion.chinafrica.entity.TbCfUserInfoEntity
;
import
com.diaoyun.zion.chinafrica.service.TbCfCouponService
;
import
com.diaoyun.zion.chinafrica.service.TbCfIssueCouponService
;
import
com.diaoyun.zion.chinafrica.service.TbCfToiCouponService
;
import
com.diaoyun.zion.chinafrica.service.TbCfUserInfoService
;
import
com.diaoyun.zion.chinafrica.vo.TbCfUserInfoVo
;
import
com.diaoyun.zion.chinafrica.vo.TbCfUserVo
;
...
...
@@ -182,7 +180,7 @@ public class TbCfUserInfoServiceImpl implements TbCfUserInfoService {
//获取当前时间的时分秒
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd 00:00:00"
);
//设置日期格式
Calendar
c
=
Calendar
.
getInstance
();
c
.
add
(
Calendar
.
DATE
,
+
7
);
c
.
add
(
Calendar
.
DATE
,
+
30
);
Date
time
=
c
.
getTime
();
Date
startDate
=
sdf
.
parse
(
sdf
.
format
(
new
Date
()));
Date
endDate
=
sdf
.
parse
(
sdf
.
format
(
time
));
...
...
@@ -257,7 +255,7 @@ public class TbCfUserInfoServiceImpl implements TbCfUserInfoService {
List
<
TbCfCouponEntity
>
couponVailList
=
tbCfCouponService
.
getCouponAndVaildAll
();
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd 00:00:00"
);
//设置日期格式
Calendar
c
=
Calendar
.
getInstance
();
c
.
add
(
Calendar
.
DATE
,
+
7
);
c
.
add
(
Calendar
.
DATE
,
+
30
);
Date
time
=
c
.
getTime
();
Date
startDate
=
sdf
.
parse
(
sdf
.
format
(
new
Date
()));
Date
endDate
=
sdf
.
parse
(
sdf
.
format
(
time
));
...
...
src/main/resources/mapper/TbCfCouponDao.xml
浏览文件 @
81e4aa4c
...
...
@@ -279,8 +279,8 @@
t2.used_count,
t2.start_time,
t2.end_time,
t
2.valid_start_time
,
t
2.
valid_end_time,
t
3.start_time valid_start_time
,
t
3.end_time
valid_end_time,
t2.status,
t2.create_user_id,
t2.create_time,
...
...
@@ -315,8 +315,8 @@
t2.used_count,
t2.start_time,
t2.end_time,
t
2.valid_start_time
,
t
2.
valid_end_time,
t
3.start_time valid_start_time
,
t
3.end_time
valid_end_time,
t2.status,
t2.create_user_id,
t2.create_time,
...
...
@@ -344,8 +344,8 @@
t2.used_count,
t2.start_time,
t2.end_time,
t2.valid_start_time
,
t
2.
valid_end_time,
t3.start_time valid_start_time
,
t
3.end_time
valid_end_time,
t2.status,
t2.create_user_id,
t2.create_time,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论