记得上下班打卡 | 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
7a90c929
Commit
7a90c929
authored
Jan 29, 2024
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 inTrueName 为 isTrueName
parent
f6858f32
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
18 deletions
+18
-18
ICandyCouponService.java
.../liquidnet/service/candy/service/ICandyCouponService.java
+2
-2
CandyCouponController.java
...idnet/service/candy/controller/CandyCouponController.java
+10
-10
CandyCouponServiceImpl.java
...et/service/candy/service/impl/CandyCouponServiceImpl.java
+4
-4
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 @
7a90c929
...
@@ -28,9 +28,9 @@ public interface ICandyCouponService {
...
@@ -28,9 +28,9 @@ public interface ICandyCouponService {
List
<
CandyCouponVo
>
memberCoupon
(
String
mCouponId
);
List
<
CandyCouponVo
>
memberCoupon
(
String
mCouponId
);
CandyMyCouponListVo
preUsePerformanceCoupon
(
BigDecimal
priceTotal
,
String
performanceId
,
String
timeId
,
String
ticketId
,
Integer
type
,
int
perType
,
int
i
n
TrueName
);
CandyMyCouponListVo
preUsePerformanceCoupon
(
BigDecimal
priceTotal
,
String
performanceId
,
String
timeId
,
String
ticketId
,
Integer
type
,
int
perType
,
int
i
s
TrueName
);
Integer
preCanUsePerformanceCoupon
(
BigDecimal
priceTotal
,
String
performanceId
,
String
timeId
,
String
ticketId
,
int
perType
,
int
i
n
TrueName
);
Integer
preCanUsePerformanceCoupon
(
BigDecimal
priceTotal
,
String
performanceId
,
String
timeId
,
String
ticketId
,
int
perType
,
int
i
s
TrueName
);
CandyMyCouponListVo
preUseGoodCoupon
(
BigDecimal
priceTotal
,
String
goodId
,
Integer
type
,
String
uid
);
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 @
7a90c929
...
@@ -100,7 +100,7 @@ public class CandyCouponController {
...
@@ -100,7 +100,7 @@ public class CandyCouponController {
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"ticketId"
,
value
=
"票id"
,
required
=
true
),
@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
=
"type"
,
value
=
"类型 1可用 2过期/已使用 "
,
required
=
true
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"Integer"
,
name
=
"perType"
,
value
=
"演出类型"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"Integer"
,
name
=
"perType"
,
value
=
"演出类型"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"Integer"
,
name
=
"i
n
TrueName"
,
value
=
"是否实名"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"Integer"
,
name
=
"i
s
TrueName"
,
value
=
"是否实名"
,
required
=
false
),
})
})
public
ResponseDto
<
CandyMyCouponListVo
>
preUsePerformanceCoupon
(
@RequestParam
(
"priceTotal"
)
@NotNull
BigDecimal
priceTotal
,
public
ResponseDto
<
CandyMyCouponListVo
>
preUsePerformanceCoupon
(
@RequestParam
(
"priceTotal"
)
@NotNull
BigDecimal
priceTotal
,
@RequestParam
(
"performanceId"
)
@NotNull
@NotBlank
String
performanceId
,
@RequestParam
(
"performanceId"
)
@NotNull
@NotBlank
String
performanceId
,
...
@@ -109,14 +109,14 @@ public class CandyCouponController {
...
@@ -109,14 +109,14 @@ public class CandyCouponController {
@RequestParam
(
"type"
)
@NotNull
Integer
type
,
@RequestParam
(
"type"
)
@NotNull
Integer
type
,
@RequestParam
(
required
=
false
,
name
=
"page"
)
Integer
page
,
@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
=
"i
nTrueName"
)
Integer
in
TrueName
)
{
@RequestParam
(
required
=
false
,
name
=
"i
sTrueName"
)
Integer
is
TrueName
)
{
if
(
perType
==
null
)
{
if
(
perType
==
null
)
{
perType
=
-
1
;
perType
=
-
1
;
}
}
if
(
i
n
TrueName
==
null
)
{
if
(
i
s
TrueName
==
null
)
{
i
n
TrueName
=
1
;
i
s
TrueName
=
1
;
}
}
CandyMyCouponListVo
vo
=
candyCouponService
.
preUsePerformanceCoupon
(
priceTotal
,
performanceId
,
timeId
,
ticketId
,
type
,
perType
,
i
n
TrueName
);
CandyMyCouponListVo
vo
=
candyCouponService
.
preUsePerformanceCoupon
(
priceTotal
,
performanceId
,
timeId
,
ticketId
,
type
,
perType
,
i
s
TrueName
);
List
<
CandyCouponVo
>
list
=
vo
.
getMyCoupon
();
List
<
CandyCouponVo
>
list
=
vo
.
getMyCoupon
();
List
<
CandyCouponVo
>
listVo
=
ObjectUtil
.
getCandyCouponVoArrayList
();
List
<
CandyCouponVo
>
listVo
=
ObjectUtil
.
getCandyCouponVoArrayList
();
if
(
page
==
null
||
page
==
0
)
{
if
(
page
==
null
||
page
==
0
)
{
...
@@ -144,22 +144,22 @@ public class CandyCouponController {
...
@@ -144,22 +144,22 @@ public class CandyCouponController {
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"timeId"
,
value
=
"场次id"
,
required
=
true
),
@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
=
"String"
,
name
=
"ticketId"
,
value
=
"票id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"Integer"
,
name
=
"perType"
,
value
=
"演出类型"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"Integer"
,
name
=
"perType"
,
value
=
"演出类型"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"Integer"
,
name
=
"i
n
TrueName"
,
value
=
"是否实名"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"Integer"
,
name
=
"i
s
TrueName"
,
value
=
"是否实名"
,
required
=
false
),
})
})
public
ResponseDto
<
HashMap
<
String
,
Integer
>>
preCanUsePerformanceCoupon
(
@RequestParam
(
"priceTotal"
)
@NotNull
BigDecimal
priceTotal
,
public
ResponseDto
<
HashMap
<
String
,
Integer
>>
preCanUsePerformanceCoupon
(
@RequestParam
(
"priceTotal"
)
@NotNull
BigDecimal
priceTotal
,
@RequestParam
(
"performanceId"
)
@NotNull
@NotBlank
String
performanceId
,
@RequestParam
(
"performanceId"
)
@NotNull
@NotBlank
String
performanceId
,
@RequestParam
(
"timeId"
)
@NotNull
@NotBlank
String
timeId
,
@RequestParam
(
"timeId"
)
@NotNull
@NotBlank
String
timeId
,
@RequestParam
(
"ticketId"
)
@NotNull
@NotBlank
String
ticketId
,
@RequestParam
(
"ticketId"
)
@NotNull
@NotBlank
String
ticketId
,
@RequestParam
(
required
=
false
,
name
=
"perType"
)
Integer
perType
,
@RequestParam
(
required
=
false
,
name
=
"perType"
)
Integer
perType
,
@RequestParam
(
required
=
false
,
name
=
"i
nTrueName"
)
Integer
in
TrueName
)
{
@RequestParam
(
required
=
false
,
name
=
"i
sTrueName"
)
Integer
is
TrueName
)
{
if
(
perType
==
null
)
{
if
(
perType
==
null
)
{
perType
=
-
1
;
perType
=
-
1
;
}
}
if
(
i
n
TrueName
==
null
)
{
if
(
i
s
TrueName
==
null
)
{
i
n
TrueName
=
1
;
i
s
TrueName
=
1
;
}
}
HashMap
<
String
,
Integer
>
hashMap
=
CollectionUtil
.
mapStringInteger
();
HashMap
<
String
,
Integer
>
hashMap
=
CollectionUtil
.
mapStringInteger
();
hashMap
.
put
(
"canUse"
,
candyCouponService
.
preCanUsePerformanceCoupon
(
priceTotal
,
performanceId
,
timeId
,
ticketId
,
perType
,
i
n
TrueName
));
hashMap
.
put
(
"canUse"
,
candyCouponService
.
preCanUsePerformanceCoupon
(
priceTotal
,
performanceId
,
timeId
,
ticketId
,
perType
,
i
s
TrueName
));
return
ResponseDto
.
success
(
hashMap
);
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 @
7a90c929
...
@@ -139,7 +139,7 @@ public class CandyCouponServiceImpl implements ICandyCouponService {
...
@@ -139,7 +139,7 @@ public class CandyCouponServiceImpl implements ICandyCouponService {
}
}
@Override
@Override
public
CandyMyCouponListVo
preUsePerformanceCoupon
(
BigDecimal
priceTotal
,
String
performanceId
,
String
timeId
,
String
ticketId
,
Integer
type
,
int
perType
,
int
i
n
TrueName
)
{
public
CandyMyCouponListVo
preUsePerformanceCoupon
(
BigDecimal
priceTotal
,
String
performanceId
,
String
timeId
,
String
ticketId
,
Integer
type
,
int
perType
,
int
i
s
TrueName
)
{
String
uid
=
CurrentUtil
.
getCurrentUid
();
String
uid
=
CurrentUtil
.
getCurrentUid
();
LocalDateTime
userCreateTime
;
LocalDateTime
userCreateTime
;
try
{
try
{
...
@@ -153,7 +153,7 @@ public class CandyCouponServiceImpl implements ICandyCouponService {
...
@@ -153,7 +153,7 @@ public class CandyCouponServiceImpl implements ICandyCouponService {
List
<
CandyCouponVo
>
myCoupon
=
ObjectUtil
.
getCandyCouponVoArrayList
();
List
<
CandyCouponVo
>
myCoupon
=
ObjectUtil
.
getCandyCouponVoArrayList
();
for
(
CandyUserCouponBasicDto
dtoItem
:
dtoList
)
{
for
(
CandyUserCouponBasicDto
dtoItem
:
dtoList
)
{
CandyCouponVo
baseVo
=
CouponBaseUtil
.
getPerformanceCouponUserVo
(
dtoItem
,
priceTotal
,
performanceId
,
timeId
,
ticketId
,
perType
,
i
n
TrueName
);
CandyCouponVo
baseVo
=
CouponBaseUtil
.
getPerformanceCouponUserVo
(
dtoItem
,
priceTotal
,
performanceId
,
timeId
,
ticketId
,
perType
,
i
s
TrueName
);
if
(
type
==
1
)
{
if
(
type
==
1
)
{
if
(
baseVo
.
getState
().
equals
(
3
)
||
baseVo
.
getState
().
equals
(
5
)
||
baseVo
.
getState
().
equals
(
21
)||
baseVo
.
getState
().
equals
(
31
)||
baseVo
.
getState
().
equals
(
2
))
{
if
(
baseVo
.
getState
().
equals
(
3
)
||
baseVo
.
getState
().
equals
(
5
)
||
baseVo
.
getState
().
equals
(
21
)||
baseVo
.
getState
().
equals
(
31
)||
baseVo
.
getState
().
equals
(
2
))
{
continue
;
continue
;
...
@@ -182,7 +182,7 @@ public class CandyCouponServiceImpl implements ICandyCouponService {
...
@@ -182,7 +182,7 @@ public class CandyCouponServiceImpl implements ICandyCouponService {
}
}
@Override
@Override
public
Integer
preCanUsePerformanceCoupon
(
BigDecimal
priceTotal
,
String
performanceId
,
String
timeId
,
String
ticketId
,
int
perType
,
int
i
n
TrueName
)
{
public
Integer
preCanUsePerformanceCoupon
(
BigDecimal
priceTotal
,
String
performanceId
,
String
timeId
,
String
ticketId
,
int
perType
,
int
i
s
TrueName
)
{
String
uid
=
CurrentUtil
.
getCurrentUid
();
String
uid
=
CurrentUtil
.
getCurrentUid
();
LocalDateTime
userCreateTime
;
LocalDateTime
userCreateTime
;
try
{
try
{
...
@@ -193,7 +193,7 @@ public class CandyCouponServiceImpl implements ICandyCouponService {
...
@@ -193,7 +193,7 @@ public class CandyCouponServiceImpl implements ICandyCouponService {
List
<
CandyUserCouponBasicDto
>
dtoList
=
redisDataUtils
.
getCouponByUid
(
uid
,
userCreateTime
);
List
<
CandyUserCouponBasicDto
>
dtoList
=
redisDataUtils
.
getCouponByUid
(
uid
,
userCreateTime
);
int
canUse
=
0
;
int
canUse
=
0
;
for
(
CandyUserCouponBasicDto
dtoItem
:
dtoList
)
{
for
(
CandyUserCouponBasicDto
dtoItem
:
dtoList
)
{
CandyCouponVo
baseVo
=
CouponBaseUtil
.
getPerformanceCouponUserVo
(
dtoItem
,
priceTotal
,
performanceId
,
timeId
,
ticketId
,
perType
,
i
n
TrueName
);
CandyCouponVo
baseVo
=
CouponBaseUtil
.
getPerformanceCouponUserVo
(
dtoItem
,
priceTotal
,
performanceId
,
timeId
,
ticketId
,
perType
,
i
s
TrueName
);
if
(
baseVo
.
getCouType
().
equals
(
101
)
||
baseVo
.
getCouType
().
equals
(
3
)
||
baseVo
.
getBusiType
()
==
2
)
{
if
(
baseVo
.
getCouType
().
equals
(
101
)
||
baseVo
.
getCouType
().
equals
(
3
)
||
baseVo
.
getBusiType
()
==
2
)
{
continue
;
continue
;
}
}
...
...
liquidnet-bus-service/liquidnet-service-candy/liquidnet-service-candy-impl/src/main/java/com/liquidnet/service/candy/util/CouponBaseUtil.java
View file @
7a90c929
...
@@ -75,7 +75,7 @@ public class CouponBaseUtil {
...
@@ -75,7 +75,7 @@ public class CouponBaseUtil {
String
performanceId
,
String
performanceId
,
String
timeId
,
String
timeId
,
String
ticketId
,
String
ticketId
,
int
perType
,
int
i
n
TrueName
)
{
int
perType
,
int
i
s
TrueName
)
{
boolean
isTarget
=
false
;
boolean
isTarget
=
false
;
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
now
=
LocalDateTime
.
now
();
CandyCouponVo
vo
=
CandyCouponVo
.
getNew
();
CandyCouponVo
vo
=
CandyCouponVo
.
getNew
();
...
@@ -131,7 +131,7 @@ public class CouponBaseUtil {
...
@@ -131,7 +131,7 @@ public class CouponBaseUtil {
case
101
:
case
101
:
case
102
:
case
102
:
case
103
:
case
103
:
isTarget
=
ruleItem
.
getUseScope
()
==
perType
&&
i
n
TrueName
==
1
;
isTarget
=
ruleItem
.
getUseScope
()
==
perType
&&
i
s
TrueName
==
1
;
break
;
break
;
default
:
default
:
isTarget
=
false
;
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