update 优化 部门更新接口 清理缓存
This commit is contained in:
parent
bc06550918
commit
b9b76539ac
@ -13,22 +13,31 @@ import lombok.EqualsAndHashCode;
|
|||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class SysOssBo extends BaseEntity {
|
public class SysOssBo extends BaseEntity {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ossId
|
||||||
|
*/
|
||||||
|
private Long ossId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件名
|
* 文件名
|
||||||
*/
|
*/
|
||||||
private String fileName;
|
private String fileName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 原名
|
* 原名
|
||||||
*/
|
*/
|
||||||
private String originalName;
|
private String originalName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件后缀名
|
* 文件后缀名
|
||||||
*/
|
*/
|
||||||
private String fileSuffix;
|
private String fileSuffix;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* URL地址
|
* URL地址
|
||||||
*/
|
*/
|
||||||
private String url;
|
private String url;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 服务商
|
* 服务商
|
||||||
*/
|
*/
|
||||||
|
@ -236,6 +236,7 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
|
|||||||
* @param dept 部门信息
|
* @param dept 部门信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
@CacheEvict(cacheNames = CacheNames.SYS_DEPT, key = "#dept.deptId")
|
||||||
@Override
|
@Override
|
||||||
public int updateDept(SysDept dept) {
|
public int updateDept(SysDept dept) {
|
||||||
SysDept newParentDept = baseMapper.selectById(dept.getParentId());
|
SysDept newParentDept = baseMapper.selectById(dept.getParentId());
|
||||||
|
Loading…
Reference in New Issue
Block a user