From 1ed946036aa3110055b15cc39157721221d5e5b7 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期二, 15 二月 2022 10:35:41 +0800
Subject: [PATCH] 三社功能提交

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActSocialWorkerServiceImpl.java |   28 ++++++++++++++++------------
 1 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActSocialWorkerServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActSocialWorkerServiceImpl.java
index a602b7c..ff7298e 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActSocialWorkerServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActSocialWorkerServiceImpl.java
@@ -127,18 +127,6 @@
             for(ComActSocialWorkerExcelVO comActSocialWorkerExcelVO:lis) {
                 ComActSocialWorker comActSocialWorkerDO = new ComActSocialWorker();
                 BeanUtils.copyProperties(comActSocialWorkerExcelVO,comActSocialWorkerDO);
-                if (StringUtils.isNotEmpty(comActSocialWorkerExcelVO.getStreetId())) {
-                    ComStreetDO comStreetDO=comStreetDAO.selectOne(new QueryWrapper<ComStreetDO>().eq("name",comActSocialWorkerExcelVO.getStreetId()));
-                    if(comStreetDO!=null){
-                        comActSocialWorkerDO.setStreetId(comStreetDO.getStreetId());
-                    }
-                }
-                if (StringUtils.isNotEmpty(comActSocialWorkerExcelVO.getSocialOrgId())) {
-                    ComActSocialOrg comActSocialOrgDO=comActSocialOrgMapper.selectOne(new QueryWrapper<ComActSocialOrg>().eq("name",comActSocialWorkerExcelVO.getSocialOrgId()));
-                    if(comActSocialOrgDO!=null){
-                        comActSocialWorkerDO.setSocialOrgId(comActSocialOrgDO.getId());
-                    }
-                }
                 if(StringUtils.isNotEmpty(comActSocialWorkerExcelVO.getCommunityId())){
                     ComActDO comActDO= comActDAO.selectOne(new QueryWrapper<ComActDO>().eq("name",comActSocialWorkerExcelVO.getCommunityId()));
                     if(comActDO!=null){
@@ -153,6 +141,22 @@
                         comActSocialWorkerDO.setGen(0);
                     }
                 }
+                if(StringUtils.isNotEmpty(comActSocialWorkerExcelVO.getCredential())){
+                    if("是".equals(comActSocialWorkerExcelVO.getCredential())){
+                        comActSocialWorkerDO.setCredential(1);
+                    }
+                    else {
+                        comActSocialWorkerDO.setCredential(0);
+                    }
+                }
+                if(StringUtils.isNotEmpty(comActSocialWorkerExcelVO.getCredential())){
+                    if("是".equals(comActSocialWorkerExcelVO.getCredential())){
+                        comActSocialWorkerDO.setCredential(1);
+                    }
+                    else {
+                        comActSocialWorkerDO.setCredential(0);
+                    }
+                }
                 list.add(comActSocialWorkerDO);
             }
             this.saveBatch(list);

--
Gitblit v1.7.1