Toggle navigation
Toggle navigation
This project
Loading...
Sign in
YOHOBUY
/
yohobuy-union
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
jianhui_wang
8 years ago
Commit
04a41ac5d89de9a3f2ec6199b316592a2532c12b
1 parent
c4fd8d8f
no message
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
server/src/main/java/com/yoho/unions/server/service/impl/UserInfoImportServiceImpl.java
server/src/main/java/com/yoho/unions/server/service/impl/UserRegisterBuyInfoserviceImpl.java
server/src/main/java/com/yoho/unions/server/service/impl/UserInfoImportServiceImpl.java
View file @
04a41ac
...
...
@@ -80,14 +80,14 @@ public class UserInfoImportServiceImpl implements IBusinessImportService {
UserRegisterBuyInfoBO
UserRegisterBuyInfoBO_id
=
new
UserRegisterBuyInfoBO
();
if
(
userProfile
==
null
)
{
UserRegisterBuyInfoBO_id
.
setId
(
i
+
1
);
UserRegisterBuyInfoBO_id
.
setMobile
(
mobile
==
null
?
""
:
mobile
);
UserRegisterBuyInfoBO_id
.
setMobile
(
mobile
);
UserRegisterBuyInfoBO_id
.
setRegister
(
"未注册"
);
UserRegisterBuyInfoBO_id
.
setUid
(
uid
<=
0
?
0
:
uid
);
UserRegisterBuyInfoBO_id
.
setRegisterTime
(
"0"
);
UserRegisterBuyInfoBO_id
.
setBuy
(
"未购买"
);
}
else
{
UserRegisterBuyInfoBO_id
.
setId
(
i
+
1
);
UserRegisterBuyInfoBO_id
.
setMobile
(
mobile
!=
null
?
mobile:
userProfile
.
getMobile
().
substring
(
0
,
3
)
+
" **** "
+
userProfile
.
getMobile
().
substring
(
7
)
);
UserRegisterBuyInfoBO_id
.
setMobile
(
mobile
==
""
?
userProfile
.
getMobile
().
substring
(
0
,
3
)
+
" **** "
+
userProfile
.
getMobile
().
substring
(
7
):
mobile
);
UserRegisterBuyInfoBO_id
.
setRegister
(
"已注册"
);
UserRegisterBuyInfoBO_id
.
setUid
(
userProfile
.
getUid
());
UserRegisterBuyInfoBO_id
.
setRegisterTime
(
DateUtils
.
getDateString
(
userProfile
.
getCreateTime
()));
...
...
@@ -105,7 +105,7 @@ public class UserInfoImportServiceImpl implements IBusinessImportService {
String
ListKey
=
"userRegisterBuyListKey"
;
/**
* 清缓存
*/
*/
redisTemplate
.
delete
(
ListKey
);
redisListCache
.
rightPushAll
(
ListKey
,
userRegisterBuyList
,
120
,
TimeUnit
.
MINUTES
);
...
...
server/src/main/java/com/yoho/unions/server/service/impl/UserRegisterBuyInfoserviceImpl.java
View file @
04a41ac
...
...
@@ -45,7 +45,6 @@ public class UserRegisterBuyInfoserviceImpl implements IUserRegisterBuyInfoServi
List
<
UserRegisterBuyInfoBO
>
userInfoList
=
new
ArrayList
<>();
List
<
UserRegisterBuyInfoBO
>
getuserInfoList
=
new
ArrayList
<>();
UserRegisterBuyInfoBO
UserRegisterBuyInfoBO
=
new
UserRegisterBuyInfoBO
();
//从redis获取结果数据
String
ListKey
=
"userRegisterBuyListKey"
;
userInfoList
=
redisListCache
.
range
(
ListKey
,
UserRegisterBuyInfoBO
.
class
,
0
,
-
1
);
...
...
@@ -79,7 +78,6 @@ public class UserRegisterBuyInfoserviceImpl implements IUserRegisterBuyInfoServi
}
}
}
page
.
setPage_total
(
1
);
page
.
setTotal
(
getuserInfoList
.
size
());
page
.
setPageSize
(
getuserInfoList
.
size
());
...
...
Please
register
or
login
to post a comment