| | |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.house.excel.HouseAndHoldExcel; |
| | | import org.springblade.modules.house.excel.HouseAndHoldImporter; |
| | | import org.springblade.modules.house.excel.HouseImporter; |
| | | import org.springblade.modules.house.vo.HouseParam; |
| | | import org.springblade.modules.house.excel.HouseExcel; |
| | |
| | | /** |
| | | * 导入房屋 |
| | | */ |
| | | @GetMapping("import-house") |
| | | @PostMapping("import-house") |
| | | public R importHouse(MultipartFile file, Integer isCovered) { |
| | | HouseImporter houseImporter = new HouseImporter(houseService, isCovered == 1); |
| | | ExcelUtil.save(file, houseImporter, HouseExcel.class); |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导入房屋及住户/租户人员数据 |
| | | */ |
| | | @PostMapping("import-houseAndHold") |
| | | public R importHouseAndHold(MultipartFile file, Integer isCovered) { |
| | | HouseAndHoldImporter houseImporter = new HouseAndHoldImporter(houseService, isCovered == 1); |
| | | ExcelUtil.save(file, houseImporter, HouseAndHoldExcel.class); |
| | | return R.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | } |