Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
ef776514
Commit
ef776514
authored
Jul 18, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
74295ba6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
ActivityFeign.java
.../java/com/xxfc/platform/activity/feign/ActivityFeign.java
+2
-2
UserCouponBiz.java
...in/java/com/xxfc/platform/activity/biz/UserCouponBiz.java
+1
-1
UserCouponController.java
...com/xxfc/platform/activity/rest/UserCouponController.java
+4
-4
No files found.
xx-activity/xx-activity-api/src/main/java/com/xxfc/platform/activity/feign/ActivityFeign.java
View file @
ef776514
...
...
@@ -30,10 +30,10 @@ public interface ActivityFeign {
@RequestMapping
(
value
=
"/user/use"
,
method
=
RequestMethod
.
POST
)
public
BigDecimal
use
(
@RequestParam
(
value
=
"userId"
)
Integer
userId
,
@RequestParam
(
value
=
"
TickerNo"
)
String
T
ickerNo
,
@RequestParam
(
value
=
"
tickerNo"
)
String
t
ickerNo
,
@RequestParam
(
value
=
"orderNo"
)
String
orderNo
,
@RequestParam
(
value
=
"channel"
)
Integer
channel
,
@RequestParam
(
value
=
"amou
t"
)
BigDecimal
amou
t
,
@RequestParam
(
value
=
"amou
nt"
)
BigDecimal
amoun
t
,
@RequestParam
(
value
=
"type"
)
Integer
type
);
@ApiOperation
(
"优惠卷取消使用"
)
...
...
xx-activity/xx-activity-server/src/main/java/com/xxfc/platform/activity/biz/UserCouponBiz.java
View file @
ef776514
...
...
@@ -153,7 +153,7 @@ public class UserCouponBiz extends BaseBiz<UserCouponMapper, UserCoupon> {
return
couponAmout
;
}
Example
example
=
new
Example
(
UserCoupon
.
class
);
example
.
createCriteria
().
andEqualTo
(
"
T
ickerNo"
,
TickerNo
).
andEqualTo
(
"isDel"
,
0
);
example
.
createCriteria
().
andEqualTo
(
"
t
ickerNo"
,
TickerNo
).
andEqualTo
(
"isDel"
,
0
);
List
<
UserCoupon
>
list
=
selectByExample
(
example
);
if
(
list
.
size
()==
0
){
log
.
error
(
userId
+
"----已领优惠卷"
);
...
...
xx-activity/xx-activity-server/src/main/java/com/xxfc/platform/activity/rest/UserCouponController.java
View file @
ef776514
...
...
@@ -37,7 +37,7 @@ public class UserCouponController extends ActivityBaseController<UserCouponBiz>
@RequestMapping
(
value
=
"/coupon/list"
,
method
=
RequestMethod
.
GET
)
public
ObjectRestResponse
list
(
@RequestParam
(
value
=
"type"
,
defaultValue
=
"0"
)
Integer
type
,
@RequestParam
(
value
=
"channel"
)
Integer
channel
,
@RequestParam
(
value
=
"amount"
,
defaultValue
=
"0.00"
)
BigDecimal
amount
)
{
@RequestParam
(
value
=
"amount"
,
defaultValue
=
"0.00"
)
BigDecimal
amount
)
{
AppUserDTO
userInfo
=
getUserInfo
();
Integer
userId
=
userInfo
.
getUserid
();
if
(
userId
==
null
){
...
...
@@ -57,13 +57,13 @@ public class UserCouponController extends ActivityBaseController<UserCouponBiz>
@RequestMapping
(
value
=
"/use"
,
method
=
RequestMethod
.
POST
)
public
BigDecimal
use
(
@RequestParam
(
value
=
"userId"
,
defaultValue
=
"0"
)
Integer
userId
,
@RequestParam
(
value
=
"
TickerNo"
,
defaultValue
=
""
)
String
T
ickerNo
,
@RequestParam
(
value
=
"
tickerNo"
,
defaultValue
=
""
)
String
t
ickerNo
,
@RequestParam
(
value
=
"orderNo"
,
defaultValue
=
""
)
String
orderNo
,
@RequestParam
(
value
=
"channel"
,
defaultValue
=
"1"
)
Integer
channel
,
@RequestParam
(
value
=
"amou
t"
,
defaultValue
=
"0.00"
)
BigDecimal
amou
t
,
@RequestParam
(
value
=
"amou
nt"
,
defaultValue
=
"0.00"
)
BigDecimal
amoun
t
,
@RequestParam
(
value
=
"type"
,
defaultValue
=
"1"
)
Integer
type
)
{
return
baseBiz
.
useTickerNo
(
userId
,
TickerNo
,
orderNo
,
channel
,
amou
t
,
type
);
return
baseBiz
.
useTickerNo
(
userId
,
tickerNo
,
orderNo
,
channel
,
amoun
t
,
type
);
}
@ApiOperation
(
"优惠卷取消使用"
)
...
...
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