| | |
| | | import javax.validation.Valid; |
| | | |
| | | import org.springblade.common.param.ToObject; |
| | | import org.springblade.core.excel.util.ExcelUtil; |
| | | import org.springblade.core.log.annotation.ApiLog; |
| | | import org.springblade.core.log.logger.BladeLogger; |
| | | import org.springblade.core.mp.support.Condition; |
| | |
| | | import org.springblade.core.tool.node.ForestNodeMerger; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.doorplateAddress.entity.DoorplateAddressEntity; |
| | | import org.springblade.modules.doorplateAddress.excel.ImportDoorplateExcel; |
| | | import org.springblade.modules.doorplateAddress.service.IDoorplateAddressService; |
| | | import org.springblade.modules.doorplateAddress.vo.DoorplateAddressVOTree; |
| | | import org.springblade.modules.doorplateAddress.vo.DoorplateAddressVO; |
| | | import org.springblade.modules.doorplateAddress.wrapper.DoorplateAddressWrapper; |
| | | import org.springblade.modules.house.excel.HouseAndHoldExcel; |
| | | import org.springblade.modules.house.excel.HouseAndHoldImporter; |
| | | import org.springblade.modules.house.excel.ImportHouseholdExcel; |
| | | import org.springblade.modules.house.vo.HouseParam; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import sun.rmi.runtime.Log; |
| | | |
| | | import java.util.List; |
| | |
| | | return R.data(houseBuildingCode); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 更新地址总表 |
| | | */ |
| | | @PostMapping("import-doorplate") |
| | | @ApiOperationSupport(order = 12) |
| | | @ApiOperation(value = "更新地址总表", notes = "传入excel") |
| | | public R importUser(MultipartFile file) { |
| | | String data = doorplateAddressService.importDoorplate(ExcelUtil.read(file, ImportDoorplateExcel.class)); |
| | | return R.data(200, data, data); |
| | | } |
| | | |
| | | } |