v3.29 【优化】优化代码生成;【优化】优化redis缓存key;【优化】员工禁用强制下线bug;【优化】本地文件使用File.separator

This commit is contained in:
zhuoda
2026-01-22 20:17:48 +08:00
parent efff2dd6d2
commit 36de38fda3
33 changed files with 136 additions and 97 deletions

View File

@@ -36,7 +36,6 @@ public class DepartmentEntity {
/**
* 负责人员工 id
*/
@TableField(updateStrategy = FieldStrategy.NEVER)
private Long managerId;
/**

View File

@@ -274,12 +274,12 @@ public class EmployeeService {
if (null == employeeEntity) {
return ResponseDTO.error(UserErrorCode.DATA_NOT_EXIST);
}
// 更新禁用状态
employeeDao.updateDisableFlag(employeeId, !employeeEntity.getDisabledFlag());
if (employeeEntity.getDisabledFlag()) {
// 强制退出登录
StpUtil.logout(UserTypeEnum.ADMIN_EMPLOYEE.getValue() + StringConst.COLON + employeeId);
}
// 强制退出登录
StpUtil.logout(UserTypeEnum.ADMIN_EMPLOYEE.getValue() + StringConst.COLON + employeeId);
return ResponseDTO.ok();
}

View File

@@ -15,7 +15,7 @@
SELECT * FROM t_goods
<where>
<if test="query.searchWord != null and query.searchWord !=''">
INSTR(goods_name,#{query.searchWord})
AND INSTR(goods_name,#{query.searchWord})
</if>
<if test="query.place != null">
AND INSTR(place,#{query.place})