Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydsj_tp
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangyun
ydsj_tp
Commits
e045d909
Commit
e045d909
authored
Dec 25, 2025
by
jiang'yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
dd70451e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/TpRyInfoServiceImpl.java
+1
-1
ruoyi-admin/src/main/resources/mapper/system/TpRyInfoMapper.xml
+9
-10
No files found.
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/TpRyInfoServiceImpl.java
View file @
e045d909
...
...
@@ -52,7 +52,7 @@ public class TpRyInfoServiceImpl implements ITpRyInfoService
List
<
TpRyInfo
>
tpRyInfos
=
tpRyInfoMapper
.
selectTpRyInfoList
(
tpRyInfo
);
for
(
TpRyInfo
item
:
tpRyInfos
)
{
List
<
TpRyInfoCb
>
cbList
=
tpRyInfoMapper
.
selectTpRyInfoCbList
(
item
.
getId
());
if
(
cbList
.
size
()>
0
){
if
(
!
cbList
.
isEmpty
()
){
List
<
String
>
collect
=
cbList
.
stream
().
map
(
TpRyInfoCb:
:
getTprymc
).
collect
(
Collectors
.
toList
());
item
.
setTpry
(
String
.
join
(
","
,
collect
));
}
...
...
ruoyi-admin/src/main/resources/mapper/system/TpRyInfoMapper.xml
View file @
e045d909
...
...
@@ -80,16 +80,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where (adzh =#{adzh} or username = #{tyzh} )
</select>
<select
id=
"tplist"
resultType=
"com.ruoyi.system.domain.TpRyInfoCb"
>
select ssbk,tprymc,count(id) sl from
tp_ry_info_cb
where 1=1
<if
test=
"tprymc!=null and tprymc!=''"
>
and tprymc like concat('%',#{tprymc},'%')
</if>
<if
test=
"ssbk!=null and ssbk!=''"
>
and ssbk like concat('%',#{ssbk},'%')
</if>
group by ssbk,tprymc
select a.ssbk, a.name tprymc, count(b.id) sl
from tp_btpry_info a
left join
tp_ry_info_cb b on a.id = b.tpryid
where 1 = 1
<if
test=
"ssbk!=null and ssbk!=''"
>
and a.ssbk like concat('%',#{ssbk},'%')
</if>
group by a.ssbk, a.name
</select>
<insert
id=
"insertTpRyInfo"
parameterType=
"TpRyInfo"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
...
...
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