From c1b942ccf2ee1ab5d01ae590d6a16ce14d0cf54b Mon Sep 17 00:00:00 2001
From: luliqiang <kidgrow>
Date: Fri, 12 Mar 2021 19:21:45 +0800
Subject: [PATCH] 1、增加私有云客户创建时的标识位和服务器Guuid 2、增加私有云服务器License下载 3、增加私有云数据库下载

---
 kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/java/com/kidgrow/usercenter/service/impl/SysUserServiceImpl.java |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diff --git a/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/java/com/kidgrow/usercenter/service/impl/SysUserServiceImpl.java b/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/java/com/kidgrow/usercenter/service/impl/SysUserServiceImpl.java
index 744856f..d9697f0 100644
--- a/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/java/com/kidgrow/usercenter/service/impl/SysUserServiceImpl.java
+++ b/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/java/com/kidgrow/usercenter/service/impl/SysUserServiceImpl.java
@@ -156,9 +156,34 @@
             //医院信息
             DoctorUserAll doctorUserAllVo = baseMapper.findDoctorUserAllData(sysUser.getId());
             if (doctorUserAllVo != null) {
-                loginAppUser.setDoctorUserAllVO(doctorUserAllVo);
                 //是否医院管理员
                 loginAppUser.setHAdminUser(doctorUserAllVo.getIsAdminUser());
+                //1表示调用老系统接口,2表示调用新系统接口,3表示不执行接口调用
+                byte state=0;
+                if(doctorUserAllVo.getDepScreen()==null&&doctorUserAllVo.getDepNewScreenclient()==null){
+                     state=1;
+                }
+                if(doctorUserAllVo.getDepScreen()!=null&&doctorUserAllVo.getDepScreen()==0){
+                    state=3;
+                }
+                if(doctorUserAllVo.getDepScreen()!=null&&doctorUserAllVo.getDepScreen()==1){
+                    if(doctorUserAllVo.getDepNewScreenclient()!=null&&doctorUserAllVo.getDepNewScreenclient()==1){
+                        state=2;
+                    }
+                    if(doctorUserAllVo.getDepNewScreenclient()!=null&&doctorUserAllVo.getDepNewScreenclient()==0){
+                        state=1;
+                    }
+                }
+                doctorUserAllVo.setInterfaceState(state);
+                loginAppUser.setDoctorUserAllVO(doctorUserAllVo);
+//                1、is_screen为空时,is_new_screenclient必须为空;
+//                2、is_screen不为空时,is_new_screenclient可为空,可不为空;
+//                3、当两个都为空时,默认调用老系统的接口;
+//                4、当is_screen为false时,不论is_new_screenclient是什么不需要调用任何接口;
+//                5、当is_screen为true时,is_new_screenclient为false或空时,调用老系统的接口;
+//                6、当is_screen为true时,is_new_screenclient为true时,调用新系统的接口;
+
+
             }
         }
         return loginAppUser;

--
Gitblit v1.8.0