记得上下班打卡 | 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
9e67fbc6
Commit
9e67fbc6
authored
Jun 20, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 周焕和王斐的超级账号方法
parent
05b06150
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
106 additions
and
50 deletions
+106
-50
SuperAccountUtils.java
...va/com/liquidnet/commons/lang/util/SuperAccountUtils.java
+20
-0
KylinOrderTicketsRefundServiceImpl.java
...ylin/service/impl/KylinOrderTicketsRefundServiceImpl.java
+24
-15
KylinOrderTicketsServiceImpl.java
...vice/kylin/service/impl/KylinOrderTicketsServiceImpl.java
+45
-25
TempServiceImpl.java
...liquidnet/service/kylin/service/impl/TempServiceImpl.java
+17
-10
No files found.
liquidnet-bus-common/liquidnet-common-base/src/main/java/com/liquidnet/commons/lang/util/SuperAccountUtils.java
0 → 100644
View file @
9e67fbc6
package
com
.
liquidnet
.
commons
.
lang
.
util
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
public
class
SuperAccountUtils
{
private
static
final
ArrayList
<
String
>
ACCOUNT_LIST
=
new
ArrayList
<>(
Arrays
.
asList
(
"809406"
,
"773650"
,
"2011301"
,
"544327"
,
"1997335"
));
public
static
boolean
isSuperAccount
(
String
uid
,
String
ownerUid
)
{
if
(!
ACCOUNT_LIST
.
contains
(
uid
))
{
if
(!
ownerUid
.
equals
(
uid
))
{
return
false
;
}
}
return
true
;
}
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinOrderTicketsRefundServiceImpl.java
View file @
9e67fbc6
...
@@ -81,12 +81,15 @@ public class KylinOrderTicketsRefundServiceImpl {
...
@@ -81,12 +81,15 @@ public class KylinOrderTicketsRefundServiceImpl {
KylinPerformanceVo
performanceVo
=
dataUtils
.
getPerformanceVo
(
orderTicketVo
.
getPerformanceId
());
KylinPerformanceVo
performanceVo
=
dataUtils
.
getPerformanceVo
(
orderTicketVo
.
getPerformanceId
());
List
<
KylinOrderRefundsVo
>
kylinOrderRefundsVoBaseList
=
dataUtils
.
getOrderRefundVoByOrderId
(
orderTicketVo
.
getOrderTicketsId
());
List
<
KylinOrderRefundsVo
>
kylinOrderRefundsVoBaseList
=
dataUtils
.
getOrderRefundVoByOrderId
(
orderTicketVo
.
getOrderTicketsId
());
// 判断是否购买人
// 判断是否购买人
if
(
uid
.
equals
(
"809406"
)
||
uid
.
equals
(
"773650"
))
{
if
(!
SuperAccountUtils
.
isSuperAccount
(
uid
,
orderTicketVo
.
getUserId
())){
}
else
{
if
(!
orderTicketVo
.
getUserId
().
equals
(
uid
))
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
}
}
}
// if (uid.equals("809406") || uid.equals("773650")) {
// } else {
// if (!orderTicketVo.getUserId().equals(uid)) {
// return ResponseDto.failure(ErrorMapping.get("20003"));
// }
// }
// 入场人 数据脱敏/退款
// 入场人 数据脱敏/退款
List
<
KylinOrderTicketEntitiesVo
>
kylinOrderTicketEntitiesVoList
=
orderTicketVo
.
getEntitiesVoList
();
List
<
KylinOrderTicketEntitiesVo
>
kylinOrderTicketEntitiesVoList
=
orderTicketVo
.
getEntitiesVoList
();
List
<
KylinOrderTicketEntitiesPreRefundVo
>
kylinOrderTicketEntitiesPreRefundVos
=
ObjectUtil
.
getKylinOrderTicketEntitiesPreRefundVoArrayList
();
List
<
KylinOrderTicketEntitiesPreRefundVo
>
kylinOrderTicketEntitiesPreRefundVos
=
ObjectUtil
.
getKylinOrderTicketEntitiesPreRefundVoArrayList
();
...
@@ -174,12 +177,15 @@ public class KylinOrderTicketsRefundServiceImpl {
...
@@ -174,12 +177,15 @@ public class KylinOrderTicketsRefundServiceImpl {
String
uid
=
CurrentUtil
.
getCurrentUid
();
String
uid
=
CurrentUtil
.
getCurrentUid
();
KylinOrderTicketVo
orderTicketVo
=
dataUtils
.
getOrderTicketVo
(
orderId
);
KylinOrderTicketVo
orderTicketVo
=
dataUtils
.
getOrderTicketVo
(
orderId
);
List
<
KylinOrderRefundsVo
>
kylinOrderRefundsVoBaseList
=
dataUtils
.
getOrderRefundVoByOrderId
(
orderTicketVo
.
getOrderTicketsId
());
List
<
KylinOrderRefundsVo
>
kylinOrderRefundsVoBaseList
=
dataUtils
.
getOrderRefundVoByOrderId
(
orderTicketVo
.
getOrderTicketsId
());
if
(
uid
.
equals
(
"809406"
)
||
uid
.
equals
(
"773650"
))
{
if
(!
SuperAccountUtils
.
isSuperAccount
(
uid
,
orderTicketVo
.
getUserId
())){
}
else
{
if
(!
orderTicketVo
.
getUserId
().
equals
(
uid
))
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
}
}
}
// if (uid.equals("809406") || uid.equals("773650")) {
// } else {
// if (!orderTicketVo.getUserId().equals(uid)) {
// return ResponseDto.failure(ErrorMapping.get("20003"));
// }
// }
if
(!
orderTicketVo
.
getPayStatus
().
equals
(
1
))
{
if
(!
orderTicketVo
.
getPayStatus
().
equals
(
1
))
{
return
ResponseDto
.
failure
(
"暂不支持退款"
);
return
ResponseDto
.
failure
(
"暂不支持退款"
);
...
@@ -284,12 +290,15 @@ public class KylinOrderTicketsRefundServiceImpl {
...
@@ -284,12 +290,15 @@ public class KylinOrderTicketsRefundServiceImpl {
KylinOrderTicketVo
orderTicketVo
=
dataUtils
.
getOrderTicketVo
(
orderId
);
KylinOrderTicketVo
orderTicketVo
=
dataUtils
.
getOrderTicketVo
(
orderId
);
KylinPerformanceVo
performanceVo
=
dataUtils
.
getPerformanceVo
(
orderTicketVo
.
getPerformanceId
());
KylinPerformanceVo
performanceVo
=
dataUtils
.
getPerformanceVo
(
orderTicketVo
.
getPerformanceId
());
if
(
uid
.
equals
(
"809406"
)
||
uid
.
equals
(
"773650"
))
{
if
(!
SuperAccountUtils
.
isSuperAccount
(
uid
,
orderTicketVo
.
getUserId
())){
}
else
{
if
(!
orderTicketVo
.
getUserId
().
equals
(
uid
))
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
}
}
}
// if (uid.equals("809406") || uid.equals("773650")) {
// } else {
// if (!orderTicketVo.getUserId().equals(uid)) {
// return ResponseDto.failure(ErrorMapping.get("20003"));
// }
// }
orderTicketVo
.
setFieldName
(
performanceVo
.
getFieldName
());
orderTicketVo
.
setFieldName
(
performanceVo
.
getFieldName
());
if
(
orderTicketVo
.
getOrderCode
().
length
()
>
20
)
{
if
(
orderTicketVo
.
getOrderCode
().
length
()
>
20
)
{
orderTicketVo
.
setOrderCode
(
orderTicketVo
.
getOrderCode
().
substring
(
orderTicketVo
.
getOrderCode
().
length
()
-
10
));
orderTicketVo
.
setOrderCode
(
orderTicketVo
.
getOrderCode
().
substring
(
orderTicketVo
.
getOrderCode
().
length
()
-
10
));
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinOrderTicketsServiceImpl.java
View file @
9e67fbc6
...
@@ -197,12 +197,16 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
...
@@ -197,12 +197,16 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
if
(
orderTicketVo
==
null
)
{
if
(
orderTicketVo
==
null
)
{
orderTicketVo
=
dataUtils
.
getTransferOrder
(
uid
);
orderTicketVo
=
dataUtils
.
getTransferOrder
(
uid
);
}
}
if
(
uid
.
equals
(
"809406"
)
||
uid
.
equals
(
"773650"
))
{
}
else
{
if
(!
SuperAccountUtils
.
isSuperAccount
(
uid
,
orderTicketVo
.
getUserId
())){
if
(!
orderTicketVo
.
getUserId
().
equals
(
uid
))
{
return
null
;
return
null
;
}
}
}
// if (uid.equals("809406") || uid.equals("773650")) {
// } else {
// if (!orderTicketVo.getUserId().equals(uid)) {
// return null;
// }
// }
if
(
null
!=
orderTicketVo
)
{
if
(
null
!=
orderTicketVo
)
{
KylinPerformanceVo
performanceVo
=
dataUtils
.
getPerformanceVo
(
orderTicketVo
.
getPerformanceId
());
KylinPerformanceVo
performanceVo
=
dataUtils
.
getPerformanceVo
(
orderTicketVo
.
getPerformanceId
());
List
<
KylinOrderTicketEntitiesVo
>
kylinOrderTicketEntitiesVoList
=
orderTicketVo
.
getEntitiesVoList
();
List
<
KylinOrderTicketEntitiesVo
>
kylinOrderTicketEntitiesVoList
=
orderTicketVo
.
getEntitiesVoList
();
...
@@ -400,12 +404,15 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
...
@@ -400,12 +404,15 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
public
ResponseDto
<
Boolean
>
supplementEnter
(
String
orderId
,
String
enterList
)
{
public
ResponseDto
<
Boolean
>
supplementEnter
(
String
orderId
,
String
enterList
)
{
String
uid
=
CurrentUtil
.
getCurrentUid
();
String
uid
=
CurrentUtil
.
getCurrentUid
();
KylinOrderTicketVo
orderTicketVo
=
dataUtils
.
getOrderTicketVo
(
orderId
);
KylinOrderTicketVo
orderTicketVo
=
dataUtils
.
getOrderTicketVo
(
orderId
);
if
(
uid
.
equals
(
"809406"
)
||
uid
.
equals
(
"773650"
))
{
if
(!
SuperAccountUtils
.
isSuperAccount
(
uid
,
orderTicketVo
.
getUserId
())){
}
else
{
if
(!
orderTicketVo
.
getUserId
().
equals
(
uid
))
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
}
}
}
// if (uid.equals("809406") || uid.equals("773650")) {
// } else {
// if (!orderTicketVo.getUserId().equals(uid)) {
// return ResponseDto.failure(ErrorMapping.get("20003"));
// }
// }
KylinPerformanceVo
performanceVo
=
dataUtils
.
getPerformanceVo
(
orderTicketVo
.
getPerformanceId
());
KylinPerformanceVo
performanceVo
=
dataUtils
.
getPerformanceVo
(
orderTicketVo
.
getPerformanceId
());
List
<
KylinOrderTicketEntitiesVo
>
kylinOrderTicketEntitiesVoList
=
orderTicketVo
.
getEntitiesVoList
();
List
<
KylinOrderTicketEntitiesVo
>
kylinOrderTicketEntitiesVoList
=
orderTicketVo
.
getEntitiesVoList
();
KylinTicketVo
ticketVo
=
null
;
KylinTicketVo
ticketVo
=
null
;
...
@@ -1003,12 +1010,16 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
...
@@ -1003,12 +1010,16 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
KylinPerformanceVo
performanceVo
=
dataUtils
.
getPerformanceVo
(
orderTicketVo
.
getPerformanceId
());
KylinPerformanceVo
performanceVo
=
dataUtils
.
getPerformanceVo
(
orderTicketVo
.
getPerformanceId
());
List
<
KylinOrderRefundsVo
>
kylinOrderRefundsVoBaseList
=
dataUtils
.
getOrderRefundVoByOrderId
(
orderTicketVo
.
getOrderTicketsId
());
List
<
KylinOrderRefundsVo
>
kylinOrderRefundsVoBaseList
=
dataUtils
.
getOrderRefundVoByOrderId
(
orderTicketVo
.
getOrderTicketsId
());
if
(
uid
.
equals
(
"809406"
)
||
uid
.
equals
(
"773650"
))
{
if
(!
SuperAccountUtils
.
isSuperAccount
(
uid
,
orderTicketVo
.
getUserId
())){
}
else
{
if
(!
orderTicketVo
.
getUserId
().
equals
(
uid
))
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
}
}
}
// if (uid.equals("809406") || uid.equals("773650")) {
// } else {
// if (!orderTicketVo.getUserId().equals(uid)) {
// return ResponseDto.failure(ErrorMapping.get("20003"));
// }
// }
List
<
KylinOrderTicketEntitiesVo
>
kylinOrderTicketEntitiesVoList
=
orderTicketVo
.
getEntitiesVoList
();
List
<
KylinOrderTicketEntitiesVo
>
kylinOrderTicketEntitiesVoList
=
orderTicketVo
.
getEntitiesVoList
();
List
<
KylinOrderTicketEntitiesPreRefundVo
>
kylinOrderTicketEntitiesPreRefundVos
=
ObjectUtil
.
getKylinOrderTicketEntitiesPreRefundVoArrayList
();
List
<
KylinOrderTicketEntitiesPreRefundVo
>
kylinOrderTicketEntitiesPreRefundVos
=
ObjectUtil
.
getKylinOrderTicketEntitiesPreRefundVoArrayList
();
// 数据脱敏
// 数据脱敏
...
@@ -1047,12 +1058,16 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
...
@@ -1047,12 +1058,16 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
KylinOrderTicketVo
orderTicketVo
=
dataUtils
.
getOrderTicketVo
(
orderId
);
KylinOrderTicketVo
orderTicketVo
=
dataUtils
.
getOrderTicketVo
(
orderId
);
KylinPerformanceVo
performanceVo
=
dataUtils
.
getPerformanceVo
(
orderTicketVo
.
getPerformanceId
());
KylinPerformanceVo
performanceVo
=
dataUtils
.
getPerformanceVo
(
orderTicketVo
.
getPerformanceId
());
if
(
uid
.
equals
(
"809406"
)
||
uid
.
equals
(
"773650"
))
{
if
(!
SuperAccountUtils
.
isSuperAccount
(
uid
,
orderTicketVo
.
getUserId
())){
}
else
{
if
(!
orderTicketVo
.
getUserId
().
equals
(
uid
))
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
}
}
}
// if (uid.equals("809406") || uid.equals("773650")) {
// } else {
// if (!orderTicketVo.getUserId().equals(uid)) {
// return ResponseDto.failure(ErrorMapping.get("20003"));
// }
// }
orderTicketVo
.
setFieldName
(
performanceVo
.
getFieldName
());
orderTicketVo
.
setFieldName
(
performanceVo
.
getFieldName
());
if
(
orderTicketVo
.
getOrderCode
().
length
()
>
20
)
{
if
(
orderTicketVo
.
getOrderCode
().
length
()
>
20
)
{
orderTicketVo
.
setOrderCode
(
orderTicketVo
.
getOrderCode
().
substring
(
orderTicketVo
.
getOrderCode
().
length
()
-
10
));
orderTicketVo
.
setOrderCode
(
orderTicketVo
.
getOrderCode
().
substring
(
orderTicketVo
.
getOrderCode
().
length
()
-
10
));
...
@@ -1077,12 +1092,17 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
...
@@ -1077,12 +1092,17 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
String
uid
=
CurrentUtil
.
getCurrentUid
();
String
uid
=
CurrentUtil
.
getCurrentUid
();
KylinOrderTicketVo
orderTicketVo
=
dataUtils
.
getOrderTicketVo
(
orderId
);
KylinOrderTicketVo
orderTicketVo
=
dataUtils
.
getOrderTicketVo
(
orderId
);
List
<
KylinOrderRefundsVo
>
kylinOrderRefundsVoBaseList
=
dataUtils
.
getOrderRefundVoByOrderId
(
orderTicketVo
.
getOrderTicketsId
());
List
<
KylinOrderRefundsVo
>
kylinOrderRefundsVoBaseList
=
dataUtils
.
getOrderRefundVoByOrderId
(
orderTicketVo
.
getOrderTicketsId
());
if
(
uid
.
equals
(
"809406"
)
||
uid
.
equals
(
"773650"
))
{
}
else
{
if
(!
SuperAccountUtils
.
isSuperAccount
(
uid
,
orderTicketVo
.
getUserId
())){
if
(!
orderTicketVo
.
getUserId
().
equals
(
uid
))
{
return
"无权查看"
;
return
"无权查看"
;
}
}
}
// if (uid.equals("809406") || uid.equals("773650")) {
// } else {
// if (!orderTicketVo.getUserId().equals(uid)) {
// return "无权查看";
// }
// }
if
(!
orderTicketVo
.
getPayStatus
().
equals
(
1
))
{
if
(!
orderTicketVo
.
getPayStatus
().
equals
(
1
))
{
return
"暂不支持退款"
;
return
"暂不支持退款"
;
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/TempServiceImpl.java
View file @
9e67fbc6
package
com
.
liquidnet
.
service
.
kylin
.
service
.
impl
;
package
com
.
liquidnet
.
service
.
kylin
.
service
.
impl
;
import
com.liquidnet.commons.lang.util.CurrentUtil
;
import
com.liquidnet.commons.lang.util.CurrentUtil
;
import
com.liquidnet.commons.lang.util.SuperAccountUtils
;
import
com.liquidnet.service.base.ErrorMapping
;
import
com.liquidnet.service.base.ErrorMapping
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.SqlMapping
;
import
com.liquidnet.service.base.SqlMapping
;
...
@@ -62,12 +63,15 @@ public class TempServiceImpl implements IKylinTempService {
...
@@ -62,12 +63,15 @@ public class TempServiceImpl implements IKylinTempService {
try
{
try
{
String
uid
=
CurrentUtil
.
getCurrentUid
();
String
uid
=
CurrentUtil
.
getCurrentUid
();
KylinOrderTicketVo
orderTicketVo
=
dataUtils
.
getOrderTicketVo
(
param
.
getOrderId
());
KylinOrderTicketVo
orderTicketVo
=
dataUtils
.
getOrderTicketVo
(
param
.
getOrderId
());
if
(
uid
.
equals
(
"809406"
)
||
uid
.
equals
(
"773650"
))
{
if
(!
SuperAccountUtils
.
isSuperAccount
(
uid
,
orderTicketVo
.
getUserId
())){
}
else
{
if
(!
orderTicketVo
.
getUserId
().
equals
(
uid
))
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
}
}
}
// if (uid.equals("809406") || uid.equals("773650")) {
// } else {
// if (!orderTicketVo.getUserId().equals(uid)) {
// return ResponseDto.failure(ErrorMapping.get("20003"));
// }
// }
Integer
isTemp
=
dataUtils
.
getWqOrderId
(
param
.
getOrderId
());
Integer
isTemp
=
dataUtils
.
getWqOrderId
(
param
.
getOrderId
());
if
(
isTemp
==
0
){
if
(
isTemp
==
0
){
...
@@ -110,12 +114,15 @@ public class TempServiceImpl implements IKylinTempService {
...
@@ -110,12 +114,15 @@ public class TempServiceImpl implements IKylinTempService {
public
ResponseDto
<
WqTempVo
>
getWqTempExpress
(
String
orderId
)
{
public
ResponseDto
<
WqTempVo
>
getWqTempExpress
(
String
orderId
)
{
String
uid
=
CurrentUtil
.
getCurrentUid
();
String
uid
=
CurrentUtil
.
getCurrentUid
();
KylinOrderTicketVo
orderTicketVo
=
dataUtils
.
getOrderTicketVo
(
orderId
);
KylinOrderTicketVo
orderTicketVo
=
dataUtils
.
getOrderTicketVo
(
orderId
);
if
(
uid
.
equals
(
"809406"
)
||
uid
.
equals
(
"773650"
))
{
if
(!
SuperAccountUtils
.
isSuperAccount
(
uid
,
orderTicketVo
.
getUserId
())){
}
else
{
if
(!
orderTicketVo
.
getUserId
().
equals
(
uid
))
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20003"
));
}
}
}
// if (uid.equals("809406") || uid.equals("773650")) {
// } else {
// if (!orderTicketVo.getUserId().equals(uid)) {
// return ResponseDto.failure(ErrorMapping.get("20003"));
// }
// }
WqTempVo
vo
=
dataUtils
.
getWqOrderVo
(
orderId
);
WqTempVo
vo
=
dataUtils
.
getWqOrderVo
(
orderId
);
return
ResponseDto
.
success
(
vo
);
return
ResponseDto
.
success
(
vo
);
}
}
...
...
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