소스 검색

代码优化

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;