Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
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
2f7256b9
Commit
2f7256b9
authored
Jan 16, 2026
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 到处增加年度税收字段
parent
97f1797a
Pipeline
#146622
failed with stages
in 1 second
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 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
+4
-0
BusinessEntitySellMapper.java
...m/ruoyi/system/mapper/house/BusinessEntitySellMapper.java
+1
-0
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+12
-0
BusinessEntitySellMapper.xml
.../main/resources/mapper/house/BusinessEntitySellMapper.xml
+10
-0
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourceExport.java
View file @
2f7256b9
...
...
@@ -84,6 +84,12 @@ public class HouseResourceExport {
@Excel
(
name
=
"2025营收"
)
private
BigDecimal
YearSell2025
;
@Excel
(
name
=
"2024税收"
)
private
BigDecimal
YearTax2024
;
@Excel
(
name
=
"2025税收"
)
private
BigDecimal
YearTax2025
;
@Excel
(
name
=
"经营(办公)场所图片"
)
private
String
houseResourceUrl
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourcePage.java
View file @
2f7256b9
...
...
@@ -133,4 +133,8 @@ public class HouseResourcePage {
private
BigDecimal
YearSell2024
;
private
BigDecimal
YearSell2025
;
private
BigDecimal
YearTax2024
;
private
BigDecimal
YearTax2025
;
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/house/BusinessEntitySellMapper.java
View file @
2f7256b9
...
...
@@ -30,4 +30,5 @@ public interface BusinessEntitySellMapper {
BusinessEntitySell
selectBusinessEntitySellByBusinessEntityInfoId
(
@Param
(
"businessEntityInfoId"
)
String
businessEntityInfoId
,
@Param
(
"year"
)
Integer
year
);
BusinessEntitySell
selectBusinessEntityTaxByBusinessEntityInfoId
(
@Param
(
"businessEntityInfoId"
)
String
businessEntityInfoId
,
@Param
(
"year"
)
Integer
year
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
2f7256b9
...
...
@@ -423,6 +423,18 @@ public class HouseResourceServiceImpl implements HouseResourceService {
x
.
setYearSell2025
(
businessEntitySell2025
.
getYearSell
());
}
}
BusinessEntitySell
businessEntityTax2024
=
businessEntitySellMapper
.
selectBusinessEntityTaxByBusinessEntityInfoId
(
x
.
getBusinessEntityInfoId
(),
2024
);
if
(
Objects
.
nonNull
(
businessEntityTax2024
))
{
if
(
Objects
.
nonNull
(
businessEntityTax2024
.
getYearTax
()))
{
x
.
setYearTax2024
(
businessEntityTax2024
.
getYearTax
());
}
}
BusinessEntitySell
businessEntityTax2025
=
businessEntitySellMapper
.
selectBusinessEntityTaxByBusinessEntityInfoId
(
x
.
getBusinessEntityInfoId
(),
2025
);
if
(
Objects
.
nonNull
(
businessEntityTax2025
))
{
if
(
Objects
.
nonNull
(
businessEntityTax2025
.
getYearTax
()))
{
x
.
setYearTax2025
(
businessEntityTax2025
.
getYearTax
());
}
}
});
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
Collections
.
emptyList
();
...
...
ruoyi-system/src/main/resources/mapper/house/BusinessEntitySellMapper.xml
View file @
2f7256b9
...
...
@@ -69,4 +69,14 @@
WHERE t1.id = #{businessEntityInfoId} AND t2.year = #{year}
limit 1
</select>
<select
id=
"selectBusinessEntityTaxByBusinessEntityInfoId"
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>
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