From 08eefab8f0b04018dc62928ec2191bcae9d3e7d0 Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期五, 15 十月 2021 16:25:01 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/test' into test

---
 springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/user/UserService.java |   90 ++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 88 insertions(+), 2 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/user/UserService.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/user/UserService.java
index b5a9824..37bece3 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/user/UserService.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/user/UserService.java
@@ -2,6 +2,9 @@
 
 import java.util.List;
 
+import com.panzhihua.common.model.dtos.DataKanBansDto;
+import com.panzhihua.common.model.dtos.community.convenient.ConvenientMerchantDTO;
+import com.panzhihua.common.model.dtos.community.convenient.DisableOrEnableConvenientMerchantDTO;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.web.bind.annotation.*;
 
@@ -125,6 +128,26 @@
      */
     @PostMapping("changepassword")
     R changePassword(@RequestBody ChangePasswordVO changePasswordVO);
+
+    /**
+     * 重置密码用户登录密码默认admin123456
+     *
+     * @param userId
+     *            新密码
+     * @return 修改结果
+     */
+    @GetMapping("resetPassword")
+    R resetPassword(@RequestParam("userId") Long userId);
+
+    /**
+     * 批量重置密码用户登录密码默认admin123456
+     *
+     * @param userIds
+     *            新密码
+     * @return 修改结果
+     */
+    @GetMapping("resetPasswordPatch")
+    R resetPasswordPatch(@RequestParam("userIds") Long[] userIds,@RequestParam("password") String password);
 
     /**
      * 某社区后台人员查询
@@ -349,7 +372,7 @@
      * @return 角色集合
      */
     @PostMapping("/role/listrolebackstage")
-    R listRoleBackstage(@RequestParam("communityId") Long communityId);
+    R listRoleBackstage(@RequestParam("communityId") Long communityId,@RequestParam("pageNum")Integer pageNum,@RequestParam("pageSize")Integer pageSize);
 
     /**
      * 分页查询后台用户
@@ -838,7 +861,7 @@
      * @return 标签集合
      */
     @PostMapping("listtag/getTag")
-    R listTags(@RequestParam("communityId") Long communityId);
+    R listTags();
 
     /**
      * 添加SysUser信息
@@ -998,4 +1021,67 @@
      */
     @GetMapping("getUserListByCommunityId")
     R getUserListByCommunityId(@RequestParam("communityId") Long communityId);
+
+    /**
+     * 检查当前用户是否是社区工作人员
+     * @param phone
+     * @param communityId
+     * @return
+     */
+    @GetMapping("checkIsTeam")
+    R checkCurrentUserIsTeam(@RequestParam("phone") String phone, @RequestParam("communityId") Long communityId);
+
+    /**
+     * 便民服务新增商家账号
+     * @param convenientMerchantDTO
+     * @return 商家用户id
+     */
+    @PostMapping("insertMerchantAccount")
+    R addConvenientMerchantUser(@RequestBody ConvenientMerchantDTO convenientMerchantDTO);
+
+    /**
+     * 修改便民服务商家绑定账号
+     * @param userId
+     * @param account
+     * @return
+     */
+    @PutMapping("putMerchantUserAccount")
+    R putUserAccount(@RequestParam("userId") Long userId, @RequestParam("account") String account);
+
+    /**
+     * 禁用/启用便民服务商家用户
+     * @param disableOrEnableConvenientMerchantDTO
+     * @return
+     */
+    @PutMapping("disableOrEnableMerchantUsers")
+    R disableOrEnableMerchantUsers(@RequestBody DisableOrEnableConvenientMerchantDTO disableOrEnableConvenientMerchantDTO);
+
+    /**
+     * 根据openid维护社区团队里是否注册
+     * @param openid    用户微信唯一标识
+     */
+    @GetMapping("judgeCommunityTeam")
+    void judgeCommunityTeam(@RequestParam("openid") String openid);
+
+    /**
+     * 数据看板升级版
+     *
+     * @return 运营后台数据看板升级版
+     */
+    @PostMapping("datakanbans")
+    R dataKanBans(@RequestBody DataKanBansDto dataKanBansDto);
+
+    /**
+     * 运营后台-用户数据统计汇总
+     * @return  用户数据统计汇总
+     */
+    @GetMapping("community/statistics")
+    R communityStatistics();
+
+    /**
+     * 运营后台-用户数据统计导出
+     * @return  用户数据
+     */
+    @GetMapping("community/statistics/export")
+    R communityStatisticsExport();
 }

--
Gitblit v1.7.1