Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
Aidea
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sa_aidea
Aidea
Commits
64133d3e
Commit
64133d3e
authored
Mar 02, 2021
by
fanjr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
8aa3fa45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
18 deletions
+21
-18
CouponrecordMapper.xml
...n/java/com/cftech/couponrecord/dao/CouponrecordMapper.xml
+21
-18
No files found.
aidea-modules/couponrecord-module/src/main/java/com/cftech/couponrecord/dao/CouponrecordMapper.xml
View file @
64133d3e
...
...
@@ -230,14 +230,15 @@
<select
id=
"CheckCouponYSYList"
resultType=
"map"
>
SELECT
id,number,DATE_FORMAT(take_Effect_Date,'%Y-%m-%d') create_time,DATE_FORMAT(expire_Date,'%Y-%m-%d')
invalid_date,status
from t_aidea_coupon_record
where del_flag = 0 and status=2
a.id,a.number,DATE_FORMAT(a.take_Effect_Date,'%Y-%m-%d') create_time,DATE_FORMAT(a.expire_Date,'%Y-%m-%d')
invalid_date,a.status,c.name
from t_aidea_coupon_record a
inner join t_aidea_Check_coupon c on a.coupon_Id = c.id
where a.del_flag = 0 and a.status=2
<if
test=
"openId!=null"
>
and openid = #{openId}
and
a.
openid = #{openId}
</if>
ORDER BY create_time DESC
ORDER BY
a.
create_time DESC
<if
test=
"page!=null and pageSize !='' and pageSize!=null and page !=''"
>
limit #{page}, #{pageSize}
</if>
...
...
@@ -245,14 +246,15 @@
<select
id=
"CheckCouponYGQList"
resultType=
"map"
>
SELECT
id,number,DATE_FORMAT(take_Effect_Date,'%Y-%m-%d') create_time,DATE_FORMAT(expire_Date,'%Y-%m-%d')
invalid_date,status
from t_aidea_coupon_record
where del_flag = 0 and status=3
a.id,a.number,DATE_FORMAT(a.take_Effect_Date,'%Y-%m-%d') create_time,DATE_FORMAT(a.expire_Date,'%Y-%m-%d')
invalid_date,a.status ,c.name
from t_aidea_coupon_record a
inner join t_aidea_Check_coupon c on a.coupon_Id = c.id
where a.del_flag = 0 and a.status=3
<if
test=
"openId!=null"
>
and openid = #{openId}
and
a.
openid = #{openId}
</if>
ORDER BY create_time DESC
ORDER BY
a.
create_time DESC
<if
test=
"page!=null and pageSize !='' and pageSize!=null and page !=''"
>
limit #{page}, #{pageSize}
</if>
...
...
@@ -260,14 +262,15 @@
<select
id=
"CheckCouponDSYList"
resultType=
"map"
>
SELECT
id,number,DATE_FORMAT(take_Effect_Date,'%Y-%m-%d') create_time,DATE_FORMAT(expire_Date,'%Y-%m-%d')
invalid_date,status
from t_aidea_coupon_record
where del_flag = 0 and status=1
a.id,a.number,DATE_FORMAT(a.take_Effect_Date,'%Y-%m-%d') create_time,DATE_FORMAT(a.expire_Date,'%Y-%m-%d')
invalid_date,a.status, c.name
from t_aidea_coupon_record a
inner join t_aidea_Check_coupon c on a.coupon_Id = c.id
where a.del_flag = 0 and a.status=1
<if
test=
"openId!=null"
>
and openid = #{openId}
and
a.
openid = #{openId}
</if>
ORDER BY create_time DESC
ORDER BY
a.
create_time DESC
<if
test=
"page!=null and pageSize !='' and pageSize!=null and page !=''"
>
limit #{page}, #{pageSize}
</if>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment