Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
f2b7aadb
Commit
f2b7aadb
authored
May 19, 2020
by
xiaoguang.xu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'cleanCache' into baseEntity
parents
f59b7352
5ec6d230
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
11 deletions
+11
-11
UserAuthorizedServiceImpl.java
...oup/xyqb/service/auth/impl/UserAuthorizedServiceImpl.java
+2
-2
AddressServiceImpl.java
...quantgroup/xyqb/service/user/impl/AddressServiceImpl.java
+1
-1
ContactServiceImpl.java
...quantgroup/xyqb/service/user/impl/ContactServiceImpl.java
+1
-1
UserBtRegisterServiceImpl.java
...oup/xyqb/service/user/impl/UserBtRegisterServiceImpl.java
+1
-1
UserCenterServiceImpl.java
...ntgroup/xyqb/service/user/impl/UserCenterServiceImpl.java
+1
-1
UserExtInfoServiceImpl.java
...tgroup/xyqb/service/user/impl/UserExtInfoServiceImpl.java
+1
-1
UserServiceImpl.java
...cn/quantgroup/xyqb/service/user/impl/UserServiceImpl.java
+3
-3
UserSpouseServiceImpl.java
...ntgroup/xyqb/service/user/impl/UserSpouseServiceImpl.java
+1
-1
No files found.
src/main/java/cn/quantgroup/xyqb/service/auth/impl/UserAuthorizedServiceImpl.java
View file @
f2b7aadb
...
@@ -34,7 +34,7 @@ public class UserAuthorizedServiceImpl implements IUserAuthorizedService {
...
@@ -34,7 +34,7 @@ public class UserAuthorizedServiceImpl implements IUserAuthorizedService {
@Resource
@Resource
private
IUserRepository
userRepository
;
private
IUserRepository
userRepository
;
@Cacheable
(
value
=
"user_authorized_idno_cache"
,
key
=
"#idNo"
,
unless
=
"#result == false"
,
cacheManager
=
"cacheManager"
)
//
@Cacheable(value = "user_authorized_idno_cache", key = "#idNo", unless = "#result == false", cacheManager = "cacheManager")
@Override
@Override
public
Boolean
hasUserAuthorized
(
String
idNo
)
{
public
Boolean
hasUserAuthorized
(
String
idNo
)
{
try
{
try
{
...
@@ -92,7 +92,7 @@ public class UserAuthorizedServiceImpl implements IUserAuthorizedService {
...
@@ -92,7 +92,7 @@ public class UserAuthorizedServiceImpl implements IUserAuthorizedService {
}
}
}
}
@Cacheable
(
value
=
"user_authorized_uuid_2_id_cache"
,
key
=
"#userUuid"
,
unless
=
"#result == null"
,
cacheManager
=
"cacheManager"
)
//
@Cacheable(value = "user_authorized_uuid_2_id_cache", key = "#userUuid", unless = "#result == null", cacheManager = "cacheManager")
@Override
@Override
public
String
getUserAuthorizedId
(
String
userUuid
)
{
public
String
getUserAuthorizedId
(
String
userUuid
)
{
if
(
StringUtils
.
isBlank
(
userUuid
))
{
if
(
StringUtils
.
isBlank
(
userUuid
))
{
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/AddressServiceImpl.java
View file @
f2b7aadb
...
@@ -22,7 +22,7 @@ public class AddressServiceImpl implements IAddressService {
...
@@ -22,7 +22,7 @@ public class AddressServiceImpl implements IAddressService {
private
IAddressRepository
addressRepository
;
private
IAddressRepository
addressRepository
;
@Override
@Override
@Cacheable
(
value
=
"addresscache"
,
key
=
"'address' + #userId"
,
unless
=
"#result == null"
,
cacheManager
=
"cacheManager"
)
//
@Cacheable(value = "addresscache", key = "'address' + #userId", unless = "#result == null", cacheManager = "cacheManager")
public
Address
findByUserId
(
Long
userId
)
{
public
Address
findByUserId
(
Long
userId
)
{
return
addressRepository
.
findByUserId
(
userId
);
return
addressRepository
.
findByUserId
(
userId
);
}
}
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/ContactServiceImpl.java
View file @
f2b7aadb
...
@@ -28,7 +28,7 @@ public class ContactServiceImpl implements IContactService {
...
@@ -28,7 +28,7 @@ public class ContactServiceImpl implements IContactService {
private
IContactRepository
contactRepository
;
private
IContactRepository
contactRepository
;
@Override
@Override
@Cacheable
(
value
=
"contact"
,
key
=
"'contact:' + #trim + #userId"
,
unless
=
"#result == null or #result.size() == 0"
,
cacheManager
=
"cacheManager"
)
//
@Cacheable(value = "contact", key = "'contact:' + #trim + #userId", unless = "#result == null or #result.size() == 0", cacheManager = "cacheManager")
public
List
<
Contact
>
findByUserId
(
Long
userId
,
boolean
trim
)
{
public
List
<
Contact
>
findByUserId
(
Long
userId
,
boolean
trim
)
{
List
<
Contact
>
contacts
=
contactRepository
.
findByUserId
(
userId
);
List
<
Contact
>
contacts
=
contactRepository
.
findByUserId
(
userId
);
if
(
trim
)
{
if
(
trim
)
{
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserBtRegisterServiceImpl.java
View file @
f2b7aadb
...
@@ -20,7 +20,7 @@ public class UserBtRegisterServiceImpl implements IUserBtRegisterService {
...
@@ -20,7 +20,7 @@ public class UserBtRegisterServiceImpl implements IUserBtRegisterService {
private
IUserBtRegisterRepository
userBtRegisterRepository
;
private
IUserBtRegisterRepository
userBtRegisterRepository
;
@Override
@Override
@Cacheable
(
value
=
"btRegisterCache"
,
key
=
"'userId' + #userId"
,
unless
=
"#result == null"
,
cacheManager
=
"cacheManager"
)
//
@Cacheable(value = "btRegisterCache", key = "'userId' + #userId", unless = "#result == null", cacheManager = "cacheManager")
public
UserBtRegister
findByUserId
(
Long
userId
)
{
public
UserBtRegister
findByUserId
(
Long
userId
)
{
if
(
null
!=
userId
)
{
if
(
null
!=
userId
)
{
return
userBtRegisterRepository
.
findOne
((
root
,
query
,
cb
)
->
{
return
userBtRegisterRepository
.
findOne
((
root
,
query
,
cb
)
->
{
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserCenterServiceImpl.java
View file @
f2b7aadb
...
@@ -28,7 +28,7 @@ public class UserCenterServiceImpl implements UserCenterService {
...
@@ -28,7 +28,7 @@ public class UserCenterServiceImpl implements UserCenterService {
private
IUserAttachedRepository
userAttachedRepository
;
private
IUserAttachedRepository
userAttachedRepository
;
@Override
@Override
@Cacheable
(
value
=
"userAttachedCache"
,
key
=
"'xyqbUserAttached' + #userId"
,
unless
=
"#result == null"
,
cacheManager
=
"cacheManager"
)
//
@Cacheable(value = "userAttachedCache", key = "'xyqbUserAttached' + #userId", unless = "#result == null", cacheManager = "cacheManager")
public
UserAttached
searchUserAttachedByUserId
(
long
userId
)
{
public
UserAttached
searchUserAttachedByUserId
(
long
userId
)
{
return
userAttachedRepository
.
findByUserId
(
userId
);
return
userAttachedRepository
.
findByUserId
(
userId
);
}
}
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserExtInfoServiceImpl.java
View file @
f2b7aadb
...
@@ -21,7 +21,7 @@ public class UserExtInfoServiceImpl implements IUserExtInfoService {
...
@@ -21,7 +21,7 @@ public class UserExtInfoServiceImpl implements IUserExtInfoService {
private
IUserExtInfoRepository
userExtInfoRepository
;
private
IUserExtInfoRepository
userExtInfoRepository
;
@Override
@Override
@Cacheable
(
value
=
"userextinfocache"
,
key
=
"'extinfo' + #userId"
,
unless
=
"#result == null"
,
cacheManager
=
"cacheManager"
)
//
@Cacheable(value = "userextinfocache", key = "'extinfo' + #userId", unless = "#result == null", cacheManager = "cacheManager")
public
UserExtInfo
findByUserId
(
Long
userId
)
{
public
UserExtInfo
findByUserId
(
Long
userId
)
{
return
userExtInfoRepository
.
findByUserId
(
userId
);
return
userExtInfoRepository
.
findByUserId
(
userId
);
}
}
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserServiceImpl.java
View file @
f2b7aadb
...
@@ -82,7 +82,7 @@ public class UserServiceImpl implements IUserService, IBaseController {
...
@@ -82,7 +82,7 @@ public class UserServiceImpl implements IUserService, IBaseController {
private
IContactService
contactService
;
private
IContactService
contactService
;
@Override
@Override
@Cacheable
(
value
=
"usercache"
,
key
=
"'xyqbuser' + #phone"
,
unless
=
"#result == null"
,
cacheManager
=
"cacheManager"
)
//
@Cacheable(value = "usercache", key = "'xyqbuser' + #phone", unless = "#result == null", cacheManager = "cacheManager")
public
User
findByPhoneInDb
(
String
phone
)
{
public
User
findByPhoneInDb
(
String
phone
)
{
return
userRepository
.
findByPhoneNo
(
phone
);
return
userRepository
.
findByPhoneNo
(
phone
);
}
}
...
@@ -136,13 +136,13 @@ public class UserServiceImpl implements IUserService, IBaseController {
...
@@ -136,13 +136,13 @@ public class UserServiceImpl implements IUserService, IBaseController {
}
}
@Override
@Override
@Cacheable
(
value
=
"usercache"
,
key
=
"'xyqbuser' + #phone"
,
unless
=
"#result == null"
,
cacheManager
=
"cacheManager"
)
//
@Cacheable(value = "usercache", key = "'xyqbuser' + #phone", unless = "#result == null", cacheManager = "cacheManager")
public
User
findByPhoneWithCache
(
String
phone
)
{
public
User
findByPhoneWithCache
(
String
phone
)
{
return
userRepository
.
findByPhoneNo
(
phone
);
return
userRepository
.
findByPhoneNo
(
phone
);
}
}
@Override
@Override
@Cacheable
(
value
=
"usercache"
,
key
=
"'xyqbuser' + #uuid"
,
unless
=
"#result == null"
,
cacheManager
=
"cacheManager"
)
//
@Cacheable(value = "usercache", key = "'xyqbuser' + #uuid", unless = "#result == null", cacheManager = "cacheManager")
public
User
findByUuidWithCache
(
String
uuid
)
{
public
User
findByUuidWithCache
(
String
uuid
)
{
return
userRepository
.
findByUuid
(
uuid
);
return
userRepository
.
findByUuid
(
uuid
);
}
}
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserSpouseServiceImpl.java
View file @
f2b7aadb
...
@@ -15,7 +15,7 @@ public class UserSpouseServiceImpl implements IUserSpouseService {
...
@@ -15,7 +15,7 @@ public class UserSpouseServiceImpl implements IUserSpouseService {
private
IUserSpouseRepository
userSpouseRepository
;
private
IUserSpouseRepository
userSpouseRepository
;
@Override
@Override
@Cacheable
(
value
=
"userSpouseCache"
,
key
=
"'spouse' + #userId"
,
unless
=
"#result == null"
,
cacheManager
=
"cacheManager"
)
//
@Cacheable(value = "userSpouseCache", key = "'spouse' + #userId", unless = "#result == null", cacheManager = "cacheManager")
public
UserSpouse
findByUserId
(
Long
userId
)
{
public
UserSpouse
findByUserId
(
Long
userId
)
{
return
userSpouseRepository
.
findByUserId
(
userId
);
return
userSpouseRepository
.
findByUserId
(
userId
);
}
}
...
...
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