From cb7ba7879d92ed53b5c97ab64c130fc489eb8bc0 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期四, 18 八月 2022 09:37:48 +0800
Subject: [PATCH] bug修改

---
 springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java
index bcece4d..3241add 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java
@@ -2910,7 +2910,7 @@
      */
     @Override
     public R dataKanBans(DataKanBansDto dataKanBansDto){
-        IndexDataKanbanVO indexDataKanbanVO = userDao.selectIndexDataKanban(dataKanBansDto.getAreaCode());
+        IndexDataKanbanVO indexDataKanbanVO = userDao.selectIndexDataKanban(dataKanBansDto.getAppId());
         List<String> communityUserX = new ArrayList<>();
         List<Integer> communityUserY = new ArrayList<>();
 
@@ -2928,9 +2928,9 @@
             page.setSize(20L);
         }
         if(dataKanBansDto.getType() != null && dataKanBansDto.getType().equals(DataKanBansDto.type.by)){
-            dataKanbanDTOS = userDao.selectCommunityUserOrderMonth(page, dataKanBansDto.getAreaCode()).getRecords();
+            dataKanbanDTOS = userDao.selectCommunityUserOrderMonth(page, dataKanBansDto.getAppId()).getRecords();
         }else{
-            dataKanbanDTOS = userDao.selectCommunityUserOrder(page, dataKanBansDto.getAreaCode()).getRecords();
+            dataKanbanDTOS = userDao.selectCommunityUserOrder(page, dataKanBansDto.getAppId()).getRecords();
         }
         if (!ObjectUtils.isEmpty(dataKanbanDTOS)) {
             dataKanbanDTOS.forEach(dataKanbanDTO -> {
@@ -2943,7 +2943,7 @@
         List<Date> serverndays = com.panzhihua.common.utlis.DateUtils.getOldDays();
         serverndays.forEach(date -> {
             // 查询社区活动数量
-            DataKanbanDTO dataKanbanDTO = userDao.selectCommunityAddUserOrder(dataKanBansDto.getAreaCode(),date);
+            DataKanbanDTO dataKanbanDTO = userDao.selectCommunityAddUserOrder(dataKanBansDto.getAppId(),date);
             communityActiveUserX.add(DateFormatUtils.format(date, "MM-dd"));
             communityActiveUserY.add(dataKanbanDTO.getNum());
             communityActiveUserZ.add(dataKanbanDTO.getDayNum());
@@ -3650,6 +3650,22 @@
         return R.ok();
     }
 
+    @Override
+    public R tfLogin(UuLoginVO uuLoginVO) {
+        SysUserDO sysUserDO=userDao.selectOne(new QueryWrapper<SysUserDO>().lambda().eq(SysUserDO::getPhone,uuLoginVO.getMobile()).eq(SysUserDO::getType,16));
+        if(sysUserDO==null){
+            sysUserDO=new SysUserDO();
+            sysUserDO.setPassword("$2a$10$F/2lE2NMhKNHJfi5.FLmfu7jIr7ImRWgCTTeO6m3IRNR2V4sv8YR.");
+            sysUserDO.setType(16);
+            sysUserDO.setStatus(1);
+            sysUserDO.setPhone(uuLoginVO.getMobile());
+            sysUserDO.setAccount(uuLoginVO.getMobile());
+            sysUserDO.setAppId("wx0cef797390444b75");
+            userDao.insert(sysUserDO);
+        }
+        return R.ok();
+    }
+
 
     @Override
     public R getAreaAndStreet() {

--
Gitblit v1.7.1