Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
b07481d2
Commit
b07481d2
authored
Aug 02, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
0e5a177a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
16 deletions
+20
-16
AppUserDetailBiz.java
...m/github/wxiaoqi/security/admin/biz/AppUserDetailBiz.java
+6
-13
AppUserLoginBiz.java
...om/github/wxiaoqi/security/admin/biz/AppUserLoginBiz.java
+5
-0
BaseUserMemberBiz.java
.../github/wxiaoqi/security/admin/biz/BaseUserMemberBiz.java
+3
-3
AppUserLoginMapper.java
...hub/wxiaoqi/security/admin/mapper/AppUserLoginMapper.java
+2
-0
AppUserLoginMapper.xml
...ce-admin/src/main/resources/mapper/AppUserLoginMapper.xml
+4
-0
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserDetailBiz.java
View file @
b07481d2
...
...
@@ -106,19 +106,12 @@ public class AppUserDetailBiz extends BaseBiz<AppUserDetailMapper, AppUserDetail
}
Integer
userid
=
entity
.
getUserid
();
AppUserLogin
appUserLogin
=
new
AppUserLogin
();
if
(
StringUtils
.
isNotBlank
(
userVo
.
getWxOpenid
())){
appUserLogin
.
setWxOpenid
(
userVo
.
getWxOpenid
());
appUserLogin
.
setUnionid
(
userVo
.
getUnionid
());
}
if
(
StringUtils
.
isNotBlank
(
userVo
.
getOpenid
())){
appUserLogin
.
setOpenid
(
userVo
.
getOpenid
());
}
if
(
appUserLogin
!=
null
){
appUserLogin
.
setId
(
userid
);
appUserLogin
.
setUsername
(
userVo
.
getUsername
());
userLoginBiz
.
updateSelectiveById
(
appUserLogin
);
}
userLoginBiz
.
bindOpenid
(
appUserLogin
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserLoginBiz.java
View file @
b07481d2
...
...
@@ -48,6 +48,11 @@ public class AppUserLoginBiz extends BaseBiz<AppUserLoginMapper, AppUserLogin> {
super
.
updateSelectiveById
(
entity
);
}
@CacheClear
(
pre
=
"user{1.username}"
)
public
int
bindOpenid
(
AppUserLogin
entity
)
{
return
mapper
.
bindOpenId
(
entity
);
}
@CacheClear
(
pre
=
"user{1.username}"
)
public
void
updatePasswordById
(
AppUserLogin
entity
)
{
String
password
=
new
BCryptPasswordEncoder
(
UserConstant
.
PW_ENCORDER_SALT
).
encode
(
entity
.
getPassword
());
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/BaseUserMemberBiz.java
View file @
b07481d2
...
...
@@ -146,14 +146,14 @@ public class BaseUserMemberBiz extends BaseBiz<BaseUserMemberMapper, BaseUserMem
if
(
freeDays
>
0
&&
freeDays
>=
days
)
{
freeDays
=
freeDays
-
days
;
baseUserMember
.
setRentFreeDays
(
freeDays
);
}
Integer
payCount
=
userMemberVo
.
getPayCount
()
==
null
?
0
:
userMemberVo
.
getPayCount
();
if
(
days
>
0
)
{
/*
if (days > 0) {
payCount = payCount + 1;
}
}
*/
baseUserMember
.
setPayCount
(
payCount
);
getMyBiz
().
updateSelectiveById
(
baseUserMember
);
num
=
freeDays
;
}
}
else
if
(
type
==
2
)
{
/*Integer payCount=userMemberVo.getPayCount()==null?0:userMemberVo.getPayCount();
payCount=payCount+1;
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/mapper/AppUserLoginMapper.java
View file @
b07481d2
...
...
@@ -22,4 +22,6 @@ public interface AppUserLoginMapper extends Mapper<AppUserLogin>, SelectByIdList
void
updateLoginUserInfoById
(
@Param
(
"userId"
)
Integer
userId
,
@Param
(
"ip"
)
String
ip
,
@Param
(
"lastTime"
)
long
lastTime
);
List
<
AppUserLogin
>
selectbyPhones
(
@Param
(
"phones"
)
List
<
String
>
phones
);
int
bindOpenId
(
AppUserLogin
appUserLogin
);
}
\ No newline at end of file
ace-modules/ace-admin/src/main/resources/mapper/AppUserLoginMapper.xml
View file @
b07481d2
...
...
@@ -8,4 +8,8 @@
#{phone}
</foreach>
</select>
<update
id=
"bindOpenId"
parameterType=
"com.github.wxiaoqi.security.admin.entity.AppUserLogin"
>
UPDATE app_user_login SET wx_openid=#{wxOpenid},unionid=#{unionid},openid=#{openid} where id=#{id}
</update>
</mapper>
\ No newline at end of file
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