Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
relation
Commits
dfb83adc
Commit
dfb83adc
authored
Aug 10, 2025
by
wujipeng
Browse files
updateMerchantToPerson优化
parent
d2d240da
Changes
3
Show whitespace changes
Inline
Side-by-side
src/main/java/com/platform/service/UserService.java
View file @
dfb83adc
...
@@ -33,7 +33,7 @@ public interface UserService extends IService<UserEntity> {
...
@@ -33,7 +33,7 @@ public interface UserService extends IService<UserEntity> {
Boolean
delete
(
String
userName
);
Boolean
delete
(
String
userName
);
UserEntity
getByUserName
(
String
newName
);
UserEntity
getByUserName
(
String
newName
,
int
caseId
);
List
<
String
>
queryListByCaseId
(
Integer
id
);
List
<
String
>
queryListByCaseId
(
Integer
id
);
...
...
src/main/java/com/platform/service/impl/CaseServiceImpl.java
View file @
dfb83adc
...
@@ -435,7 +435,7 @@ public class CaseServiceImpl extends ServiceImpl<CaseMapper, CasesEntity> implem
...
@@ -435,7 +435,7 @@ public class CaseServiceImpl extends ServiceImpl<CaseMapper, CasesEntity> implem
excelDataService
.
updateBatchById
(
excelDataEntityList
);
excelDataService
.
updateBatchById
(
excelDataEntityList
);
}
}
//格局新名查看用户数据
//格局新名查看用户数据
UserEntity
userEntity
=
userService
.
getByUserName
(
userDTO
.
get
NewName
());
UserEntity
userEntity
=
userService
.
getByUserName
(
userDTO
.
get
OldName
(),
userDTO
.
getCaseId
());
if
(
userEntity
==
null
)
{
if
(
userEntity
==
null
)
{
//新增用户
//新增用户
userEntity
=
new
UserEntity
();
userEntity
=
new
UserEntity
();
...
@@ -445,7 +445,11 @@ public class CaseServiceImpl extends ServiceImpl<CaseMapper, CasesEntity> implem
...
@@ -445,7 +445,11 @@ public class CaseServiceImpl extends ServiceImpl<CaseMapper, CasesEntity> implem
userEntity
.
setBasicInfo
(
userDTO
.
getBasicInfo
());
userEntity
.
setBasicInfo
(
userDTO
.
getBasicInfo
());
userEntity
.
setAge
(
userDTO
.
getAge
());
userEntity
.
setAge
(
userDTO
.
getAge
());
userEntity
.
setCaseId
(
userDTO
.
getCaseId
());
userEntity
.
setCaseId
(
userDTO
.
getCaseId
());
userEntity
.
setType
(
"1"
);
userService
.
save
(
userEntity
);
userService
.
save
(
userEntity
);
}
else
{
userEntity
.
setType
(
"1"
);
userService
.
updateById
(
userEntity
);
}
}
return
false
;
return
false
;
}
}
...
...
src/main/java/com/platform/service/impl/UserServiceImpl.java
View file @
dfb83adc
...
@@ -270,9 +270,11 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> impleme
...
@@ -270,9 +270,11 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> impleme
}
}
@Override
@Override
public
UserEntity
getByUserName
(
String
newName
)
{
public
UserEntity
getByUserName
(
String
newName
,
int
caseId
)
{
return
baseMapper
.
selectOne
(
new
LambdaQueryWrapper
<
UserEntity
>()
return
baseMapper
.
selectOne
(
new
LambdaQueryWrapper
<
UserEntity
>()
.
eq
(
UserEntity:
:
getUserName
,
newName
));
.
eq
(
UserEntity:
:
getUserName
,
newName
)
.
eq
(
UserEntity:
:
getCaseId
,
caseId
)
);
}
}
@Override
@Override
...
...
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