位置信息优化

This commit is contained in:
sxu 2025-06-23 17:27:39 +08:00
parent 87def2c183
commit dc64b1b099
2 changed files with 5 additions and 2 deletions

View File

@ -40,6 +40,8 @@ public class KitchenSubPlace extends BaseEntity {
private String canteenName; private String canteenName;
private Long areaId;
private String areaName; private String areaName;
/** 仓库id */ /** 仓库id */

View File

@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="imgUrl" column="img_url" /> <result property="imgUrl" column="img_url" />
<result property="canteenId" column="canteen_id" /> <result property="canteenId" column="canteen_id" />
<result property="canteenName" column="canteen_name" /> <result property="canteenName" column="canteen_name" />
<result property="areaId" column="area_id" />
<result property="areaName" column="area_name" /> <result property="areaName" column="area_name" />
<result property="warehouseId" column="warehouse_id" /> <result property="warehouseId" column="warehouse_id" />
<result property="createBy" column="create_by" /> <result property="createBy" column="create_by" />
@ -18,8 +19,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectKitchenSubPlaceVo"> <sql id="selectKitchenSubPlaceVo">
select ksp.sub_place_id, ksp.sub_place_name, ksp.img_url, ksp.canteen_id, ksp.warehouse_id, select ksp.sub_place_id, ksp.sub_place_name, ksp.img_url, ksp.canteen_id, ksp.warehouse_id, ksp.create_by,
ksp.create_by, ksp.create_time, ksp.update_by, ksp.update_time, bc.canteen_name, ba.area_name ksp.create_time, ksp.update_by, ksp.update_time, bc.canteen_name, ba.area_name, ba.area_id
from kitchen_sub_place ksp from kitchen_sub_place ksp
left join basic_canteen bc on bc.canteen_id = ksp.canteen_id left join basic_canteen bc on bc.canteen_id = ksp.canteen_id
left join basic_area ba on ba.area_id = bc.area_id left join basic_area ba on ba.area_id = bc.area_id