Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-api
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
李伟
cust-api
Commits
2cf78f99
Commit
2cf78f99
authored
Jan 13, 2025
by
gaoyingwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 根据openId修改会员表
parent
81bfdfb9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
5 deletions
+19
-5
AppMemInfoController.java
...isoft/app/appMemInfo/controller/AppMemInfoController.java
+3
-3
MemInfoRepository.java
...a/org/rcisoft/business/memInfo/dao/MemInfoRepository.java
+7
-0
MemInfoServiceImpl.java
...oft/business/memInfo/service/impl/MemInfoServiceImpl.java
+4
-2
MemInfoMapper.xml
...esources/mapper/business/memInfo/mapper/MemInfoMapper.xml
+5
-0
No files found.
src/main/java/org/rcisoft/app/appMemInfo/controller/AppMemInfoController.java
View file @
2cf78f99
...
...
@@ -263,10 +263,10 @@ public class AppMemInfoController extends CyPaginationController<MemInfo> {
@CyOpeLogAnno
(
title
=
"system-会员表管理-修改会员表"
,
businessType
=
CyLogTypeEnum
.
UPDATE
)
@Operation
(
summary
=
"修改会员表"
,
description
=
"修改会员表"
)
@Parameters
({
@Parameter
(
name
=
"businessId"
,
description
=
"businessId"
,
required
=
false
,
schema
=
@Schema
(
type
=
"string"
))})
@PutMapping
(
"/memInfo/update/{
user
Id:\\w+}"
)
@PutMapping
(
"/memInfo/update/{
open
Id:\\w+}"
)
@CyEncryptSm4Anno
public
CyResult
update
(
@PathVariable
int
user
Id
,
@RequestBody
MemInfo
memInfo
,
BindingResult
bindingResult
)
{
memInfo
.
set
UserId
(
user
Id
);
public
CyResult
update
(
@PathVariable
String
open
Id
,
@RequestBody
MemInfo
memInfo
,
BindingResult
bindingResult
)
{
memInfo
.
set
WxOpenid
(
open
Id
);
CyPersistModel
data
=
memInfoServiceImpl
.
update
(
memInfo
);
return
CyResultGenUtil
.
builder
(
data
,
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
...
...
src/main/java/org/rcisoft/business/memInfo/dao/MemInfoRepository.java
View file @
2cf78f99
...
...
@@ -92,5 +92,12 @@ public interface MemInfoRepository extends CyBaseMapper<MemInfo> {
* @return
*/
MemInfo
getInfoByUserId
(
String
userId
);
/**
* 根据openid查询用户信息
* @param businessId
* @return
*/
MemInfo
selectByOpenId
(
String
openId
);
}
src/main/java/org/rcisoft/business/memInfo/service/impl/MemInfoServiceImpl.java
View file @
2cf78f99
...
...
@@ -486,11 +486,13 @@ public class MemInfoServiceImpl extends ServiceImpl<MemInfoRepository,MemInfo>
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
isolation
=
Isolation
.
DEFAULT
)
@Override
public
CyPersistModel
update
(
MemInfo
memInfo
){
MemInfo
info
=
baseMapper
.
selectByOpenId
(
memInfo
.
getWxOpenid
());
//手机号、身份证存储加密
if
(
StringUtils
.
isNotBlank
(
memInfo
.
getMemPhone
()))
memInfo
.
setMemPhone
(
CyAESUtils
.
encrypt
(
memInfo
.
getMemPhone
()));
memInfo
.
setMemIdcard
(
null
);
memInfo
.
setMemRealName
(
null
);
memInfo
.
setMemIdcard
(
info
.
getMemIdcard
());
memInfo
.
setMemRealName
(
info
.
getMemRealName
());
memInfo
.
setBusinessId
(
info
.
getBusinessId
());
//身份证、手机号验重
SysUserRbacDTO
sysUserRbacDTO
=
baseMapper
.
checkPhoneRepeat
(
memInfo
.
getUserId
(),
memInfo
.
getMemPhone
());
if
(
sysUserRbacDTO
!=
null
)
{
...
...
src/main/resources/mapper/business/memInfo/mapper/MemInfoMapper.xml
View file @
2cf78f99
...
...
@@ -494,5 +494,10 @@
select * from mem_info where user_id = #{userId} and del_flag = 0
</select>
<select
id=
"selectByOpenId"
resultType=
"org.rcisoft.business.memInfo.entity.MemInfo"
parameterType=
"java.lang.String"
>
select * from mem_info where wx_openid = #{openId} and del_flag = 0
</select>
</mapper>
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