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>();
|
}
|
}
|