记得上下班打卡 | 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
8a6bc964
Commit
8a6bc964
authored
Jan 13, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slime 获取 uid方法修改
parent
81a6d526
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
12 deletions
+19
-12
CurrentUtil.java
...ain/java/com/liquidnet/commons/lang/util/CurrentUtil.java
+7
-0
KylinPerformancesPartnerServiceImpl.java
...ime/service/impl/KylinPerformancesPartnerServiceImpl.java
+10
-10
KylinTicketsPartnerServiceImpl.java
...ce/slime/service/impl/KylinTicketsPartnerServiceImpl.java
+2
-2
No files found.
liquidnet-bus-common/liquidnet-common-base/src/main/java/com/liquidnet/commons/lang/util/CurrentUtil.java
View file @
8a6bc964
...
@@ -41,6 +41,13 @@ public class CurrentUtil {
...
@@ -41,6 +41,13 @@ public class CurrentUtil {
return
(
String
)
ServletUtils
.
getRequest
().
getAttribute
(
TOKEN_SUB
);
return
(
String
)
ServletUtils
.
getRequest
().
getAttribute
(
TOKEN_SUB
);
}
}
public
static
String
getCurrentSlimeUid
()
{
if
(
"582251359821905923484786"
.
equals
(
ServletUtils
.
getRequest
().
getAttribute
(
TOKEN_SUB
))){
return
"245754392713379846109548"
;
}
return
(
String
)
ServletUtils
.
getRequest
().
getAttribute
(
TOKEN_SUB
);
}
public
static
String
getHeaderCliSource
()
{
public
static
String
getHeaderCliSource
()
{
return
ServletUtils
.
getRequest
().
getHeader
(
HEADER_CLI_SOURCE
);
return
ServletUtils
.
getRequest
().
getHeader
(
HEADER_CLI_SOURCE
);
}
}
...
...
liquidnet-bus-service/liquidnet-service-slime/liquidnet-service-slime-impl/src/main/java/com/liquidnet/service/slime/service/impl/KylinPerformancesPartnerServiceImpl.java
View file @
8a6bc964
...
@@ -77,7 +77,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -77,7 +77,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
@Override
@Override
public
String
step1
(
PerformanceStep1Param
step1Param
)
{
public
String
step1
(
PerformanceStep1Param
step1Param
)
{
String
result
;
String
result
;
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
String
merchantId
=
CurrentUtil
.
getCurrent
Slime
Uid
();
step1Param
.
setMerchantId
(
merchantId
);
step1Param
.
setMerchantId
(
merchantId
);
// 无 performancesId 则 创建
// 无 performancesId 则 创建
if
(
null
==
step1Param
.
getPerformancesId
())
{
if
(
null
==
step1Param
.
getPerformancesId
())
{
...
@@ -180,7 +180,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -180,7 +180,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
@Override
@Override
public
ResponseDto
<
PerformancePartnerVo
>
getStep1
(
String
performancesId
)
{
public
ResponseDto
<
PerformancePartnerVo
>
getStep1
(
String
performancesId
)
{
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
String
merchantId
=
CurrentUtil
.
getCurrent
Slime
Uid
();
PerformancePartnerVo
data
=
mongoSlimeUtils
.
getPerformancePartnerVo
(
performancesId
);
PerformancePartnerVo
data
=
mongoSlimeUtils
.
getPerformancePartnerVo
(
performancesId
);
if
(
data
==
null
)
{
if
(
data
==
null
)
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
20104
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
20104
));
...
@@ -204,7 +204,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -204,7 +204,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
@Override
@Override
public
ResponseDto
<
String
>
step2
(
PerformanceStep2Param
step2Param
)
{
public
ResponseDto
<
String
>
step2
(
PerformanceStep2Param
step2Param
)
{
ResponseDto
<
String
>
result
=
null
;
ResponseDto
<
String
>
result
=
null
;
step2Param
.
setMerchantId
(
CurrentUtil
.
getCurrentUid
());
step2Param
.
setMerchantId
(
CurrentUtil
.
getCurrent
Slime
Uid
());
// 无 performancesId 则 创建
// 无 performancesId 则 创建
if
(!
step2Param
.
getPerformancesId
().
isEmpty
())
{
// 获取 create 数据 status = 0 或 无数据 创建
if
(!
step2Param
.
getPerformancesId
().
isEmpty
())
{
// 获取 create 数据 status = 0 或 无数据 创建
KylinPerformanceVo
vo
=
redisSlimeUtils
.
getPerformanceVo
(
step2Param
.
getPerformancesId
());
KylinPerformanceVo
vo
=
redisSlimeUtils
.
getPerformanceVo
(
step2Param
.
getPerformancesId
());
...
@@ -497,7 +497,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -497,7 +497,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
@Override
@Override
public
ResponseDto
<
PerformanceStep2Param
>
getStep2
(
String
performancesId
)
{
public
ResponseDto
<
PerformanceStep2Param
>
getStep2
(
String
performancesId
)
{
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
String
merchantId
=
CurrentUtil
.
getCurrent
Slime
Uid
();
PerformancePartnerVo
data
=
mongoSlimeUtils
.
getPerformancePartnerVo
(
performancesId
);
PerformancePartnerVo
data
=
mongoSlimeUtils
.
getPerformancePartnerVo
(
performancesId
);
if
(
data
==
null
)
{
if
(
data
==
null
)
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
20104
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
20104
));
...
@@ -547,7 +547,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -547,7 +547,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
@Override
@Override
public
ResponseDto
<
String
>
onLinePerformance
(
String
performancesId
)
{
public
ResponseDto
<
String
>
onLinePerformance
(
String
performancesId
)
{
try
{
try
{
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
String
merchantId
=
CurrentUtil
.
getCurrent
Slime
Uid
();
// LinkedList<String> sqls = CollectionUtil.linkedListString();
// LinkedList<String> sqls = CollectionUtil.linkedListString();
// sqls.add(SqlMapping.get("kylin_performances_status.onLine"));
// sqls.add(SqlMapping.get("kylin_performances_status.onLine"));
// sqls.add(SqlMapping.get("kylin_ticket_status.onLine"));
// sqls.add(SqlMapping.get("kylin_ticket_status.onLine"));
...
@@ -606,7 +606,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -606,7 +606,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
@Override
@Override
public
ResponseDto
<
String
>
outLinePerformance
(
String
performancesId
)
{
public
ResponseDto
<
String
>
outLinePerformance
(
String
performancesId
)
{
try
{
try
{
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
String
merchantId
=
CurrentUtil
.
getCurrent
Slime
Uid
();
KylinPerformanceVo
vo
=
redisSlimeUtils
.
getPerformanceVo
(
performancesId
);
KylinPerformanceVo
vo
=
redisSlimeUtils
.
getPerformanceVo
(
performancesId
);
if
(!
mongoSlimeUtils
.
judgeIsPermission
(
performancesId
,
merchantId
,
new
String
[]{
if
(!
mongoSlimeUtils
.
judgeIsPermission
(
performancesId
,
merchantId
,
new
String
[]{
SlimeAuthorizationConst
.
PerformancePermission
.
LINE
.
getId
(),
SlimeAuthorizationConst
.
PerformancePermission
.
LINE
.
getId
(),
...
@@ -682,7 +682,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -682,7 +682,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
@Override
@Override
public
String
copyPerformance
(
String
performancesId
)
{
public
String
copyPerformance
(
String
performancesId
)
{
try
{
try
{
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
String
merchantId
=
CurrentUtil
.
getCurrent
Slime
Uid
();
PerformancePartnerVo
performancePartnerVo
=
mongoSlimeUtils
.
getPerformancePartnerVo
(
performancesId
);
PerformancePartnerVo
performancePartnerVo
=
mongoSlimeUtils
.
getPerformancePartnerVo
(
performancesId
);
//复制演出
//复制演出
performancePartnerVo
.
setPerformancesId
(
IDGenerator
.
nextSnowId
());
performancePartnerVo
.
setPerformancesId
(
IDGenerator
.
nextSnowId
());
...
@@ -722,7 +722,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -722,7 +722,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
@Override
@Override
public
ResponseDto
<
PageInfo
<
PerformancePartnerListDao
>>
getList
(
PerformancePartnerListParam
performancePartnerListParam
)
{
public
ResponseDto
<
PageInfo
<
PerformancePartnerListDao
>>
getList
(
PerformancePartnerListParam
performancePartnerListParam
)
{
performancePartnerListParam
.
setMerchantId
(
CurrentUtil
.
getCurrentUid
());
performancePartnerListParam
.
setMerchantId
(
CurrentUtil
.
getCurrent
Slime
Uid
());
int
status
=
performancePartnerListParam
.
getStatus
();
int
status
=
performancePartnerListParam
.
getStatus
();
int
page
=
performancePartnerListParam
.
getPage
()
-
1
;
int
page
=
performancePartnerListParam
.
getPage
()
-
1
;
int
size
=
performancePartnerListParam
.
getSize
();
int
size
=
performancePartnerListParam
.
getSize
();
...
@@ -784,7 +784,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -784,7 +784,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
@Override
@Override
public
ResponseDto
<
PageInfo
<
PerformancePartnerListDao
>>
getListFields
(
PerformancePartnerListParam
performancePartnerListParam
)
{
public
ResponseDto
<
PageInfo
<
PerformancePartnerListDao
>>
getListFields
(
PerformancePartnerListParam
performancePartnerListParam
)
{
performancePartnerListParam
.
setMerchantId
(
CurrentUtil
.
getCurrentUid
());
performancePartnerListParam
.
setMerchantId
(
CurrentUtil
.
getCurrent
Slime
Uid
());
PageInfo
<
PerformancePartnerListDao
>
pageInfoTmp
;
PageInfo
<
PerformancePartnerListDao
>
pageInfoTmp
;
try
{
try
{
PageHelper
.
startPage
(
performancePartnerListParam
.
getPage
(),
performancePartnerListParam
.
getSize
());
PageHelper
.
startPage
(
performancePartnerListParam
.
getPage
(),
performancePartnerListParam
.
getSize
());
...
@@ -816,7 +816,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -816,7 +816,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
@Override
@Override
public
ResponseDto
<
String
>
withdraw
(
String
performancesId
)
{
public
ResponseDto
<
String
>
withdraw
(
String
performancesId
)
{
try
{
try
{
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
String
merchantId
=
CurrentUtil
.
getCurrent
Slime
Uid
();
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
now
=
LocalDateTime
.
now
();
KylinPerformanceVo
vo
=
redisSlimeUtils
.
getPerformanceVo
(
performancesId
);
KylinPerformanceVo
vo
=
redisSlimeUtils
.
getPerformanceVo
(
performancesId
);
if
(!
mongoSlimeUtils
.
judgeIsPermission
(
performancesId
,
merchantId
,
new
String
[]{
if
(!
mongoSlimeUtils
.
judgeIsPermission
(
performancesId
,
merchantId
,
new
String
[]{
...
...
liquidnet-bus-service/liquidnet-service-slime/liquidnet-service-slime-impl/src/main/java/com/liquidnet/service/slime/service/impl/KylinTicketsPartnerServiceImpl.java
View file @
8a6bc964
...
@@ -364,7 +364,7 @@ public class KylinTicketsPartnerServiceImpl implements IKylinTicketsPartnerServi
...
@@ -364,7 +364,7 @@ public class KylinTicketsPartnerServiceImpl implements IKylinTicketsPartnerServi
public
ResponseDto
<
String
>
onLine
(
String
ticketsId
,
String
performancesId
)
{
public
ResponseDto
<
String
>
onLine
(
String
ticketsId
,
String
performancesId
)
{
try
{
try
{
LocalDateTime
updatedAt
=
LocalDateTime
.
now
();
LocalDateTime
updatedAt
=
LocalDateTime
.
now
();
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
String
merchantId
=
CurrentUtil
.
getCurrent
Slime
Uid
();
KylinPerformanceVo
vo
=
redisSlimeUtils
.
getPerformanceVo
(
performancesId
);
KylinPerformanceVo
vo
=
redisSlimeUtils
.
getPerformanceVo
(
performancesId
);
if
(!
mongoSlimeUtils
.
judgeIsPermission
(
performancesId
,
merchantId
,
new
String
[]{
if
(!
mongoSlimeUtils
.
judgeIsPermission
(
performancesId
,
merchantId
,
new
String
[]{
SlimeAuthorizationConst
.
PerformancePermission
.
EDIT
.
getId
(),
SlimeAuthorizationConst
.
PerformancePermission
.
EDIT
.
getId
(),
...
@@ -415,7 +415,7 @@ public class KylinTicketsPartnerServiceImpl implements IKylinTicketsPartnerServi
...
@@ -415,7 +415,7 @@ public class KylinTicketsPartnerServiceImpl implements IKylinTicketsPartnerServi
public
ResponseDto
<
String
>
outLine
(
String
ticketsId
,
String
performancesId
)
{
public
ResponseDto
<
String
>
outLine
(
String
ticketsId
,
String
performancesId
)
{
try
{
try
{
LocalDateTime
updatedAt
=
LocalDateTime
.
now
();
LocalDateTime
updatedAt
=
LocalDateTime
.
now
();
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
String
merchantId
=
CurrentUtil
.
getCurrent
Slime
Uid
();
KylinPerformanceVo
vo
=
redisSlimeUtils
.
getPerformanceVo
(
performancesId
);
KylinPerformanceVo
vo
=
redisSlimeUtils
.
getPerformanceVo
(
performancesId
);
if
(!
mongoSlimeUtils
.
judgeIsPermission
(
performancesId
,
merchantId
,
new
String
[]{
if
(!
mongoSlimeUtils
.
judgeIsPermission
(
performancesId
,
merchantId
,
new
String
[]{
SlimeAuthorizationConst
.
PerformancePermission
.
EDIT
.
getId
(),
SlimeAuthorizationConst
.
PerformancePermission
.
EDIT
.
getId
(),
...
...
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