|
|
@@ -1,7 +1,7 @@
|
|
|
package cn.iocoder.yudao.framework.mybatis.core.handler;
|
|
|
|
|
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
|
|
-import cn.iocoder.yudao.framework.web.core.util.WebFrameworkUtils;
|
|
|
+import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
|
|
|
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
|
|
|
import org.apache.ibatis.reflection.MetaObject;
|
|
|
|
|
|
@@ -32,7 +32,7 @@ public class DefaultDBFieldHandler implements MetaObjectHandler {
|
|
|
baseDO.setUpdateTime(current);
|
|
|
}
|
|
|
|
|
|
- Long userId = WebFrameworkUtils.getLoginUserId();
|
|
|
+ Long userId = SecurityFrameworkUtils.getLoginUserId();
|
|
|
// 当前登录用户不为空,创建人为空,则当前登录用户为创建人
|
|
|
if (Objects.nonNull(userId) && Objects.isNull(baseDO.getCreator())) {
|
|
|
baseDO.setCreator(userId.toString());
|
|
|
@@ -54,7 +54,7 @@ public class DefaultDBFieldHandler implements MetaObjectHandler {
|
|
|
|
|
|
// 当前登录用户不为空,更新人为空,则当前登录用户为更新人
|
|
|
Object modifier = getFieldValByName("updater", metaObject);
|
|
|
- Long userId = WebFrameworkUtils.getLoginUserId();
|
|
|
+ Long userId = SecurityFrameworkUtils.getLoginUserId();
|
|
|
if (Objects.nonNull(userId) && Objects.isNull(modifier)) {
|
|
|
setFieldValByName("updater", userId.toString(), metaObject);
|
|
|
}
|