Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yichengstreet-be
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
yichengstreet
yichengstreet-be
Commits
d774cc24
Commit
d774cc24
authored
Jul 28, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
41f80cf3
Pipeline
#145520
failed with stages
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
92 additions
and
78 deletions
+92
-78
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+7
-0
BusinessEntityInfoMapper.xml
.../main/resources/mapper/house/BusinessEntityInfoMapper.xml
+7
-1
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+78
-77
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
d774cc24
...
...
@@ -560,6 +560,13 @@ public class HouseResourceServiceImpl implements HouseResourceService {
x
.
setDecorationConditionText
(
HouseEnums
.
DecorationConditionEnum
.
getDescByCode
(
x
.
getDecorationCondition
()));
x
.
setRentalUnitText
(
HouseEnums
.
RentalUnitEnum
.
getDescByCode
(
x
.
getRentalUnit
()));
x
.
setHireStatusText
(
HouseEnums
.
hireStatusTextEnum
.
getDescByCode
(
x
.
getHireStatus
()));
List
<
HouseResourceBusinessEntityInfoMapping
>
houseResourceBusinessEntityInfoMappings
=
houseResourceBusinessEntityInfoMappingMapper
.
selectByHouseResourceId
(
x
.
getId
());
if
(!
CollectionUtils
.
isEmpty
(
houseResourceBusinessEntityInfoMappings
))
{
List
<
BusinessEntityInfo
>
businessEntityInfos
=
businessEntityInfoMapper
.
selectByIdList
(
houseResourceBusinessEntityInfoMappings
.
stream
().
map
(
HouseResourceBusinessEntityInfoMapping:
:
getBusinessEntityInfoId
).
collect
(
Collectors
.
toList
()));
if
(!
CollectionUtils
.
isEmpty
(
businessEntityInfos
))
{
x
.
setBusinessEntityInfoNames
(
businessEntityInfos
.
stream
().
map
(
BusinessEntityInfo:
:
getName
).
collect
(
Collectors
.
toList
()));
}
}
});
if
(
houseNumberSortFlag
)
{
return
list
.
stream
().
sorted
(
Comparator
.
comparing
(
HouseResourcePage:
:
getHouseNumber
,
Comparator
.
nullsLast
(
String:
:
compareTo
))).
collect
(
Collectors
.
toList
());
...
...
ruoyi-system/src/main/resources/mapper/house/BusinessEntityInfoMapper.xml
View file @
d774cc24
...
...
@@ -58,7 +58,13 @@
SELECT * FROM business_entity_info
</select>
<select
id=
"selectByName"
resultType=
"com.ruoyi.system.domain.house.BusinessEntityInfo"
>
SELECT t2.* FROM house_resource t1 LEFT JOIN business_entity_info t2 ON t1.id = t2.house_resource_id WHERE t2.name like concat('%', #{name}, '%')
SELECT
t3.*
FROM
house_resource t1
LEFT JOIN house_resource_business_entity_info_mapping t2 ON t1.id = t2.house_resource_id
LEFT JOIN business_entity_info t3 ON t2.business_entity_info_id = t3.id
WHERE t3.name like concat('%', #{name}, '%')
</select>
<select
id=
"selectByIdList"
resultType=
"com.ruoyi.system.domain.house.BusinessEntityInfo"
>
SELECT * FROM business_entity_info WHERE id IN
...
...
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
d774cc24
This diff is collapsed.
Click to expand it.
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