From 01cf8140ee6ea6a98ff12d5ef973b050fbf75bf1 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Sat, 16 Mar 2024 15:23:02 +0800
Subject: [PATCH] 场所添加字段+从业人员添加字段
---
src/main/java/org/springblade/modules/house/controller/UserHouseLabelController.java | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/springblade/modules/house/controller/UserHouseLabelController.java b/src/main/java/org/springblade/modules/house/controller/UserHouseLabelController.java
index 0b1ddab..39a2c15 100644
--- a/src/main/java/org/springblade/modules/house/controller/UserHouseLabelController.java
+++ b/src/main/java/org/springblade/modules/house/controller/UserHouseLabelController.java
@@ -131,6 +131,17 @@
}
/**
+ * 房屋-标签 房屋自定义新增或修改
+ * @param householdLabel
+ * @return
+ */
+ @PostMapping("/saveOrUpdateHouseLabel")
+ @ApiOperation(value = "自定义新增或修改", notes = "传入householdLabel")
+ public R saveOrUpdateHouseLabel(@Valid @RequestBody UserHouseLabelEntity householdLabel) {
+ return R.status(householdLabelService.saveOrUpdateHouseLabel(householdLabel));
+ }
+
+ /**
* 住户-标签 删除
*/
@PostMapping("/remove")
@@ -178,14 +189,24 @@
/**
- * 住户-标签 自定义分页
+ *
*/
- @GetMapping("/statisticalLabels")
+ @GetMapping("/getRegionStatisticalLabels")
@ApiOperation(value = "统计标签", notes = "")
public R<IPage<HouseholdLabelVO>> statisticalLabels(HouseholdLabelVO householdLabel, Query query) {
IPage<HouseholdLabelVO> pages = householdLabelService.statisticalLabels(Condition.getPage(query), householdLabel);
return R.data(pages);
}
+ /**
+ *
+ */
+ @GetMapping("/getCommunityStatisticalLabels")
+ @ApiOperation(value = "统计标签", notes = "")
+ public R<IPage<HouseholdLabelVO>> getCommunityStatisticalLabels(HouseholdLabelVO householdLabel, Query query) {
+ IPage<HouseholdLabelVO> pages = householdLabelService.getCommunityStatisticalLabels(Condition.getPage(query), householdLabel);
+ return R.data(pages);
+ }
+
}
--
Gitblit v1.9.3