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
b9649a94
Commit
b9649a94
authored
Jul 14, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
1431c090
Pipeline
#145360
failed with stages
Changes
6
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
0 deletions
+33
-0
HouseResourceExport.java
...com/ruoyi/system/domain/house/vo/HouseResourceExport.java
+6
-0
HouseResourcePage.java
...a/com/ruoyi/system/domain/house/vo/HouseResourcePage.java
+6
-0
BusinessEntitySellMapper.java
...m/ruoyi/system/mapper/house/BusinessEntitySellMapper.java
+2
-0
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+8
-0
BusinessEntitySellMapper.xml
.../main/resources/mapper/house/BusinessEntitySellMapper.xml
+10
-0
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+1
-0
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourceExport.java
View file @
b9649a94
...
...
@@ -77,4 +77,10 @@ public class HouseResourceExport {
@Excel
(
name
=
"备注"
)
private
String
remark
;
@Excel
(
name
=
"2024营收"
)
private
BigDecimal
YearSell2024
;
@Excel
(
name
=
"2025营收"
)
private
BigDecimal
YearSell2025
;
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourcePage.java
View file @
b9649a94
...
...
@@ -123,4 +123,10 @@ public class HouseResourcePage {
private
Integer
workerNumber
;
private
String
registeredAddress
;
private
String
businessEntityInfoId
;
private
BigDecimal
YearSell2024
;
private
BigDecimal
YearSell2025
;
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/house/BusinessEntitySellMapper.java
View file @
b9649a94
...
...
@@ -28,4 +28,6 @@ public interface BusinessEntitySellMapper {
List
<
BusinessEntitySell
>
selectBusinessEntitySellByEntityIds
(
@Param
(
"entityIds"
)
List
<
String
>
entityIds
);
BusinessEntitySell
selectBusinessEntitySellByBusinessEntityInfoId
(
@Param
(
"businessEntityInfoId"
)
String
businessEntityInfoId
,
@Param
(
"year"
)
Integer
year
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
b9649a94
...
...
@@ -304,6 +304,14 @@ public class HouseResourceServiceImpl implements HouseResourceService {
query
.
setWgCodes
(
gridRegionUsers
.
stream
().
map
(
GridRegionUser:
:
getWgId
).
collect
(
Collectors
.
toList
()));
}
List
<
HouseResourcePage
>
list
=
houseResourceMapper
.
exportList
(
query
);
list
.
forEach
(
x
->
{
BusinessEntitySell
businessEntitySell2024
=
businessEntitySellMapper
.
selectBusinessEntitySellByBusinessEntityInfoId
(
x
.
getBusinessEntityInfoId
(),
2024
);
if
(
Objects
.
nonNull
(
businessEntitySell2024
))
{
if
(
Objects
.
nonNull
(
businessEntitySell2024
.
getYearSell
()))
{
x
.
setYearSell2024
(
businessEntitySell2024
.
getYearSell
());
}
}
});
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
Collections
.
emptyList
();
}
else
{
...
...
ruoyi-system/src/main/resources/mapper/house/BusinessEntitySellMapper.xml
View file @
b9649a94
...
...
@@ -59,4 +59,14 @@
resultType=
"com.ruoyi.system.domain.house.BusinessEntitySell"
>
SELECT * FROM business_entity_sell WHERE business_entity_info_id in
<foreach
collection=
"entityIds"
item=
"entityId"
open=
"("
close=
")"
separator=
","
>
#{entityId}
</foreach>
</select>
<select
id=
"selectBusinessEntitySellByBusinessEntityInfoId"
resultType=
"com.ruoyi.system.domain.house.BusinessEntitySell"
>
SELECT
t2.*
FROM
business_entity_info t1
LEFT JOIN business_entity_sell t2 ON t1.id = t2.business_entity_info_id
WHERE t1.id = #{businessEntityInfoId} AND t2.year = #{year}
limit 1
</select>
</mapper>
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
b9649a94
...
...
@@ -277,6 +277,7 @@
<select
id=
"exportList"
resultType=
"com.ruoyi.system.domain.house.vo.HouseResourcePage"
>
SELECT
t1.id,
t3.id AS businessEntityInfoId,
t1.two,
t1.three,
t2.wg_name AS wgName4,
...
...
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