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 {
}
@PostMapping("/saveYearTax")
public AjaxResult postSaveYearTax(@RequestBody YearTaxSaveUpdateDto dto) {
houseResourceService.saveYearTax(dto);
public AjaxResult postSaveYearTax(@RequestBody List<YearTaxSaveUpdateDto> dtos) {
houseResourceService.saveYearTax(dtos);
return AjaxResult.success();
}
}
......@@ -9,5 +9,11 @@ public class YearTaxSaveUpdateDto {
private String businessEntityInfoId;
private Integer year;
private BigDecimal yearSell;
private BigDecimal yearTax;
private String compare;
}
......@@ -30,5 +30,5 @@ public interface HouseResourceService {
PageBusinessEntityStatisticsDetail pageBusinessEntityStatistics(PageBusinessEntityStatisticsQuery query);
void saveYearTax(YearTaxSaveUpdateDto dto);
void saveYearTax(List<YearTaxSaveUpdateDto> dtos);
}
......@@ -436,11 +436,13 @@ public class HouseResourceServiceImpl implements HouseResourceService {
}
@Override
public void saveYearTax(YearTaxSaveUpdateDto dto) {
BusinessEntitySell businessEntitySell = new BusinessEntitySell();
BeanUtils.copyProperties(dto, businessEntitySell);
businessEntitySell.setId(UUID.randomUUID().toString().replaceAll("-", ""));
businessEntitySellMapper.insertBusinessEntitySell(businessEntitySell);
public void saveYearTax(List<YearTaxSaveUpdateDto> dtos) {
for (YearTaxSaveUpdateDto dto : dtos) {
BusinessEntitySell businessEntitySell = new BusinessEntitySell();
BeanUtils.copyProperties(dto, businessEntitySell);
businessEntitySell.setId(UUID.randomUUID().toString().replaceAll("-", ""));
businessEntitySellMapper.insertBusinessEntitySell(businessEntitySell);
}
}
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