From 88e7bb7f517bf1f0ec39ac257e35e485392d55d1 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Sat, 04 Nov 2023 16:19:54 +0800
Subject: [PATCH] 房屋即房屋标签操作修改
---
src/main/java/org/springblade/modules/house/controller/HouseLabelController.java | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/main/java/org/springblade/modules/house/controller/HouseLabelController.java b/src/main/java/org/springblade/modules/house/controller/HouseLabelController.java
index 0b1a16b..bbe1b9c 100644
--- a/src/main/java/org/springblade/modules/house/controller/HouseLabelController.java
+++ b/src/main/java/org/springblade/modules/house/controller/HouseLabelController.java
@@ -16,6 +16,7 @@
*/
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;
@@ -133,5 +134,18 @@
return R.status(houseLabelService.removeByIds(Func.toLongList(ids)));
}
+ /**
+ * 房屋-标签 自定义删除
+ */
+ @PostMapping("/removeHouseLabel")
+ @ApiOperationSupport(order = 7)
+ public R remove(@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));
+ }
+
}
--
Gitblit v1.9.3