Commit 47f34144 authored by lixuan's avatar lixuan

feat: 房源

parent f12d33d5
......@@ -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();
}
}
package com.ruoyi.system.domain.house.vo;
import lombok.Data;
import java.math.BigDecimal;
@Data
public class YearTaxSaveUpdateDto {
private String businessEntityInfoId;
private BigDecimal yearTax;
}
......@@ -29,4 +29,6 @@ public interface HouseResourceService {
BusinessEntityStatisticsDetail businessEntityStatistics(HouseResourcePageQuery query);
PageBusinessEntityStatisticsDetail pageBusinessEntityStatistics(PageBusinessEntityStatisticsQuery query);
void saveYearTax(YearTaxSaveUpdateDto dto);
}
......@@ -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();
......
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