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
47f34144
Commit
47f34144
authored
Jun 03, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
f12d33d5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
0 deletions
+30
-0
HouseResourceController.java
...m/ruoyi/web/controller/house/HouseResourceController.java
+7
-0
YearTaxSaveUpdateDto.java
...om/ruoyi/system/domain/house/vo/YearTaxSaveUpdateDto.java
+13
-0
HouseResourceService.java
.../com/ruoyi/system/service/house/HouseResourceService.java
+2
-0
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+8
-0
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/house/HouseResourceController.java
View file @
47f34144
...
...
@@ -5,6 +5,7 @@ import com.ruoyi.system.domain.house.HouseResource;
import
com.ruoyi.system.domain.house.vo.HouseResourcePageQuery
;
import
com.ruoyi.system.domain.house.vo.HouseResourceSaveUpdateDto
;
import
com.ruoyi.system.domain.house.vo.PageBusinessEntityStatisticsQuery
;
import
com.ruoyi.system.domain.house.vo.YearTaxSaveUpdateDto
;
import
com.ruoyi.system.service.house.HouseResourceService
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -78,4 +79,10 @@ public class HouseResourceController {
public
AjaxResult
getPageBusinessEntityStatistics
(
@RequestBody
PageBusinessEntityStatisticsQuery
query
)
{
return
AjaxResult
.
success
(
houseResourceService
.
pageBusinessEntityStatistics
(
query
));
}
@PostMapping
(
"/saveYearTax"
)
public
AjaxResult
postSaveYearTax
(
@RequestBody
YearTaxSaveUpdateDto
dto
)
{
houseResourceService
.
saveYearTax
(
dto
);
return
AjaxResult
.
success
();
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/YearTaxSaveUpdateDto.java
0 → 100644
View file @
47f34144
package
com
.
ruoyi
.
system
.
domain
.
house
.
vo
;
import
lombok.Data
;
import
java.math.BigDecimal
;
@Data
public
class
YearTaxSaveUpdateDto
{
private
String
businessEntityInfoId
;
private
BigDecimal
yearTax
;
}
ruoyi-system/src/main/java/com/ruoyi/system/service/house/HouseResourceService.java
View file @
47f34144
...
...
@@ -29,4 +29,6 @@ public interface HouseResourceService {
BusinessEntityStatisticsDetail
businessEntityStatistics
(
HouseResourcePageQuery
query
);
PageBusinessEntityStatisticsDetail
pageBusinessEntityStatistics
(
PageBusinessEntityStatisticsQuery
query
);
void
saveYearTax
(
YearTaxSaveUpdateDto
dto
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
47f34144
...
...
@@ -435,6 +435,14 @@ public class HouseResourceServiceImpl implements HouseResourceService {
return
pageBusinessEntityStatisticsDetail
;
}
@Override
public
void
saveYearTax
(
YearTaxSaveUpdateDto
dto
)
{
BusinessEntitySell
businessEntitySell
=
new
BusinessEntitySell
();
BeanUtils
.
copyProperties
(
dto
,
businessEntitySell
);
businessEntitySell
.
setId
(
UUID
.
randomUUID
().
toString
().
replaceAll
(
"-"
,
""
));
businessEntitySellMapper
.
insertBusinessEntitySell
(
businessEntitySell
);
}
private
List
<
HouseResourcePage
>
handleHouseList
(
List
<
HouseResourcePage
>
list
)
{
list
.
forEach
(
x
->
{
GridRegionExample
twoExample
=
new
GridRegionExample
();
...
...
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