Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
8d203da7
Commit
8d203da7
authored
Mar 17, 2021
by
chongfu.liang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
625b3360
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
shopping-cart-application-service/src/main/java/cn/freemud/entities/dto/GetCouponDetailResponseDto.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CouponServiceImpl.java
+4
-4
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/entities/dto/GetCouponDetailResponseDto.java
View file @
8d203da7
...
@@ -36,6 +36,7 @@ public class GetCouponDetailResponseDto {
...
@@ -36,6 +36,7 @@ public class GetCouponDetailResponseDto {
* 可核销周,时间段设置
* 可核销周,时间段设置
*/
*/
private
List
<
ActiveRedeemTimeInterval
>
activeRedeemTimeIntervalList
;
private
List
<
ActiveRedeemTimeInterval
>
activeRedeemTimeIntervalList
;
private
Integer
today_available_times
;
}
}
@Data
@Data
public
static
class
Active
{
public
static
class
Active
{
...
@@ -67,7 +68,6 @@ public class GetCouponDetailResponseDto {
...
@@ -67,7 +68,6 @@ public class GetCouponDetailResponseDto {
private
Integer
maxDiscount
;
private
Integer
maxDiscount
;
@JsonProperty
(
"MaxRedeemTimes"
)
@JsonProperty
(
"MaxRedeemTimes"
)
private
Integer
maxRedeemTimes
;
private
Integer
maxRedeemTimes
;
private
Integer
today_available_times
;
@JsonProperty
(
"MinAmount"
)
@JsonProperty
(
"MinAmount"
)
private
Integer
minAmount
;
private
Integer
minAmount
;
@JsonProperty
(
"PartnerID"
)
@JsonProperty
(
"PartnerID"
)
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CouponServiceImpl.java
View file @
8d203da7
...
@@ -778,8 +778,8 @@ public class CouponServiceImpl implements CouponService {
...
@@ -778,8 +778,8 @@ public class CouponServiceImpl implements CouponService {
dto
.
setCouponName
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getTitle
());
dto
.
setCouponName
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getTitle
());
dto
.
setActivityName
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getActive
().
getActiveName
());
dto
.
setActivityName
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getActive
().
getActiveName
());
if
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getActive
().
getMaxRedeemTimes
()
!=
null
&&
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getActive
().
getMaxRedeemTimes
()
>
1
){
if
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getActive
().
getMaxRedeemTimes
()
!=
null
&&
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getActive
().
getMaxRedeemTimes
()
>
1
){
if
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
get
Active
().
get
Today_available_times
()
!=
null
){
if
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getToday_available_times
()
!=
null
){
dto
.
setTodayAvailableTimes
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
get
Active
().
get
Today_available_times
());
dto
.
setTodayAvailableTimes
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getToday_available_times
());
}
else
{
}
else
{
dto
.
setTodayAvailableTimes
(
1
);
dto
.
setTodayAvailableTimes
(
1
);
}
}
...
@@ -949,8 +949,8 @@ public class CouponServiceImpl implements CouponService {
...
@@ -949,8 +949,8 @@ public class CouponServiceImpl implements CouponService {
}
}
CheckSpqInfoResponseDto
dto
=
new
CheckSpqInfoResponseDto
();
CheckSpqInfoResponseDto
dto
=
new
CheckSpqInfoResponseDto
();
if
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getActive
().
getMaxRedeemTimes
()
!=
null
&&
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getActive
().
getMaxRedeemTimes
()
>
1
){
if
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getActive
().
getMaxRedeemTimes
()
!=
null
&&
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getActive
().
getMaxRedeemTimes
()
>
1
){
if
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
get
Active
().
get
Today_available_times
()
!=
null
){
if
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getToday_available_times
()
!=
null
){
dto
.
setTodayAvailableTimes
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
get
Active
().
get
Today_available_times
());
dto
.
setTodayAvailableTimes
(
couponDetailResponseDto
.
getDetails
().
get
(
0
).
getToday_available_times
());
}
else
{
}
else
{
dto
.
setTodayAvailableTimes
(
1
);
dto
.
setTodayAvailableTimes
(
1
);
}
}
...
...
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