From 74d7aed668f67adea64ba507373b58b86fffd100 Mon Sep 17 00:00:00 2001 From: zhangzeli <123456> Date: 星期一, 08 十一月 2021 08:41:05 +0800 Subject: [PATCH] 用户表,片区表 --- xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/mapper/AreaMapper.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/mapper/AreaMapper.java b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/mapper/AreaMapper.java index b7824a9..d641dd8 100644 --- a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/mapper/AreaMapper.java +++ b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/mapper/AreaMapper.java @@ -21,7 +21,7 @@ */ public interface AreaMapper extends BaseMapper<Area> { - @Select("SELECT a.*,b.username as temp FROM t_area a LEFT JOIN t_user b ON a.user_id=b.id ${ew.customSqlSegment} ") - @Results({@Result(column="temp", property="userName", jdbcType = JdbcType.VARCHAR)}) + @Select("SELECT a.*,b.nickname as temp FROM t_area a LEFT JOIN t_user b ON a.user_id=b.id ${ew.customSqlSegment} ") + @Results({@Result(column="temp", property="nickName", jdbcType = JdbcType.VARCHAR)}) IPage<Area> page2(Page initMpPage, @Param(Constants.WRAPPER) QueryWrapper<Area> wrapper); } \ No newline at end of file -- Gitblit v1.9.1