记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
6a5d6751
Commit
6a5d6751
authored
Jan 28, 2024
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 我得券 增加 是否实名字段
parent
5ff0c57a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
14 deletions
+24
-14
ICandyCouponService.java
.../liquidnet/service/candy/service/ICandyCouponService.java
+2
-2
CandyCouponController.java
...idnet/service/candy/controller/CandyCouponController.java
+14
-4
CandyCouponServiceImpl.java
...et/service/candy/service/impl/CandyCouponServiceImpl.java
+6
-6
CouponBaseUtil.java
...java/com/liquidnet/service/candy/util/CouponBaseUtil.java
+2
-2
No files found.
liquidnet-bus-api/liquidnet-service-candy-api/src/main/java/com/liquidnet/service/candy/service/ICandyCouponService.java
View file @
6a5d6751
...
...
@@ -28,9 +28,9 @@ public interface ICandyCouponService {
List
<
CandyCouponVo
>
memberCoupon
(
String
mCouponId
);
CandyMyCouponListVo
preUsePerformanceCoupon
(
BigDecimal
priceTotal
,
String
performanceId
,
String
timeId
,
String
ticketId
,
Integer
type
,
int
perType
);
CandyMyCouponListVo
preUsePerformanceCoupon
(
BigDecimal
priceTotal
,
String
performanceId
,
String
timeId
,
String
ticketId
,
Integer
type
,
int
perType
,
int
inTrueName
);
Integer
preCanUsePerformanceCoupon
(
BigDecimal
priceTotal
,
String
performanceId
,
String
timeId
,
String
ticketId
,
int
perType
);
Integer
preCanUsePerformanceCoupon
(
BigDecimal
priceTotal
,
String
performanceId
,
String
timeId
,
String
ticketId
,
int
perType
,
int
inTrueName
);
CandyMyCouponListVo
preUseGoodCoupon
(
BigDecimal
priceTotal
,
String
goodId
,
Integer
type
,
String
uid
);
...
...
liquidnet-bus-service/liquidnet-service-candy/liquidnet-service-candy-impl/src/main/java/com/liquidnet/service/candy/controller/CandyCouponController.java
View file @
6a5d6751
...
...
@@ -100,6 +100,7 @@ public class CandyCouponController {
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"ticketId"
,
value
=
"票id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"Integer"
,
name
=
"type"
,
value
=
"类型 1可用 2过期/已使用 "
,
required
=
true
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"Integer"
,
name
=
"perType"
,
value
=
"演出类型"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"Integer"
,
name
=
"inTrueName"
,
value
=
"是否实名"
,
required
=
false
),
})
public
ResponseDto
<
CandyMyCouponListVo
>
preUsePerformanceCoupon
(
@RequestParam
(
"priceTotal"
)
@NotNull
BigDecimal
priceTotal
,
@RequestParam
(
"performanceId"
)
@NotNull
@NotBlank
String
performanceId
,
...
...
@@ -107,11 +108,15 @@ public class CandyCouponController {
@RequestParam
(
"ticketId"
)
@NotNull
@NotBlank
String
ticketId
,
@RequestParam
(
"type"
)
@NotNull
Integer
type
,
@RequestParam
(
required
=
false
,
name
=
"page"
)
Integer
page
,
@RequestParam
(
required
=
false
,
name
=
"perType"
)
Integer
perType
)
{
@RequestParam
(
required
=
false
,
name
=
"perType"
)
Integer
perType
,
@RequestParam
(
required
=
false
,
name
=
"inTrueName"
)
Integer
inTrueName
)
{
if
(
perType
==
null
)
{
perType
=
-
1
;
}
CandyMyCouponListVo
vo
=
candyCouponService
.
preUsePerformanceCoupon
(
priceTotal
,
performanceId
,
timeId
,
ticketId
,
type
,
perType
);
if
(
inTrueName
==
null
)
{
inTrueName
=
1
;
}
CandyMyCouponListVo
vo
=
candyCouponService
.
preUsePerformanceCoupon
(
priceTotal
,
performanceId
,
timeId
,
ticketId
,
type
,
perType
,
inTrueName
);
List
<
CandyCouponVo
>
list
=
vo
.
getMyCoupon
();
List
<
CandyCouponVo
>
listVo
=
ObjectUtil
.
getCandyCouponVoArrayList
();
if
(
page
==
null
||
page
==
0
)
{
...
...
@@ -139,17 +144,22 @@ public class CandyCouponController {
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"timeId"
,
value
=
"场次id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"ticketId"
,
value
=
"票id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"Integer"
,
name
=
"perType"
,
value
=
"演出类型"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"Integer"
,
name
=
"inTrueName"
,
value
=
"是否实名"
,
required
=
false
),
})
public
ResponseDto
<
HashMap
<
String
,
Integer
>>
preCanUsePerformanceCoupon
(
@RequestParam
(
"priceTotal"
)
@NotNull
BigDecimal
priceTotal
,
@RequestParam
(
"performanceId"
)
@NotNull
@NotBlank
String
performanceId
,
@RequestParam
(
"timeId"
)
@NotNull
@NotBlank
String
timeId
,
@RequestParam
(
"ticketId"
)
@NotNull
@NotBlank
String
ticketId
,
@RequestParam
(
required
=
false
,
name
=
"perType"
)
Integer
perType
)
{
@RequestParam
(
required
=
false
,
name
=
"perType"
)
Integer
perType
,
@RequestParam
(
required
=
false
,
name
=
"inTrueName"
)
Integer
inTrueName
)
{
if
(
perType
==
null
)
{
perType
=
-
1
;
}
if
(
inTrueName
==
null
)
{
inTrueName
=
1
;
}
HashMap
<
String
,
Integer
>
hashMap
=
CollectionUtil
.
mapStringInteger
();
hashMap
.
put
(
"canUse"
,
candyCouponService
.
preCanUsePerformanceCoupon
(
priceTotal
,
performanceId
,
timeId
,
ticketId
,
perType
));
hashMap
.
put
(
"canUse"
,
candyCouponService
.
preCanUsePerformanceCoupon
(
priceTotal
,
performanceId
,
timeId
,
ticketId
,
perType
,
inTrueName
));
return
ResponseDto
.
success
(
hashMap
);
}
...
...
liquidnet-bus-service/liquidnet-service-candy/liquidnet-service-candy-impl/src/main/java/com/liquidnet/service/candy/service/impl/CandyCouponServiceImpl.java
View file @
6a5d6751
...
...
@@ -139,7 +139,7 @@ public class CandyCouponServiceImpl implements ICandyCouponService {
}
@Override
public
CandyMyCouponListVo
preUsePerformanceCoupon
(
BigDecimal
priceTotal
,
String
performanceId
,
String
timeId
,
String
ticketId
,
Integer
type
,
int
perType
)
{
public
CandyMyCouponListVo
preUsePerformanceCoupon
(
BigDecimal
priceTotal
,
String
performanceId
,
String
timeId
,
String
ticketId
,
Integer
type
,
int
perType
,
int
inTrueName
)
{
String
uid
=
CurrentUtil
.
getCurrentUid
();
LocalDateTime
userCreateTime
;
try
{
...
...
@@ -153,9 +153,9 @@ public class CandyCouponServiceImpl implements ICandyCouponService {
List
<
CandyCouponVo
>
myCoupon
=
ObjectUtil
.
getCandyCouponVoArrayList
();
for
(
CandyUserCouponBasicDto
dtoItem
:
dtoList
)
{
CandyCouponVo
baseVo
=
CouponBaseUtil
.
getPerformanceCouponUserVo
(
dtoItem
,
priceTotal
,
performanceId
,
timeId
,
ticketId
,
perType
);
CandyCouponVo
baseVo
=
CouponBaseUtil
.
getPerformanceCouponUserVo
(
dtoItem
,
priceTotal
,
performanceId
,
timeId
,
ticketId
,
perType
,
inTrueName
);
if
(
type
==
1
)
{
if
(
baseVo
.
getState
().
equals
(
3
)
||
dtoItem
.
getState
().
equals
(
5
)
||
baseVo
.
getState
().
equals
(
21
))
{
if
(
baseVo
.
getState
().
equals
(
3
)
||
baseVo
.
getState
().
equals
(
5
)
||
baseVo
.
getState
().
equals
(
21
)||
baseVo
.
getState
().
equals
(
31
)||
baseVo
.
getState
().
equals
(
2
))
{
continue
;
}
}
else
if
(
type
==
2
)
{
...
...
@@ -182,7 +182,7 @@ public class CandyCouponServiceImpl implements ICandyCouponService {
}
@Override
public
Integer
preCanUsePerformanceCoupon
(
BigDecimal
priceTotal
,
String
performanceId
,
String
timeId
,
String
ticketId
,
int
perType
)
{
public
Integer
preCanUsePerformanceCoupon
(
BigDecimal
priceTotal
,
String
performanceId
,
String
timeId
,
String
ticketId
,
int
perType
,
int
inTrueName
)
{
String
uid
=
CurrentUtil
.
getCurrentUid
();
LocalDateTime
userCreateTime
;
try
{
...
...
@@ -193,7 +193,7 @@ public class CandyCouponServiceImpl implements ICandyCouponService {
List
<
CandyUserCouponBasicDto
>
dtoList
=
redisDataUtils
.
getCouponByUid
(
uid
,
userCreateTime
);
int
canUse
=
0
;
for
(
CandyUserCouponBasicDto
dtoItem
:
dtoList
)
{
CandyCouponVo
baseVo
=
CouponBaseUtil
.
getPerformanceCouponUserVo
(
dtoItem
,
priceTotal
,
performanceId
,
timeId
,
ticketId
,
perType
);
CandyCouponVo
baseVo
=
CouponBaseUtil
.
getPerformanceCouponUserVo
(
dtoItem
,
priceTotal
,
performanceId
,
timeId
,
ticketId
,
perType
,
inTrueName
);
if
(
baseVo
.
getCouType
().
equals
(
101
)
||
baseVo
.
getCouType
().
equals
(
3
)
||
baseVo
.
getBusiType
()
==
2
)
{
continue
;
}
...
...
@@ -287,7 +287,7 @@ public class CandyCouponServiceImpl implements ICandyCouponService {
List
<
CandyCouponVo
>
advanceCoupon
=
ObjectUtil
.
getCandyCouponVoArrayList
();
for
(
CandyUserCouponBasicDto
dtoItem
:
dtoList
)
{
if
(
dtoItem
.
getBusiType
().
equals
(
3
))
{
CandyCouponVo
baseVo
=
CouponBaseUtil
.
getPerformanceCouponUserVo
(
dtoItem
,
BigDecimal
.
ZERO
,
performanceId
,
"-1"
,
"-1"
,-
1
);
CandyCouponVo
baseVo
=
CouponBaseUtil
.
getPerformanceCouponUserVo
(
dtoItem
,
BigDecimal
.
ZERO
,
performanceId
,
"-1"
,
"-1"
,-
1
,
0
);
if
(
baseVo
.
getState
().
equals
(
1
))
{
advanceCoupon
.
add
(
baseVo
);
}
else
{
...
...
liquidnet-bus-service/liquidnet-service-candy/liquidnet-service-candy-impl/src/main/java/com/liquidnet/service/candy/util/CouponBaseUtil.java
View file @
6a5d6751
...
...
@@ -75,7 +75,7 @@ public class CouponBaseUtil {
String
performanceId
,
String
timeId
,
String
ticketId
,
int
perType
)
{
int
perType
,
int
inTrueName
)
{
boolean
isTarget
=
false
;
LocalDateTime
now
=
LocalDateTime
.
now
();
CandyCouponVo
vo
=
CandyCouponVo
.
getNew
();
...
...
@@ -131,7 +131,7 @@ public class CouponBaseUtil {
case
101
:
case
102
:
case
103
:
isTarget
=
ruleItem
.
getUseScope
()
==
perType
;
isTarget
=
ruleItem
.
getUseScope
()
==
perType
&&
inTrueName
==
1
;
break
;
default
:
isTarget
=
false
;
...
...
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