From 1c0677b00266bd6556da04a38aabacbff42b09e1 Mon Sep 17 00:00:00 2001
From: wjli <591616088@qq.com>
Date: 星期一, 15 五月 2023 08:16:43 +0800
Subject: [PATCH] 修改无法显示段数据bug

---
 xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/mapper/AreaMapper.java |    9 ++++++---
 1 files changed, 6 insertions(+), 3 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 de3c04a..47c1b41 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
@@ -18,11 +18,14 @@
  */
 public interface AreaMapper extends BaseMapper<Area> {
 
-    @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)})
+    @Select("SELECT a.*,b.car_no as temp FROM t_area a LEFT JOIN t_car b ON a.car_id=b.id ${ew.customSqlSegment} ")
+    @Results({@Result(column="temp", property="carNo", jdbcType = JdbcType.VARCHAR)})
     IPage<Area> page2(Page initMpPage, @Param(Constants.WRAPPER) QueryWrapper<Area> wrapper);
 
-    @Select("SELECT * FROM t_area")
+    @Select("SELECT * FROM t_area order by name asc")
     @Results({@Result(column="id", property="children", many = @Many(select = "cn.exrick.xboot.your.mapper.AreaSectionMapper.getListByParentId"))})
     List<Area> list2();
+
+    @Select("SELECT b.id FROM t_area a,t_car b where a.user_id=b.follow_user_id and a.id=#{arg0}")
+    String getCarId(String areaId);
 }
\ No newline at end of file

--
Gitblit v1.9.1