From 37d86ade1dccde5abfe62996ed0cec157435ebfa Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Thu, 09 Nov 2023 10:52:35 +0800
Subject: [PATCH] 场所详情相关,报事报修调整
---
src/main/java/org/springblade/modules/house/controller/HouseholdLabelController.java | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/main/java/org/springblade/modules/house/controller/HouseholdLabelController.java b/src/main/java/org/springblade/modules/house/controller/HouseholdLabelController.java
index 25db840..d6d6937 100644
--- a/src/main/java/org/springblade/modules/house/controller/HouseholdLabelController.java
+++ b/src/main/java/org/springblade/modules/house/controller/HouseholdLabelController.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;
@@ -135,4 +136,17 @@
}
+ /**
+ * 住户-标签 自定义删除
+ */
+ @PostMapping("/removeHouseholdLabel")
+ public R removeHouseholdLabel(@RequestBody HouseholdLabelEntity householdLabel) {
+ QueryWrapper<HouseholdLabelEntity> wrapper = new QueryWrapper<>();
+ wrapper.eq("household_id",householdLabel.getHouseholdId())
+ .eq("label_id",householdLabel.getLabelId());
+ // 返回
+ return R.status(householdLabelService.remove(wrapper));
+ }
+
+
}
--
Gitblit v1.9.3