6/16 完成后台页面会员管理的搜索按钮和公共字段自动填充
This commit is contained in:
parent
01cb605bf8
commit
1ef562c529
@ -1,5 +1,7 @@
|
||||
package io.renren.modules.takeout.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
@ -54,17 +56,21 @@ public class UserEntity {
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Long creator;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createDate;
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Long updater;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateDate;
|
||||
}
|
@ -23,9 +23,11 @@ public class UserServiceImpl extends CrudServiceImpl<UserDao, UserEntity, UserDT
|
||||
@Override
|
||||
public QueryWrapper<UserEntity> getWrapper(Map<String, Object> params){
|
||||
String id = (String)params.get("id");
|
||||
String phone = (String) params.get("phone");
|
||||
|
||||
QueryWrapper<UserEntity> wrapper = new QueryWrapper<>();
|
||||
wrapper.eq(StringUtils.isNotBlank(id), "id", id);
|
||||
wrapper.like(StringUtils.isNotBlank(phone), "phone", phone);
|
||||
|
||||
return wrapper;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user