From b4d66110b3b6b31763335d60d602616571977c63 Mon Sep 17 00:00:00 2001 From: zyx <1029606625@qq.com> Date: Fri, 16 Jun 2023 16:47:51 +0800 Subject: [PATCH] =?UTF-8?q?6/16=20=E5=AE=8C=E6=88=90=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BC=9A=E5=91=98=E7=AE=A1=E7=90=86=E7=9A=84?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=8C=89=E9=92=AE=E5=92=8C=E5=85=AC=E5=85=B1?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E8=87=AA=E5=8A=A8=E5=A1=AB=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/renren/modules/takeout/entity/UserEntity.java | 6 ++++++ .../modules/takeout/service/impl/UserServiceImpl.java | 2 ++ 2 files changed, 8 insertions(+) diff --git a/renren-admin/src/main/java/io/renren/modules/takeout/entity/UserEntity.java b/renren-admin/src/main/java/io/renren/modules/takeout/entity/UserEntity.java index d304b8f..0ba72b2 100644 --- a/renren-admin/src/main/java/io/renren/modules/takeout/entity/UserEntity.java +++ b/renren-admin/src/main/java/io/renren/modules/takeout/entity/UserEntity.java @@ -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; } \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/takeout/service/impl/UserServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/takeout/service/impl/UserServiceImpl.java index 072b81f..01d366f 100644 --- a/renren-admin/src/main/java/io/renren/modules/takeout/service/impl/UserServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/takeout/service/impl/UserServiceImpl.java @@ -23,9 +23,11 @@ public class UserServiceImpl extends CrudServiceImpl getWrapper(Map params){ String id = (String)params.get("id"); + String phone = (String) params.get("phone"); QueryWrapper wrapper = new QueryWrapper<>(); wrapper.eq(StringUtils.isNotBlank(id), "id", id); + wrapper.like(StringUtils.isNotBlank(phone), "phone", phone); return wrapper; }