Commit b40fbf64 authored by lixuan's avatar lixuan

Merge branch 'dev-lx' into dev

# Conflicts:
#	ruoyi-admin/src/main/java/com/ruoyi/web/controller/house/HouseResourceController.java
#	ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/YearTaxSaveUpdateDto.java
#	ruoyi-system/src/main/java/com/ruoyi/system/service/house/HouseResourceService.java
#	ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
parents 37d03576 0ec95d7b
Pipeline #144860 failed with stages
in 6 minutes and 58 seconds
...@@ -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();
} }
} }
...@@ -9,5 +9,11 @@ public class YearTaxSaveUpdateDto { ...@@ -9,5 +9,11 @@ public class YearTaxSaveUpdateDto {
private String businessEntityInfoId; private String businessEntityInfoId;
private Integer year;
private BigDecimal yearSell;
private BigDecimal yearTax; private BigDecimal yearTax;
private String compare;
} }
...@@ -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,12 +436,14 @@ public class HouseResourceServiceImpl implements HouseResourceService { ...@@ -436,12 +436,14 @@ public class HouseResourceServiceImpl implements HouseResourceService {
} }
@Override @Override
public void saveYearTax(YearTaxSaveUpdateDto dto) { public void saveYearTax(List<YearTaxSaveUpdateDto> dtos) {
for (YearTaxSaveUpdateDto dto : dtos) {
BusinessEntitySell businessEntitySell = new BusinessEntitySell(); BusinessEntitySell businessEntitySell = new BusinessEntitySell();
BeanUtils.copyProperties(dto, businessEntitySell); BeanUtils.copyProperties(dto, businessEntitySell);
businessEntitySell.setId(UUID.randomUUID().toString().replaceAll("-", "")); businessEntitySell.setId(UUID.randomUUID().toString().replaceAll("-", ""));
businessEntitySellMapper.insertBusinessEntitySell(businessEntitySell); businessEntitySellMapper.insertBusinessEntitySell(businessEntitySell);
} }
}
private List<HouseResourcePage> handleHouseList(List<HouseResourcePage> list) { private List<HouseResourcePage> handleHouseList(List<HouseResourcePage> list) {
list.forEach(x -> { list.forEach(x -> {
......
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