wangliang преди 2 години
родител
ревизия
53afa5ac45
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      themis-business/src/main/java/com/qmth/themis/business/service/impl/TEStudentServiceImpl.java

+ 1 - 3
themis-business/src/main/java/com/qmth/themis/business/service/impl/TEStudentServiceImpl.java

@@ -142,9 +142,7 @@ public class TEStudentServiceImpl extends ServiceImpl<TEStudentMapper, TEStudent
             try {
                 student.setBasePhotoPath(filePath);
                 this.saveOrUpdate(student);
-                if (Objects.isNull(cacheService.updateStudentAccountCache(student.getId()))) {
-                    cacheService.removeStudentAccountCache(student.getId());
-                }
+                cacheService.updateStudentAccountCache(student.getId());
                 in = file.getInputStream();
                 ossUtil.upload(true, filePath, in, BinaryUtil.toBase64String(HexUtils.decodeHex(md5)));
 //                String url = ossUtil.getAliYunOssPublicDomain().getPublicUrl() + File.separator + filePath;