From 8d8c7da4e91028fc877f101dcd244bef3e18c197 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Sun, 12 Nov 2023 07:34:21 +0800
Subject: [PATCH] 标签报事+通知公告
---
src/main/java/org/springblade/modules/house/controller/HouseLabelController.java | 25 +++++++++++++++++++++++++
1 files changed, 25 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 22eb415..22bbfe3 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;
@@ -113,6 +114,17 @@
}
/**
+ * 房屋-标签 自定义新增或修改
+ * @param houseLabel
+ * @return
+ */
+ @PostMapping("/saveOrUpdateHouseLabel")
+ @ApiOperation(value = "自定义新增或修改", notes = "传入houseLabel")
+ public R saveOrUpdateHouseLabel(@Valid @RequestBody HouseLabelEntity houseLabel) {
+ return R.status(houseLabelService.saveOrUpdateHouseLabel(houseLabel));
+ }
+
+ /**
* 房屋-标签 删除
*/
@PostMapping("/remove")
@@ -122,5 +134,18 @@
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));
+ }
+
}
--
Gitblit v1.9.3