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
f2662ffb
Commit
f2662ffb
authored
Aug 06, 2025
by
zhuxiang
Browse files
数据库配置切换
parent
45bd2ad2
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/platform/service/impl/GroupDetailServiceImpl.java
View file @
f2662ffb
...
@@ -27,8 +27,12 @@ public class GroupDetailServiceImpl extends ServiceImpl<GroupDetailMapper, Group
...
@@ -27,8 +27,12 @@ public class GroupDetailServiceImpl extends ServiceImpl<GroupDetailMapper, Group
@Override
@Override
public
List
<
GroupDetailEntity
>
queryList
(
GroupDetailDTO
groupDetailDTO
)
{
public
List
<
GroupDetailEntity
>
queryList
(
GroupDetailDTO
groupDetailDTO
)
{
return
baseMapper
.
selectList
(
new
LambdaQueryWrapper
<
GroupDetailEntity
>()
List
<
GroupDetailEntity
>
groupDetailEntityList
=
baseMapper
.
selectList
(
new
LambdaQueryWrapper
<
GroupDetailEntity
>()
.
eq
(
GroupDetailEntity:
:
getGroupId
,
groupDetailDTO
.
getGroupId
()));
.
eq
(
GroupDetailEntity:
:
getGroupId
,
groupDetailDTO
.
getGroupId
()));
// 安全移除元素
groupDetailEntityList
.
removeIf
(
groupDetailEntity
->
groupDetailEntity
.
getUserName
().
contains
(
"商户"
));
return
groupDetailEntityList
;
}
}
@Override
@Override
...
...
src/main/java/com/platform/service/impl/GroupServiceImpl.java
View file @
f2662ffb
...
@@ -33,9 +33,11 @@ public class GroupServiceImpl extends ServiceImpl<GroupMapper, GroupEntity> impl
...
@@ -33,9 +33,11 @@ public class GroupServiceImpl extends ServiceImpl<GroupMapper, GroupEntity> impl
GroupVO
groupVO
=
groups
.
get
(
i
);
GroupVO
groupVO
=
groups
.
get
(
i
);
GroupEntity
groupEntity
=
new
GroupEntity
();
GroupEntity
groupEntity
=
new
GroupEntity
();
groupEntity
.
setGroupSize
(
groupVO
.
getGroupSize
());
groupEntity
.
setGroupSize
(
groupVO
.
getGroupSize
());
groupEntity
.
setGroupName
(
"团体"
+
1
);
groupEntity
.
setGroupName
(
"团体"
+
i
);
groupEntity
.
setCaseId
(
id
);
groupEntity
.
setCaseId
(
id
);
groupEntity
.
setTotalAmount
(
groupVO
.
getTotalAmount
());
double
totalAmount
=
groupVO
.
getTotalAmount
();
double
formattedAmount
=
Math
.
round
(
totalAmount
*
100.0
)
/
100.0
;
groupEntity
.
setTotalAmount
(
formattedAmount
);
groupEntity
.
setTotalTransactions
(
groupVO
.
getTotalTransactions
());
groupEntity
.
setTotalTransactions
(
groupVO
.
getTotalTransactions
());
//入库
//入库
save
(
groupEntity
);
save
(
groupEntity
);
...
...
src/main/resources/application.yml
View file @
f2662ffb
...
@@ -4,9 +4,9 @@ server:
...
@@ -4,9 +4,9 @@ server:
spring
:
spring
:
datasource
:
datasource
:
username
:
root
username
:
root
password
:
xukang123
password
:
RZKJ_0415$
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://
101.126.87.27
:3306/relation?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true
url
:
jdbc:mysql://
47.110.71.183
:3306/relation?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true
servlet
:
servlet
:
multipart
:
multipart
:
...
...
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