From 319e5c0c966ed49f02aff8237777d0e18b33b500 Mon Sep 17 00:00:00 2001
From: fengjin <1435304038@qq.com>
Date: 星期三, 09 十一月 2022 18:02:36 +0800
Subject: [PATCH] 1、小程序以及后台导办人员不可进行转派操作;2、后台其他附件与回复模板导办人员仅可修改和删除自己创建的;

---
 flower_city/src/main/java/com/dg/core/interceptor/AuthorizationInterceptor.java |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/flower_city/src/main/java/com/dg/core/interceptor/AuthorizationInterceptor.java b/flower_city/src/main/java/com/dg/core/interceptor/AuthorizationInterceptor.java
index a31de36..b9607f0 100644
--- a/flower_city/src/main/java/com/dg/core/interceptor/AuthorizationInterceptor.java
+++ b/flower_city/src/main/java/com/dg/core/interceptor/AuthorizationInterceptor.java
@@ -96,8 +96,11 @@
                     }
                     else
                     {
-                        sysUser.setOpenid(huaChengSysUser.getOpenid());
-                        IUserService.updateConfig(sysUser);
+                        if(StringUtils.isEmpty(sysUser.getOpenid()))
+                        {
+                            sysUser.setOpenid(huaChengSysUser.getOpenid());
+                            IUserService.updateConfig(sysUser);
+                        }
                     }
                     //新增浏览记录
                     iSysUserRecordService.add(sysUser);

--
Gitblit v1.7.1