From 86df207c37502cce1b2043e1c7c0486459eef1d6 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期四, 13 三月 2025 19:58:45 +0800 Subject: [PATCH] 党员、诉求评论基础代码 --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/property/PropertyService.java | 175 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 172 insertions(+), 3 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/property/PropertyService.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/property/PropertyService.java index 957e74a..2c46c6d 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/property/PropertyService.java +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/property/PropertyService.java @@ -2,14 +2,16 @@ import com.panzhihua.common.model.dtos.property.CommonPage; import com.panzhihua.common.model.vos.R; -import com.panzhihua.common.model.vos.property.ComPropertyRepairVO; +import com.panzhihua.common.model.vos.property.*; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.*; + +import java.io.Serializable; /** * 物业接口 */ -@FeignClient(name = "property") +@FeignClient(name = "huacheng-property") public interface PropertyService { /** * 分页查询所有数据 @@ -19,13 +21,29 @@ R comPropertyRepairSelectAll(@RequestBody CommonPage commonPage); /** + * 分页查询所有数据 脱敏 + * @return 所有数据 + */ + @PostMapping("/comPropertyRepair/queryAllDesensitize") + R comPropertyRepairSelectAllDesensitize(@RequestBody CommonPage commonPage); + + /** * 通过主键查询单条数据 * * @param id 主键 * @return 单条数据 */ @GetMapping("/comPropertyRepair/{id}") - R comPropertyRepairSelectOne(@PathVariable("id") Integer id); + R comPropertyRepairSelectOne(@PathVariable("id") Long id); + + /** + * 通过主键查询单条数据 脱敏 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("/comPropertyRepair/desensitize/{id}") + R comPropertyRepairSelectOneDesensitize(@PathVariable("id") Long id); /** * 新增数据 @@ -53,4 +71,155 @@ */ @GetMapping("/comPropertyRepair/del") R comPropertyRepairDelete(@RequestParam("id") Long id); + + /** + * 查询报警列表 + * @param commonPage + * @return + */ + @PostMapping("/comPropertyAlarm/queryAll") + R comPropertyAlarmSelectAll(@RequestBody CommonPage commonPage); + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("/comPropertyAlarm/{id}") + R comPropertyAlarmSelectOne(@PathVariable("id") Integer id); + + /** + * 新增数据 + * + * @param comPropertyAlarm 实体对象 + * @return 新增结果 + */ + @PostMapping("/comPropertyAlarm") + R comPropertyAlarmInsert(@RequestBody ComPropertyAlarmVO comPropertyAlarm); + + /** + * 修改数据 + * + * @param comPropertyAlarm 实体对象 + * @return 修改结果 + */ + @PostMapping("/comPropertyAlarm/update") + R comPropertyAlarmUpdate(@RequestBody ComPropertyAlarmVO comPropertyAlarm); + + /** + * 删除数据 + * + * @param id 主键结合 + * @return 删除结果 + */ + @GetMapping("/comPropertyAlarm/del") + R comPropertyAlarmDelete(@RequestParam("id") Long id); + + /** + * 分页查询所有数据 + * @param commonPage 查询实体 + * @return 所有数据 + */ + @PostMapping("/comPropertyEquipment/queryAll") + R comPropertyEquipmentSelectAll(@RequestBody CommonPage commonPage); + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("/comPropertyEquipment/{id}") + R comPropertyEquipmentSelectOne(@PathVariable("id") Integer id); + + /** + * 新增数据 + * + * @param comPropertyEquipment 实体对象 + * @return 新增结果 + */ + @PostMapping("/comPropertyEquipment") + R comPropertyEquipmentInsert(@RequestBody ComPropertyEquipmentVO comPropertyEquipment); + + /** + * 修改数据 + * + * @param comPropertyEquipment 实体对象 + * @return 修改结果 + */ + @PostMapping("/comPropertyEquipment/update") + R comPropertyEquipmentUpdate(@RequestBody ComPropertyEquipmentVO comPropertyEquipment); + + /** + * 删除数据 + * + * @param id 主键结合 + * @return 删除结果 + */ + @GetMapping("/comPropertyEquipment/del") + R comPropertyEquipmentDelete(@RequestParam("id") Long id); + + /** + * 新增数据 + * + * @param comPropertyAlarmSettingVO 实体对象 + * @return 新增结果 + */ + @PostMapping("/comPropertyAlarmSetting") + R comPropertyAlarmSettingInsert(@RequestBody ComPropertyAlarmSettingVO comPropertyAlarmSettingVO); + + /** + * 通过主键查询单条数据 + * + * @param communityId 主键 + * @return 单条数据 + */ + @GetMapping("/comPropertyAlarmSetting") + R comPropertyAlarmSettingSelectOne(@RequestParam("communityId") Long communityId); + + /** + * 分页查询所有数据 + * + * @param commonPage 查询实体 + * @return 所有数据 + */ + @PostMapping("/comPropertyHelp/queryAll") + R comPropertyHelpSelectAll(@RequestBody CommonPage commonPage); + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("/comPropertyHelp/{id}") + R comPropertyHelpSelectOne(@PathVariable("id") Serializable id); + + /** + * 新增数据 + * + * @param comPropertyHelp 实体对象 + * @return 新增结果 + */ + @PostMapping("/comPropertyHelp") + R comPropertyHelpInsert(@RequestBody ComPropertyHelpVO comPropertyHelp); + + /** + * 修改数据 + * + * @param comPropertyHelp 实体对象 + * @return 修改结果 + */ + @PostMapping("/comPropertyHelp/update") + R comPropertyHelpUpdate(@RequestBody ComPropertyHelpVO comPropertyHelp); + + /** + * 删除数据 + * + * @param id 主键结合 + * @return 删除结果 + */ + @GetMapping("/comPropertyHelp/del") + R comPropertyHelpDelete(@RequestParam("id") Long id); } -- Gitblit v1.7.1