Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
涂亚平
/
subsidy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9ba5b0d1
authored
Dec 27, 2021
by
邓敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
passwordLogin接口字段优化
1 parent
ff37f499
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
3 deletions
src/main/java/com/subsidy/service/MemberService.java
src/main/java/com/subsidy/service/impl/MemberServiceImpl.java
src/main/java/com/subsidy/vo/member/MemberVO.java
src/main/java/com/subsidy/service/MemberService.java
View file @
9ba5b0d
...
@@ -16,6 +16,7 @@ import com.subsidy.vo.member.ContentVodNewVO;
...
@@ -16,6 +16,7 @@ import com.subsidy.vo.member.ContentVodNewVO;
import
com.subsidy.vo.member.GetAllVO
;
import
com.subsidy.vo.member.GetAllVO
;
import
com.subsidy.vo.member.GetStudyInfoVO
;
import
com.subsidy.vo.member.GetStudyInfoVO
;
import
com.subsidy.vo.member.MemberStudyPageVO
;
import
com.subsidy.vo.member.MemberStudyPageVO
;
import
com.subsidy.vo.member.MemberVO
;
import
com.subsidy.vo.paper.QueryPapersVO
;
import
com.subsidy.vo.paper.QueryPapersVO
;
import
java.util.List
;
import
java.util.List
;
...
@@ -40,7 +41,7 @@ public interface MemberService extends IService<MemberDO> {
...
@@ -40,7 +41,7 @@ public interface MemberService extends IService<MemberDO> {
UserRoleVO
login
(
VerifyCodeDTO
verifyCodeDTO
);
UserRoleVO
login
(
VerifyCodeDTO
verifyCodeDTO
);
Member
D
O
passwordLogin
(
PasswordLoginDTO
passwordLoginDTO
);
Member
V
O
passwordLogin
(
PasswordLoginDTO
passwordLoginDTO
);
String
updatePassword
(
MemberDO
memberDO
);
String
updatePassword
(
MemberDO
memberDO
);
...
...
src/main/java/com/subsidy/service/impl/MemberServiceImpl.java
View file @
9ba5b0d
...
@@ -47,6 +47,7 @@ import com.subsidy.vo.member.ContentVodVO;
...
@@ -47,6 +47,7 @@ import com.subsidy.vo.member.ContentVodVO;
import
com.subsidy.vo.member.GetAllVO
;
import
com.subsidy.vo.member.GetAllVO
;
import
com.subsidy.vo.member.GetStudyInfoVO
;
import
com.subsidy.vo.member.GetStudyInfoVO
;
import
com.subsidy.vo.member.MemberStudyPageVO
;
import
com.subsidy.vo.member.MemberStudyPageVO
;
import
com.subsidy.vo.member.MemberVO
;
import
com.subsidy.vo.member.MemberVodVO
;
import
com.subsidy.vo.member.MemberVodVO
;
import
com.subsidy.vo.member.StudyPageVO
;
import
com.subsidy.vo.member.StudyPageVO
;
import
com.subsidy.vo.paper.QueryPapersVO
;
import
com.subsidy.vo.paper.QueryPapersVO
;
...
@@ -300,7 +301,7 @@ public class MemberServiceImpl extends ServiceImpl<MemberMapper, MemberDO> imple
...
@@ -300,7 +301,7 @@ public class MemberServiceImpl extends ServiceImpl<MemberMapper, MemberDO> imple
return
userRoleVO
;
return
userRoleVO
;
}
}
public
Member
D
O
passwordLogin
(
PasswordLoginDTO
passwordLoginDTO
)
{
public
Member
V
O
passwordLogin
(
PasswordLoginDTO
passwordLoginDTO
)
{
/**
/**
* 先从redis里查
* 先从redis里查
*/
*/
...
@@ -319,13 +320,15 @@ public class MemberServiceImpl extends ServiceImpl<MemberMapper, MemberDO> imple
...
@@ -319,13 +320,15 @@ public class MemberServiceImpl extends ServiceImpl<MemberMapper, MemberDO> imple
}
}
if
(
memberDO
.
getPassword
().
equals
(
passwordLoginDTO
.
getPassword
())&&
1
==
memberDO
.
getFirstLogin
()&&
"冻结"
.
equals
(
memberDO
.
getStatus
())){
if
(
memberDO
.
getPassword
().
equals
(
passwordLoginDTO
.
getPassword
())&&
1
==
memberDO
.
getFirstLogin
()&&
"冻结"
.
equals
(
memberDO
.
getStatus
())){
MemberVO
memberVO
=
new
MemberVO
();
BeanUtils
.
copyProperties
(
memberDO
,
memberVO
);
OprMemDictDO
oprMemDictDO
=
new
OprMemDictDO
();
OprMemDictDO
oprMemDictDO
=
new
OprMemDictDO
();
oprMemDictDO
.
setUserId
(
memberDO
.
getId
());
oprMemDictDO
.
setUserId
(
memberDO
.
getId
());
oprMemDictDO
.
setOprType
(
"登录"
);
oprMemDictDO
.
setOprType
(
"登录"
);
oprMemDictDO
.
setResult
(
1
);
oprMemDictDO
.
setResult
(
1
);
oprMemDictDO
.
setCreateDate
(
LocalDateTime
.
now
());
oprMemDictDO
.
setCreateDate
(
LocalDateTime
.
now
());
redisUtil
.
set
(
RedisPrefixConstant
.
SUBSIDY_MEMBER_LOGIN_PREFIX
+
memberDO
.
getId
()
+
"_"
+
System
.
currentTimeMillis
(),
1
);
redisUtil
.
set
(
RedisPrefixConstant
.
SUBSIDY_MEMBER_LOGIN_PREFIX
+
memberDO
.
getId
()
+
"_"
+
System
.
currentTimeMillis
(),
1
);
return
member
D
O
;
return
member
V
O
;
}
else
{
}
else
{
if
(!
memberDO
.
getPassword
().
equals
(
passwordLoginDTO
.
getPassword
()))
{
if
(!
memberDO
.
getPassword
().
equals
(
passwordLoginDTO
.
getPassword
()))
{
OprMemDictDO
oprMemDictDO
=
new
OprMemDictDO
();
OprMemDictDO
oprMemDictDO
=
new
OprMemDictDO
();
...
...
src/main/java/com/subsidy/vo/member/MemberVO.java
0 → 100644
View file @
9ba5b0d
package
com
.
subsidy
.
vo
.
member
;
import
lombok.Data
;
@Data
public
class
MemberVO
{
private
Long
id
;
private
String
gender
;
private
String
telephone
;
private
String
userName
;
private
String
image
;
private
Integer
firstLogin
;
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment