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
7ee830c6
Commit
7ee830c6
authored
Apr 08, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
73c05969
Pipeline
#143947
failed with stages
in 30 minutes and 36 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
HouseResourceController.java
...m/ruoyi/web/controller/house/HouseResourceController.java
+2
-2
HouseResourceService.java
.../com/ruoyi/system/service/house/HouseResourceService.java
+1
-1
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+4
-1
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/house/HouseResourceController.java
View file @
7ee830c6
...
...
@@ -65,8 +65,8 @@ public class HouseResourceController {
}
@GetMapping
(
"/businessEntityStatistics"
)
public
AjaxResult
getBusinessEntityStatistics
(
@RequestParam
(
required
=
false
)
String
two
)
{
return
AjaxResult
.
success
(
houseResourceService
.
businessEntityStatistics
(
two
));
public
AjaxResult
getBusinessEntityStatistics
(
@RequestParam
(
required
=
false
)
String
two
,
@RequestParam
(
required
=
false
)
String
three
)
{
return
AjaxResult
.
success
(
houseResourceService
.
businessEntityStatistics
(
two
,
three
));
}
@PostMapping
(
"/page/businessEntityStatistics"
)
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/house/HouseResourceService.java
View file @
7ee830c6
...
...
@@ -24,7 +24,7 @@ public interface HouseResourceService {
List
<
HouseResourcePage
>
listHouseResources
(
HouseResourcePageQuery
query
);
BusinessEntityStatisticsDetail
businessEntityStatistics
(
String
two
);
BusinessEntityStatisticsDetail
businessEntityStatistics
(
String
two
,
String
three
);
PageBusinessEntityStatisticsDetail
pageBusinessEntityStatistics
(
PageBusinessEntityStatisticsQuery
query
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
7ee830c6
...
...
@@ -208,7 +208,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
}
@Override
public
BusinessEntityStatisticsDetail
businessEntityStatistics
(
String
two
)
{
public
BusinessEntityStatisticsDetail
businessEntityStatistics
(
String
two
,
String
three
)
{
List
<
HouseResource
>
list
=
houseResourceMapper
.
selectAll
();
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
new
BusinessEntityStatisticsDetail
();
...
...
@@ -217,6 +217,9 @@ public class HouseResourceServiceImpl implements HouseResourceService {
if
(
StringUtils
.
hasText
(
two
))
{
list
=
list
.
stream
().
filter
(
x
->
x
.
getTwo
().
equals
(
two
)).
collect
(
Collectors
.
toList
());
}
if
(
StringUtils
.
hasText
(
three
))
{
list
=
list
.
stream
().
filter
(
x
->
x
.
getThree
().
equals
(
three
)).
collect
(
Collectors
.
toList
());
}
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
businessEntityStatisticsDetail
;
}
...
...
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