From 5cc66034f6d2dba30d2132078b2730f1dd4abf86 Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期六, 31 七月 2021 21:00:56 +0800
Subject: [PATCH] 修改bug

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwRotaServiceImpl.java |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwRotaServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwRotaServiceImpl.java
index e623c1a..a5ff63a 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwRotaServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSwRotaServiceImpl.java
@@ -31,6 +31,7 @@
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
+import java.util.Map;
 
 /**
  * @auther txb
@@ -114,6 +115,11 @@
                 ComSwRotaPersonVO comSwRotaPersonVO = new ComSwRotaPersonVO();
                 comSwRotaPersonVO.setId(Long.valueOf(rotaPersonArray[i]));
                 comSwRotaPersonVO.setName(rotaPersonNameArray[i]);
+                Map<String,String> userMap = this.comSwRotaDAO.getImageUrl(Long.valueOf(rotaPersonArray[i]));
+                if(userMap != null){
+                    comSwRotaPersonVO.setPhone(userMap.get("phone"));
+                    comSwRotaPersonVO.setImageUrl(userMap.get("url"));
+                }
                 rotaPersons.add(comSwRotaPersonVO);
             }
         }
@@ -138,6 +144,11 @@
                 ComSwRotaPersonVO comSwRotaPersonVO = new ComSwRotaPersonVO();
                 comSwRotaPersonVO.setId(Long.valueOf(rotaPersonArray[i]));
                 comSwRotaPersonVO.setName(rotaPersonNameArray[i]);
+                Map<String,String> userMap = this.comSwRotaDAO.getImageUrl(Long.valueOf(rotaPersonArray[i]));
+                if(userMap != null){
+                    comSwRotaPersonVO.setPhone(userMap.get("phone"));
+                    comSwRotaPersonVO.setImageUrl(userMap.get("url"));
+                }
                 rotaLeaders.add(comSwRotaPersonVO);
             }
         }

--
Gitblit v1.7.1