| | |
| | | */ |
| | | package org.springblade.modules.house.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | |
| | | return R.status(houseLabelService.removeByIds(Func.toLongList(ids))); |
| | | } |
| | | |
| | | /** |
| | | * 房屋-标签 自定义删除 |
| | | */ |
| | | @PostMapping("/removeHouseLabel") |
| | | @ApiOperationSupport(order = 7) |
| | | public R removeHouseLabel(@RequestBody HouseLabelEntity houseLabel) { |
| | | QueryWrapper<HouseLabelEntity> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("label_id",houseLabel.getLabelId()) |
| | | .eq("house_code",houseLabel.getHouseCode()); |
| | | // 返回 |
| | | return R.status(houseLabelService.remove(wrapper)); |
| | | } |
| | | |
| | | |
| | | } |