Sfoglia il codice sorgente

update 优化 部门更新接口 清理缓存

疯狂的狮子li 2 anni fa
parent
commit
b9b76539ac

+ 9 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/bo/SysOssBo.java

@@ -14,21 +14,30 @@ import lombok.EqualsAndHashCode;
 public class SysOssBo extends BaseEntity {
 
     /**
+     * ossId
+     */
+    private Long ossId;
+
+    /**
      * 文件名
      */
     private String fileName;
+
     /**
      * 原名
      */
     private String originalName;
+
     /**
      * 文件后缀名
      */
     private String fileSuffix;
+
     /**
      * URL地址
      */
     private String url;
+
     /**
      * 服务商
      */

+ 1 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java

@@ -236,6 +236,7 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
      * @param dept 部门信息
      * @return 结果
      */
+    @CacheEvict(cacheNames = CacheNames.SYS_DEPT, key = "#dept.deptId")
     @Override
     public int updateDept(SysDept dept) {
         SysDept newParentDept = baseMapper.selectById(dept.getParentId());