Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
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
徐少华
midjourney-proxy
Commits
35c26ab7
Commit
35c26ab7
authored
Dec 21, 2020
by
郑江涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature/1004086 小优化点集合——我的礼包
parent
0afef03d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
GiftCouponPackageBizImpl.java
...ud/book/giftcoupon/biz/impl/GiftCouponPackageBizImpl.java
+1
-1
GiftReceiveDao.xml
...k/src/main/resources/mapper/giftConpon/GiftReceiveDao.xml
+8
-2
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/giftcoupon/biz/impl/GiftCouponPackageBizImpl.java
View file @
35c26ab7
...
@@ -362,7 +362,7 @@ public class GiftCouponPackageBizImpl implements GiftCouponPackageBiz {
...
@@ -362,7 +362,7 @@ public class GiftCouponPackageBizImpl implements GiftCouponPackageBiz {
@Override
@Override
public
PageBeanNew
<
GiftPackageDTO
>
list4MyGiftPackage
(
Integer
state
,
Long
wechatUserId
,
Integer
currentPage
,
Integer
numPerPage
)
{
public
PageBeanNew
<
GiftPackageDTO
>
list4MyGiftPackage
(
Integer
state
,
Long
wechatUserId
,
Integer
currentPage
,
Integer
numPerPage
)
{
//state=1 已领取 state=2 已失效
//state=1 已领取 state=2 已失效
state=3 已使用
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"wechatUserId"
,
wechatUserId
);
paramMap
.
put
(
"wechatUserId"
,
wechatUserId
);
paramMap
.
put
(
"state"
,
state
);
paramMap
.
put
(
"state"
,
state
);
...
...
pcloud-service-book/src/main/resources/mapper/giftConpon/GiftReceiveDao.xml
View file @
35c26ab7
...
@@ -146,7 +146,10 @@
...
@@ -146,7 +146,10 @@
a.crossed_price crossedPrice,
a.crossed_price crossedPrice,
a.exchange_address exchangeAddress,
a.exchange_address exchangeAddress,
<if
test=
"state!=null and state==2"
>
<if
test=
"state!=null and state==2"
>
if(b.use_time>0,1,2) failureState,
2 failureState,
</if>
<if
test=
"state!=null and state==3"
>
1 failureState,
</if>
</if>
a.serve_id serveId,
a.serve_id serveId,
a.serve_type serveType,
a.serve_type serveType,
...
@@ -161,7 +164,10 @@
...
@@ -161,7 +164,10 @@
and now()
<![CDATA[ <= ]]>
a.valid_date_end and use_time is null
and now()
<![CDATA[ <= ]]>
a.valid_date_end and use_time is null
</if>
</if>
<if
test=
"state!=null and state==2"
>
<if
test=
"state!=null and state==2"
>
and (now() > a.valid_date_end or use_time>0)
and now() > a.valid_date_end and use_time is null
</if>
<if
test=
"state!=null and state==3"
>
and use_time is not null
</if>
</if>
order by b.create_time desc
order by b.create_time desc
</select>
</select>
...
...
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