xin
2025-05-30 b394df082b875856884d6d02cce2a43c49ad6704
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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>();
    }
}