From d93356927d8a0a5a91963c28d461d9107562d759 Mon Sep 17 00:00:00 2001 From: xin <1099200748@qq.com> Date: Fri, 30 May 2025 17:38:26 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/xin' --- oying-system/src/main/java/com/oying/modules/pc/utils/WrapperUtils.java | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/oying-system/src/main/java/com/oying/modules/pc/utils/WrapperUtils.java b/oying-system/src/main/java/com/oying/modules/pc/utils/WrapperUtils.java new file mode 100644 index 0000000..304b570 --- /dev/null +++ b/oying-system/src/main/java/com/oying/modules/pc/utils/WrapperUtils.java @@ -0,0 +1,18 @@ +package com.oying.modules.pc.utils; + +import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; +import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; +import com.oying.base.BaseEntity; + +public class WrapperUtils { + + public static <T> UpdateWrapper<T> baseUpdateWrapper(Long id, Long updateBy) { + return new UpdateWrapper<T>() + .eq("id", id) + .set("update_by", updateBy); + } + + public static <T extends BaseEntity> LambdaUpdateWrapper<T> getBaseLambdaUpdateWrapper(Long id, Long updateBy) { + return new LambdaUpdateWrapper<T>(); + } +} -- Gitblit v1.9.3