Ver código fonte

Merge branch 'dev_v3.2.1' of http://git.qmth.com.cn/wangliang/distributed-print-service into dev_v3.2.1

xiaof 2 anos atrás
pai
commit
179fa5c92b

+ 7 - 0
teachcloud-common/src/main/java/com/qmth/teachcloud/common/service/impl/AuthInfoServiceImpl.java

@@ -215,6 +215,13 @@ public class AuthInfoServiceImpl implements AuthInfoService {
                     basicSchool.setLogo(o.getLogo());
                 }
                 basicSchoolSet.add(basicSchool);
+            } else {
+                basicSchool.setAccessKey(o.getAccessKey());
+                basicSchool.setAccessSecret(o.getAccessSecret());
+                basicSchool.setLogo(o.getLogoUrl());
+                basicSchoolService.saveOrUpdate(basicSchool);
+                commonCacheService.updateSchoolCache(basicSchool.getId());
+                commonCacheService.updateSchoolCache(basicSchool.getCode());
             }
 
             QueryWrapper<SysOrg> sysOrgQueryWrapper = new QueryWrapper<>();