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
7036438f
Commit
7036438f
authored
Jun 03, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
0ec95d7b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
5 deletions
+15
-5
HouseResourceController.java
...m/ruoyi/web/controller/house/HouseResourceController.java
+2
-2
YearTaxSaveUpdateDto.java
...om/ruoyi/system/domain/house/vo/YearTaxSaveUpdateDto.java
+2
-0
HouseResourceService.java
.../com/ruoyi/system/service/house/HouseResourceService.java
+1
-1
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+10
-2
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/house/HouseResourceController.java
View file @
7036438f
...
...
@@ -81,8 +81,8 @@ public class HouseResourceController {
}
@PostMapping
(
"/saveYearTax"
)
public
AjaxResult
postSaveYearTax
(
@RequestBody
List
<
YearTaxSaveUpdateDto
>
dtos
)
{
houseResourceService
.
saveYearTax
(
dto
s
);
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
View file @
7036438f
...
...
@@ -7,6 +7,8 @@ import java.math.BigDecimal;
@Data
public
class
YearTaxSaveUpdateDto
{
private
String
id
;
private
String
businessEntityInfoId
;
private
Integer
year
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/house/HouseResourceService.java
View file @
7036438f
...
...
@@ -30,5 +30,5 @@ public interface HouseResourceService {
PageBusinessEntityStatisticsDetail
pageBusinessEntityStatistics
(
PageBusinessEntityStatisticsQuery
query
);
void
saveYearTax
(
List
<
YearTaxSaveUpdateDto
>
dtos
);
void
saveYearTax
(
YearTaxSaveUpdateDto
dto
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
7036438f
...
...
@@ -436,8 +436,16 @@ public class HouseResourceServiceImpl implements HouseResourceService {
}
@Override
public
void
saveYearTax
(
List
<
YearTaxSaveUpdateDto
>
dtos
)
{
for
(
YearTaxSaveUpdateDto
dto
:
dtos
)
{
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
saveYearTax
(
YearTaxSaveUpdateDto
dto
)
{
if
(
Objects
.
nonNull
(
dto
.
getId
()))
{
BusinessEntitySell
existingSell
=
businessEntitySellMapper
.
selectBusinessEntitySellById
(
dto
.
getId
());
if
(
existingSell
==
null
)
{
throw
new
RuntimeException
(
"未找到对应的记录"
);
}
BeanUtils
.
copyProperties
(
dto
,
existingSell
);
businessEntitySellMapper
.
updateBusinessEntitySell
(
existingSell
);
}
else
{
BusinessEntitySell
businessEntitySell
=
new
BusinessEntitySell
();
BeanUtils
.
copyProperties
(
dto
,
businessEntitySell
);
businessEntitySell
.
setId
(
UUID
.
randomUUID
().
toString
().
replaceAll
(
"-"
,
""
));
...
...
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