From 2d25e6b0185514c95552c41af1da371cc1cc17cd Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期二, 15 十一月 2022 17:52:42 +0800 Subject: [PATCH] 修改办事指南所属部门集合 --- flower_city/src/main/java/com/dg/core/service/impl/SysUserServiceImpl.java | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/flower_city/src/main/java/com/dg/core/service/impl/SysUserServiceImpl.java b/flower_city/src/main/java/com/dg/core/service/impl/SysUserServiceImpl.java index fa35932..c622e3a 100644 --- a/flower_city/src/main/java/com/dg/core/service/impl/SysUserServiceImpl.java +++ b/flower_city/src/main/java/com/dg/core/service/impl/SysUserServiceImpl.java @@ -65,7 +65,14 @@ SysUser sysUser = baseMapper.selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getPhonenumber, phonenumber)); if (sysUser==null){ //查询花城e+是否存在此用户 - HuaChengSysUser huaChengSysUser=iHuaChengSysUserService.selectData("","",phonenumber); + List<HuaChengSysUser> list=iHuaChengSysUserService.selectData("","",phonenumber); + HuaChengSysUser huaChengSysUser=null; + + if(list!=null || list.size()>0 ) + { + huaChengSysUser=list.get(0); + } + if(huaChengSysUser==null) { SysUser newUser = new SysUser(); @@ -154,7 +161,14 @@ SysUser sysUser = baseMapper.selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getPhonenumber, phonenumber)); if (sysUser==null){ //查询花城e+是否存在此用户 - HuaChengSysUser huaChengSysUser=iHuaChengSysUserService.selectData("","",phonenumber); + List<HuaChengSysUser> list=iHuaChengSysUserService.selectData("","",phonenumber); + HuaChengSysUser huaChengSysUser=null; + + if(list!=null || list.size()>0 ) + { + huaChengSysUser=list.get(0); + } + SysUser newUser = new SysUser(); if(huaChengSysUser==null) { @@ -290,4 +304,9 @@ + + + + + } -- Gitblit v1.7.1