From 25df5530b89fc57a3f32a0e4c706bb40d3e4b415 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Wed, 15 Nov 2023 17:27:58 +0800
Subject: [PATCH] 标签控制+通知详情优化

---
 src/main/java/org/springblade/modules/house/controller/HouseholdLabelController.java |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 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..898217a 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;
@@ -28,7 +29,7 @@
 import org.springblade.core.mp.support.Query;
 import org.springblade.core.tool.api.R;
 import org.springblade.core.tool.utils.Func;
-import org.springblade.modules.house.entity.HouseLabelEntity;
+import org.springblade.modules.house.entity.UserHouseLabelEntity;
 import org.springframework.web.bind.annotation.*;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import org.springblade.modules.house.entity.HouseholdLabelEntity;
@@ -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