From 1990de023b30bf3982be1d5b2a0111c3ca2cc02c Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期四, 14 四月 2022 13:59:26 +0800
Subject: [PATCH] 修改bug

---
 springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbCheckUnitServiceImpl.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbCheckUnitServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbCheckUnitServiceImpl.java
index c0fa210..e53d164 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbCheckUnitServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbCheckUnitServiceImpl.java
@@ -8,6 +8,7 @@
 import com.panzhihua.common.model.vos.partybuilding.PartyBuildingMemberVO;
 import com.panzhihua.common.model.vos.partybuilding.excel.ComPbCheckUnitErrorExcelVO;
 import com.panzhihua.common.model.vos.partybuilding.excel.ComPbCheckUnitExcelVO;
+import com.panzhihua.common.utlis.StringUtils;
 import com.panzhihua.service_dangjian.dao.ComPbMemberDAO;
 import com.panzhihua.service_dangjian.dao.ComPbMemberRoleDAO;
 import com.panzhihua.service_dangjian.entity.ComPbCheckUnit;
@@ -134,7 +135,11 @@
      */
     @Override
     public R detailById(Long id) {
-        return R.ok(this.baseMapper.queryById(id));
+        ComPbCheckUnitVo checkUnitVo = this.baseMapper.queryById(id);
+        if(checkUnitVo != null && StringUtils.isEmpty(checkUnitVo.getContacts())){
+            checkUnitVo.setContacts("待编辑负责人");
+        }
+        return R.ok(checkUnitVo);
     }
 
     /**

--
Gitblit v1.7.1