记得上下班打卡 | 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
f1fef01b
Commit
f1fef01b
authored
Nov 19, 2021
by
Tice
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a90b885e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
2 deletions
+47
-2
MerchantRedisUtil.java
...ient/admin/zhengzai/merchant/utils/MerchantRedisUtil.java
+12
-0
MerchantRdmService.java
...iquidnet/service/merchant/service/MerchantRdmService.java
+12
-0
MerchantFieldsServiceImpl.java
...vice/merchant/service/impl/MerchantFieldsServiceImpl.java
+16
-1
MerchantSponsorsServiceImpl.java
...ce/merchant/service/impl/MerchantSponsorsServiceImpl.java
+7
-1
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/merchant/utils/MerchantRedisUtil.java
View file @
f1fef01b
...
@@ -23,6 +23,9 @@ public class MerchantRedisUtil {
...
@@ -23,6 +23,9 @@ public class MerchantRedisUtil {
// 【场地】获取详情
// 【场地】获取详情
public
MerchantFieldsVo
getFieldsVoByFieldId
(
String
fieldId
)
{
public
MerchantFieldsVo
getFieldsVoByFieldId
(
String
fieldId
)
{
if
(
null
==
fieldId
||
fieldId
.
isEmpty
())
{
return
null
;
}
String
key
=
MerchantRedisConst
.
INFO_FIELD
.
concat
(
fieldId
);
String
key
=
MerchantRedisConst
.
INFO_FIELD
.
concat
(
fieldId
);
long
s
=
System
.
currentTimeMillis
();
long
s
=
System
.
currentTimeMillis
();
MerchantFieldsVo
vo
=
(
MerchantFieldsVo
)
redisUtil
.
get
(
key
);
MerchantFieldsVo
vo
=
(
MerchantFieldsVo
)
redisUtil
.
get
(
key
);
...
@@ -42,6 +45,9 @@ public class MerchantRedisUtil {
...
@@ -42,6 +45,9 @@ public class MerchantRedisUtil {
// 【场地申请】我的列表
// 【场地申请】我的列表
public
List
<
MerchantFieldAppliesVo
>
getFieldAppliesVosByUid
(
String
uid
)
{
public
List
<
MerchantFieldAppliesVo
>
getFieldAppliesVosByUid
(
String
uid
)
{
if
(
null
==
uid
||
uid
.
isEmpty
())
{
return
null
;
}
String
key
=
MerchantRedisConst
.
INFO_FIELD_APPLIES
.
concat
(
uid
);
String
key
=
MerchantRedisConst
.
INFO_FIELD_APPLIES
.
concat
(
uid
);
long
s
=
System
.
currentTimeMillis
();
long
s
=
System
.
currentTimeMillis
();
List
<
MerchantFieldAppliesVo
>
vos
=
(
List
<
MerchantFieldAppliesVo
>)
redisUtil
.
get
(
key
);
List
<
MerchantFieldAppliesVo
>
vos
=
(
List
<
MerchantFieldAppliesVo
>)
redisUtil
.
get
(
key
);
...
@@ -121,6 +127,9 @@ public class MerchantRedisUtil {
...
@@ -121,6 +127,9 @@ public class MerchantRedisUtil {
// 【主办】详情
// 【主办】详情
public
MerchantSponsorsVo
getSponsorsVoBySponsorId
(
String
sponsorId
)
{
public
MerchantSponsorsVo
getSponsorsVoBySponsorId
(
String
sponsorId
)
{
if
(
null
==
sponsorId
||
sponsorId
.
isEmpty
())
{
return
null
;
}
String
key
=
MerchantRedisConst
.
INFO_SPONSOR
.
concat
(
sponsorId
);
String
key
=
MerchantRedisConst
.
INFO_SPONSOR
.
concat
(
sponsorId
);
long
s
=
System
.
currentTimeMillis
();
long
s
=
System
.
currentTimeMillis
();
MerchantSponsorsVo
vo
=
(
MerchantSponsorsVo
)
redisUtil
.
get
(
key
);
MerchantSponsorsVo
vo
=
(
MerchantSponsorsVo
)
redisUtil
.
get
(
key
);
...
@@ -139,6 +148,9 @@ public class MerchantRedisUtil {
...
@@ -139,6 +148,9 @@ public class MerchantRedisUtil {
// 【主办申请】我的列表
// 【主办申请】我的列表
public
List
<
MerchantSponsorAppliesVo
>
getSponsorAppliesVosByUid
(
String
uid
)
{
public
List
<
MerchantSponsorAppliesVo
>
getSponsorAppliesVosByUid
(
String
uid
)
{
if
(
null
==
uid
||
uid
.
isEmpty
())
{
return
null
;
}
String
key
=
MerchantRedisConst
.
INFO_SPONSOR_APPLIES
.
concat
(
uid
);
String
key
=
MerchantRedisConst
.
INFO_SPONSOR_APPLIES
.
concat
(
uid
);
long
s
=
System
.
currentTimeMillis
();
long
s
=
System
.
currentTimeMillis
();
List
<
MerchantSponsorAppliesVo
>
vos
=
(
List
<
MerchantSponsorAppliesVo
>)
redisUtil
.
get
(
key
);
List
<
MerchantSponsorAppliesVo
>
vos
=
(
List
<
MerchantSponsorAppliesVo
>)
redisUtil
.
get
(
key
);
...
...
liquidnet-bus-service/liquidnet-service-merchant/liquidnet-service-merchant-impl/src/main/java/com/liquidnet/service/merchant/service/MerchantRdmService.java
View file @
f1fef01b
...
@@ -23,6 +23,9 @@ public class MerchantRdmService {
...
@@ -23,6 +23,9 @@ public class MerchantRdmService {
// 【场地】获取详情
// 【场地】获取详情
public
MerchantFieldsVo
getFieldsVoByFieldId
(
String
fieldId
)
{
public
MerchantFieldsVo
getFieldsVoByFieldId
(
String
fieldId
)
{
if
(
null
==
fieldId
||
fieldId
.
isEmpty
())
{
return
null
;
}
String
key
=
MerchantRedisConst
.
INFO_FIELD
.
concat
(
fieldId
);
String
key
=
MerchantRedisConst
.
INFO_FIELD
.
concat
(
fieldId
);
long
s
=
System
.
currentTimeMillis
();
long
s
=
System
.
currentTimeMillis
();
MerchantFieldsVo
vo
=
(
MerchantFieldsVo
)
redisUtil
.
get
(
key
);
MerchantFieldsVo
vo
=
(
MerchantFieldsVo
)
redisUtil
.
get
(
key
);
...
@@ -42,6 +45,9 @@ public class MerchantRdmService {
...
@@ -42,6 +45,9 @@ public class MerchantRdmService {
// 【场地申请】我的列表
// 【场地申请】我的列表
public
List
<
MerchantFieldAppliesVo
>
getFieldAppliesVosByUid
(
String
uid
)
{
public
List
<
MerchantFieldAppliesVo
>
getFieldAppliesVosByUid
(
String
uid
)
{
if
(
null
==
uid
||
uid
.
isEmpty
())
{
return
null
;
}
String
key
=
MerchantRedisConst
.
INFO_FIELD_APPLIES
.
concat
(
uid
);
String
key
=
MerchantRedisConst
.
INFO_FIELD_APPLIES
.
concat
(
uid
);
long
s
=
System
.
currentTimeMillis
();
long
s
=
System
.
currentTimeMillis
();
List
<
MerchantFieldAppliesVo
>
vos
=
(
List
<
MerchantFieldAppliesVo
>)
redisUtil
.
get
(
key
);
List
<
MerchantFieldAppliesVo
>
vos
=
(
List
<
MerchantFieldAppliesVo
>)
redisUtil
.
get
(
key
);
...
@@ -101,6 +107,9 @@ public class MerchantRdmService {
...
@@ -101,6 +107,9 @@ public class MerchantRdmService {
// 【主办】详情
// 【主办】详情
public
MerchantSponsorsVo
getSponsorsVoBySponsorId
(
String
sponsorId
)
{
public
MerchantSponsorsVo
getSponsorsVoBySponsorId
(
String
sponsorId
)
{
if
(
null
==
sponsorId
||
sponsorId
.
isEmpty
())
{
return
null
;
}
String
key
=
MerchantRedisConst
.
INFO_SPONSOR
.
concat
(
sponsorId
);
String
key
=
MerchantRedisConst
.
INFO_SPONSOR
.
concat
(
sponsorId
);
long
s
=
System
.
currentTimeMillis
();
long
s
=
System
.
currentTimeMillis
();
MerchantSponsorsVo
vo
=
(
MerchantSponsorsVo
)
redisUtil
.
get
(
key
);
MerchantSponsorsVo
vo
=
(
MerchantSponsorsVo
)
redisUtil
.
get
(
key
);
...
@@ -119,6 +128,9 @@ public class MerchantRdmService {
...
@@ -119,6 +128,9 @@ public class MerchantRdmService {
// 【主办申请】我的列表
// 【主办申请】我的列表
public
List
<
MerchantSponsorAppliesVo
>
getSponsorAppliesVosByUid
(
String
uid
)
{
public
List
<
MerchantSponsorAppliesVo
>
getSponsorAppliesVosByUid
(
String
uid
)
{
if
(
null
==
uid
||
uid
.
isEmpty
())
{
return
null
;
}
String
key
=
MerchantRedisConst
.
INFO_SPONSOR_APPLIES
.
concat
(
uid
);
String
key
=
MerchantRedisConst
.
INFO_SPONSOR_APPLIES
.
concat
(
uid
);
long
s
=
System
.
currentTimeMillis
();
long
s
=
System
.
currentTimeMillis
();
List
<
MerchantSponsorAppliesVo
>
vos
=
(
List
<
MerchantSponsorAppliesVo
>)
redisUtil
.
get
(
key
);
List
<
MerchantSponsorAppliesVo
>
vos
=
(
List
<
MerchantSponsorAppliesVo
>)
redisUtil
.
get
(
key
);
...
...
liquidnet-bus-service/liquidnet-service-merchant/liquidnet-service-merchant-impl/src/main/java/com/liquidnet/service/merchant/service/impl/MerchantFieldsServiceImpl.java
View file @
f1fef01b
...
@@ -59,7 +59,22 @@ public class MerchantFieldsServiceImpl implements IMerchantFieldsService {
...
@@ -59,7 +59,22 @@ public class MerchantFieldsServiceImpl implements IMerchantFieldsService {
// 分页
// 分页
PagedResult
<
MerchantFieldsVo
>
pagedResult
=
ObjectUtil
.
getMerchantFieldsVoPagedResult
();
PagedResult
<
MerchantFieldsVo
>
pagedResult
=
ObjectUtil
.
getMerchantFieldsVoPagedResult
();
if
(
count
>
0
)
{
if
(
count
>
0
)
{
query
.
fields
().
include
(
"fieldId"
).
include
(
"isOnline"
).
include
(
"claimStatus"
).
include
(
"name"
).
include
(
"uid"
).
include
(
"isCheck"
);
query
.
fields
()
.
include
(
"fieldId"
)
.
include
(
"isOnline"
)
.
include
(
"claimStatus"
)
.
include
(
"uid"
)
.
include
(
"isCheck"
)
.
include
(
"name"
)
.
include
(
"logo"
)
.
include
(
"background"
)
.
include
(
"provinceId"
)
.
include
(
"provinceName"
)
.
include
(
"cityId"
)
.
include
(
"cityName"
)
.
include
(
"districtId"
)
.
include
(
"districtName"
)
.
include
(
"address"
);
// 查询分页
// 查询分页
Pageable
pageable
=
PageRequest
.
of
(
page
-
1
,
size
,
Sort
.
by
(
Sort
.
Direction
.
DESC
,
"createdAt"
));
Pageable
pageable
=
PageRequest
.
of
(
page
-
1
,
size
,
Sort
.
by
(
Sort
.
Direction
.
DESC
,
"createdAt"
));
...
...
liquidnet-bus-service/liquidnet-service-merchant/liquidnet-service-merchant-impl/src/main/java/com/liquidnet/service/merchant/service/impl/MerchantSponsorsServiceImpl.java
View file @
f1fef01b
...
@@ -44,7 +44,13 @@ public class MerchantSponsorsServiceImpl implements IMerchantSponsorsService {
...
@@ -44,7 +44,13 @@ public class MerchantSponsorsServiceImpl implements IMerchantSponsorsService {
// 分页
// 分页
PagedResult
<
MerchantSponsorsVo
>
pagedResult
=
ObjectUtil
.
getMerchantSponsorsVoPagedResult
();
PagedResult
<
MerchantSponsorsVo
>
pagedResult
=
ObjectUtil
.
getMerchantSponsorsVoPagedResult
();
if
(
count
>
0
)
{
if
(
count
>
0
)
{
query
.
fields
().
include
(
"sponsorId"
).
include
(
"isOnline"
).
include
(
"name"
).
include
(
"uid"
);
query
.
fields
()
.
include
(
"sponsorId"
)
.
include
(
"isOnline"
)
.
include
(
"uid"
)
.
include
(
"name"
)
.
include
(
"logo"
)
.
include
(
"background"
);
// 查询分页
// 查询分页
Pageable
pageable
=
PageRequest
.
of
(
page
-
1
,
size
,
Sort
.
by
(
Sort
.
Direction
.
DESC
,
"createdAt"
));
Pageable
pageable
=
PageRequest
.
of
(
page
-
1
,
size
,
Sort
.
by
(
Sort
.
Direction
.
DESC
,
"createdAt"
));
...
...
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