Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
Z
zion
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
zion
Commits
3e87d255
提交
3e87d255
authored
10月 28, 2019
作者:
luojie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
商铺排序
上级
6ccfb3a2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
22 行增加
和
16 行删除
+22
-16
UserCouponVo.java
...ain/java/com/diaoyun/zion/chinafrica/vo/UserCouponVo.java
+1
-2
TbCfCouponDao.xml
src/main/resources/mapper/TbCfCouponDao.xml
+21
-14
没有找到文件。
src/main/java/com/diaoyun/zion/chinafrica/vo/UserCouponVo.java
浏览文件 @
3e87d255
...
@@ -48,7 +48,6 @@ public class UserCouponVo {
...
@@ -48,7 +48,6 @@ public class UserCouponVo {
return
expiredCouponList
;
return
expiredCouponList
;
}
}
public
void
setExpiredCouponList
(
List
<
TbCfCouponEntity
>
expiredCouponList
)
{
public
void
setExpiredCouponList
(
List
<
TbCfCouponEntity
>
expiredCouponList
)
{
this
.
expiredCouponList
=
expiredCouponList
;
this
.
expiredCouponList
=
expiredCouponList
;
}
}
}
}
src/main/resources/mapper/TbCfCouponDao.xml
浏览文件 @
3e87d255
...
@@ -209,10 +209,12 @@
...
@@ -209,10 +209,12 @@
t2.create_time,
t2.create_time,
t2.update_user_id,
t2.update_user_id,
t2.update_time
t2.update_time
from tb_cf_take_coupon t1,tb_cf_coupon t2,tb_cf_issue_coupon t3,tb_cf_coupon_category t4
from tb_cf_coupon t2 left join tb_cf_coupon_category t4 ON t2.coupon_category_id= t4.coupon_category_id
where ((t3.user_id=#{userId} and t3.coupon_id=t2.coupon_id and t2.status=1 and t3.enable_flag=1)
left join tb_cf_take_coupon t1 on t1.coupon_id=t2.coupon_id
or (t1.user_id=#{userId} and t1.coupon_id=t2.coupon_id and t2.status=1 and t1.enable_flag=1))
left join tb_cf_issue_coupon t3 on t3.coupon_id=t2.coupon_id
and
<![CDATA[ t2.valid_start_time<=#{nowTime}]]>
and
<![CDATA[t2.valid_end_time>=#{nowTime}]]>
where ((t1.user_id=#{userId} and t1.enable_flag=1 )
or (t3.user_id=#{userId} and t3.enable_flag=1))
and t2.status=1 and
<![CDATA[ t2.valid_start_time<=#{nowTime}]]>
and
<![CDATA[t2.valid_end_time>=#{nowTime}]]>
</select>
</select>
<!--更改优惠券统计-->
<!--更改优惠券统计-->
...
@@ -244,9 +246,11 @@
...
@@ -244,9 +246,11 @@
t2.create_time,
t2.create_time,
t2.update_user_id,
t2.update_user_id,
t2.update_time
t2.update_time
from tb_cf_take_coupon t1,tb_cf_coupon t2 ,tb_cf_issue_coupon t3,tb_cf_coupon_category t4
from tb_cf_coupon t2 left join tb_cf_coupon_category t4 ON t2.coupon_category_id= t4.coupon_category_id
where ((t1.user_id=#{userId} and t1.coupon_id=t2.coupon_id and t1.enable_flag=0)
left join tb_cf_take_coupon t1 on t1.coupon_id=t2.coupon_id
or (t3.user_id=#{userId} and t3.coupon_id=t2.coupon_id and t3.enable_flag=0))
left join tb_cf_issue_coupon t3 on t3.coupon_id=t2.coupon_id
where (t1.user_id=#{userId} and t1.enable_flag=0)
or (t3.user_id=#{userId} and t3.enable_flag=0)
</select>
</select>
<!--获取已过期的优惠券-->
<!--获取已过期的优惠券-->
<select
id=
"queryUserExpiredoupon"
resultType=
"com.diaoyun.zion.chinafrica.entity.TbCfCouponEntity"
>
<select
id=
"queryUserExpiredoupon"
resultType=
"com.diaoyun.zion.chinafrica.entity.TbCfCouponEntity"
>
...
@@ -271,9 +275,12 @@
...
@@ -271,9 +275,12 @@
t2.create_user_id,
t2.create_user_id,
t2.create_time,
t2.create_time,
t2.update_user_id,
t2.update_user_id,
t2.update_time from tb_cf_take_coupon t1,tb_cf_coupon t2 ,tb_cf_issue_coupon t3,tb_cf_coupon_category t4
t2.update_time
where ((t1.user_id=#{userId} and t1.coupon_id=t2.coupon_id and
<![CDATA[ t2.valid_end_time<#{nowTime}]]>
and t1.enable_flag=1)
from tb_cf_coupon t2 left join tb_cf_coupon_category t4 ON t2.coupon_category_id= t4.coupon_category_id
or (t1.user_id=#{userId} and t1.coupon_id=t2.coupon_id and
<![CDATA[ t2.valid_end_time<#{nowTime}]]>
and t1.enable_flag=1))
left join tb_cf_take_coupon t1 on t1.coupon_id=t2.coupon_id
left join tb_cf_issue_coupon t3 on t3.coupon_id=t2.coupon_id
where ((t1.user_id=#{userId} and
<![CDATA[ t2.valid_end_time<#{nowTime}]]>
and t1.enable_flag=1)
or (t1.user_id=#{userId} and
<![CDATA[ t2.valid_end_time<#{nowTime}]]>
and t1.enable_flag=1))
</select>
</select>
<!--根据优惠券种类获取发放中的优惠券-->
<!--根据优惠券种类获取发放中的优惠券-->
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论