From d99a56e37cf9109b46ee68d34a06594ef5615ed3 Mon Sep 17 00:00:00 2001 From: 张天森 <1292933220@qq.com> Date: 星期四, 10 十一月 2022 16:06:05 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/huacheng_test' into huacheng_test --- springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/api/ComPropertyRepairApi.java | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/api/ComPropertyRepairApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/api/ComPropertyRepairApi.java index 54e08a8..a28e9c6 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/api/ComPropertyRepairApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/api/ComPropertyRepairApi.java @@ -37,6 +37,15 @@ return this.comPropertyRepairService.pageList(commonPage); } + /** + * 分页查询所有数据 脱敏 + * @return 所有数据 + */ + @PostMapping("queryAllDesensitize") + public R selectAllDesensitize(@RequestBody CommonPage commonPage) { + return this.comPropertyRepairService.pageListDesensitize(commonPage); + } + /** @@ -50,6 +59,19 @@ return this.comPropertyRepairService.selectDetail(id); } + + /** + * 通过主键查询单条数据 脱敏 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("desensitize/{id}") + public R selectOneDesensitize(@PathVariable("id") Long id) { + return this.comPropertyRepairService.selectDetailDesensitize(id); + } + + /** * 新增数据 * -- Gitblit v1.7.1