Commit 42ac1d33 authored by lixuan's avatar lixuan

feat: 房源

parent 47f34144
...@@ -81,8 +81,8 @@ public class HouseResourceController { ...@@ -81,8 +81,8 @@ public class HouseResourceController {
} }
@PostMapping("/saveYearTax") @PostMapping("/saveYearTax")
public AjaxResult postSaveYearTax(@RequestBody YearTaxSaveUpdateDto dto) { public AjaxResult postSaveYearTax(@RequestBody List<YearTaxSaveUpdateDto> dtos) {
houseResourceService.saveYearTax(dto); houseResourceService.saveYearTax(dtos);
return AjaxResult.success(); return AjaxResult.success();
} }
} }
...@@ -30,5 +30,5 @@ public interface HouseResourceService { ...@@ -30,5 +30,5 @@ public interface HouseResourceService {
PageBusinessEntityStatisticsDetail pageBusinessEntityStatistics(PageBusinessEntityStatisticsQuery query); PageBusinessEntityStatisticsDetail pageBusinessEntityStatistics(PageBusinessEntityStatisticsQuery query);
void saveYearTax(YearTaxSaveUpdateDto dto); void saveYearTax(List<YearTaxSaveUpdateDto> dtos);
} }
...@@ -436,11 +436,13 @@ public class HouseResourceServiceImpl implements HouseResourceService { ...@@ -436,11 +436,13 @@ public class HouseResourceServiceImpl implements HouseResourceService {
} }
@Override @Override
public void saveYearTax(YearTaxSaveUpdateDto dto) { public void saveYearTax(List<YearTaxSaveUpdateDto> dtos) {
BusinessEntitySell businessEntitySell = new BusinessEntitySell(); for (YearTaxSaveUpdateDto dto : dtos) {
BeanUtils.copyProperties(dto, businessEntitySell); BusinessEntitySell businessEntitySell = new BusinessEntitySell();
businessEntitySell.setId(UUID.randomUUID().toString().replaceAll("-", "")); BeanUtils.copyProperties(dto, businessEntitySell);
businessEntitySellMapper.insertBusinessEntitySell(businessEntitySell); businessEntitySell.setId(UUID.randomUUID().toString().replaceAll("-", ""));
businessEntitySellMapper.insertBusinessEntitySell(businessEntitySell);
}
} }
private List<HouseResourcePage> handleHouseList(List<HouseResourcePage> list) { private List<HouseResourcePage> handleHouseList(List<HouseResourcePage> list) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment