| | |
| | | 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; |
| | | |
| | |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "详情", notes = "传入doorplateAddress") |
| | | public R<DoorplateAddressVO> detail(DoorplateAddressEntity doorplateAddress) { |
| | | bladeLogger.info("blade-doorplateAddress_detail", JsonUtil.toJson(doorplateAddress)); |
| | | bladeLogger.info("门牌地址详情查询", JsonUtil.toJson(doorplateAddress)); |
| | | DoorplateAddressEntity detail = doorplateAddressService.getOne(Condition.getQueryWrapper(doorplateAddress)); |
| | | return R.data(DoorplateAddressWrapper.build().entityVO(detail)); |
| | | } |
| | |
| | | @GetMapping("/getDetail") |
| | | @ApiLog("门牌地址表(总台账数据) 自定义详情") |
| | | public R getDetail(DoorplateAddressVO doorplateAddress) { |
| | | bladeLogger.info("blade-doorplateAddress_getDetail", JsonUtil.toJson(doorplateAddress)); |
| | | bladeLogger.info("门牌地址详情查询", JsonUtil.toJson(doorplateAddress)); |
| | | return R.data(doorplateAddressService.getDetail(doorplateAddress)); |
| | | } |
| | | |
| | |
| | | @GetMapping("/getFuncList") |
| | | @ApiLog("根据角色获取功能集合数据") |
| | | public R getFuncList(Integer type,String roleName) { |
| | | bladeLogger.info("blade-doorplateAddress_getFuncList", JsonUtil.toJson(ToObject.toMap("type:" + type,"roleName:"+ roleName))); |
| | | bladeLogger.info("根据角色获取功能集合数据", JsonUtil.toJson(ToObject.toMap("type:" + type,"roleName:"+ roleName))); |
| | | return R.data(doorplateAddressService.getFuncList(type,roleName)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @GetMapping("/getHouseRentInfo") |
| | | @ApiLog("查询房屋及出租详情信息") |
| | | public R getHouseRentInfo(String code) { |
| | | public R getHouseRentInfo(String code, Long houseId) { |
| | | bladeLogger.info("获取楼盘相关集合数据", JsonUtil.toJson(code)); |
| | | return R.data(doorplateAddressService.getHouseRentInfo(code)); |
| | | return R.data(doorplateAddressService.getHouseRentInfo(code,houseId)); |
| | | } |
| | | |
| | | /** |
| | |
| | | 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); |
| | | } |
| | | |
| | | } |