Selaa lähdekoodia

增加区块标签

lv.wenbin 1 vuosi sitten
vanhempi
commit
612d589aae

+ 18 - 0
ems-cloud/ems-modules/ems-server/src/main/java/com/ruoyi/ems/controller/CommonController.java

@@ -14,12 +14,15 @@ import com.ruoyi.common.core.web.controller.BaseController;
 import com.ruoyi.common.core.web.domain.AjaxResult;
 import com.ruoyi.ems.domain.ElecValencyType;
 import com.ruoyi.ems.domain.EmsCls;
+import com.ruoyi.ems.domain.EmsTag;
 import com.ruoyi.ems.domain.vo.TreeEntity;
 import com.ruoyi.ems.service.IElecValencyTypeService;
 import com.ruoyi.ems.service.IEmsClsService;
+import com.ruoyi.ems.service.IEmsTagService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RestController;
 
 import java.util.List;
@@ -42,6 +45,9 @@ public class CommonController extends BaseController {
     @Autowired
     private IEmsClsService emsClsService;
 
+    @Autowired
+    private IEmsTagService emsTagService;
+
     /**
      * 电价分类
      *
@@ -63,4 +69,16 @@ public class CommonController extends BaseController {
         List<TreeEntity> types = emsClsService.selectEmsClsTreeList(new EmsCls());
         return success(types);
     }
+
+    /**
+     * 标签列表
+     * @return 标签列表
+     */
+    @GetMapping(value = "/emstag")
+    public AjaxResult getEmsTag(@RequestParam(name = "tagModel", required = false) String tagModel) {
+        EmsTag param = new EmsTag();
+        param.setTagModel(tagModel);
+        List<EmsTag> types = emsTagService.selectEmsTagList(param);
+        return success(types);
+    }
 }

+ 24 - 13
ems-cloud/ems-modules/ems-server/src/main/java/com/ruoyi/ems/domain/AreaBuildingZoning.java

@@ -37,10 +37,6 @@ public class AreaBuildingZoning extends BaseEntity
     @Excel(name = "楼层")
     private Long floor;
 
-    /** 房间号 */
-    @Excel(name = "房间号")
-    private String roomNo;
-
     /** 建筑划分面积 */
     @Excel(name = "建筑划分面积")
     private Long bldgLdArea;
@@ -49,6 +45,12 @@ public class AreaBuildingZoning extends BaseEntity
     @Excel(name = "使用详情")
     private String usageDetail;
 
+    /** 标签代码 */
+    private String tagCode;
+
+    /** 标签名称 */
+    private String tagName;
+
     public void setId(Long id) 
     {
         this.id = id;
@@ -101,15 +103,7 @@ public class AreaBuildingZoning extends BaseEntity
     {
         return floor;
     }
-    public void setRoomNo(String roomNo) 
-    {
-        this.roomNo = roomNo;
-    }
 
-    public String getRoomNo() 
-    {
-        return roomNo;
-    }
     public void setBldgLdArea(Long bldgLdArea) 
     {
         this.bldgLdArea = bldgLdArea;
@@ -129,6 +123,22 @@ public class AreaBuildingZoning extends BaseEntity
         return usageDetail;
     }
 
+    public String getTagCode() {
+        return tagCode;
+    }
+
+    public void setTagCode(String tagCode) {
+        this.tagCode = tagCode;
+    }
+
+    public String getTagName() {
+        return tagName;
+    }
+
+    public void setTagName(String tagName) {
+        this.tagName = tagName;
+    }
+
     @Override
     public String toString() {
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
@@ -137,9 +147,10 @@ public class AreaBuildingZoning extends BaseEntity
             .append("zoningCode", getZoningCode())
             .append("zoningName", getZoningName())
             .append("floor", getFloor())
-            .append("roomNo", getRoomNo())
             .append("bldgLdArea", getBldgLdArea())
             .append("usageDetail", getUsageDetail())
+            .append("tagCode", getTagCode())
+            .append("tagName", getTagName())
             .toString();
     }
 }

+ 75 - 0
ems-cloud/ems-modules/ems-server/src/main/java/com/ruoyi/ems/domain/EmsTag.java

@@ -0,0 +1,75 @@
+package com.ruoyi.ems.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.core.web.domain.BaseEntity;
+
+/**
+ * 标签分类对象 dim_ems_tag
+ * 
+ * @author ruoyi
+ * @date 2024-07-31
+ */
+public class EmsTag extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 序号 */
+    private Long id;
+
+    /** 标签模型 */
+    private String tagModel;
+
+    /** 标签代码 */
+    private String tagCode;
+
+    /** 标签名称 */
+    private String tagName;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setTagModel(String tagModel) 
+    {
+        this.tagModel = tagModel;
+    }
+
+    public String getTagModel() 
+    {
+        return tagModel;
+    }
+    public void setTagCode(String tagCode) 
+    {
+        this.tagCode = tagCode;
+    }
+
+    public String getTagCode() 
+    {
+        return tagCode;
+    }
+    public void setTagName(String tagName) 
+    {
+        this.tagName = tagName;
+    }
+
+    public String getTagName() 
+    {
+        return tagName;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("tagModel", getTagModel())
+            .append("tagCode", getTagCode())
+            .append("tagName", getTagName())
+            .toString();
+    }
+}

+ 61 - 0
ems-cloud/ems-modules/ems-server/src/main/java/com/ruoyi/ems/mapper/EmsTagMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.ems.mapper;
+
+import java.util.List;
+
+import com.ruoyi.ems.domain.EmsTag;
+
+/**
+ * 标签分类Mapper接口
+ *
+ * @author ruoyi
+ * @date 2024-07-31
+ */
+public interface EmsTagMapper {
+    /**
+     * 查询标签分类
+     *
+     * @param id 标签分类主键
+     * @return 标签分类
+     */
+    EmsTag selectEmsTagById(Long id);
+
+    /**
+     * 查询标签分类列表
+     *
+     * @param emsTag 标签分类
+     * @return 标签分类集合
+     */
+    List<EmsTag> selectEmsTagList(EmsTag emsTag);
+
+    /**
+     * 新增标签分类
+     *
+     * @param emsTag 标签分类
+     * @return 结果
+     */
+    int insertEmsTag(EmsTag emsTag);
+
+    /**
+     * 修改标签分类
+     *
+     * @param emsTag 标签分类
+     * @return 结果
+     */
+    int updateEmsTag(EmsTag emsTag);
+
+    /**
+     * 删除标签分类
+     *
+     * @param id 标签分类主键
+     * @return 结果
+     */
+    int deleteEmsTagById(Long id);
+
+    /**
+     * 批量删除标签分类
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    int deleteEmsTagByIds(Long[] ids);
+}

+ 61 - 0
ems-cloud/ems-modules/ems-server/src/main/java/com/ruoyi/ems/service/IEmsTagService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.ems.service;
+
+import java.util.List;
+
+import com.ruoyi.ems.domain.EmsTag;
+
+/**
+ * 标签分类Service接口
+ *
+ * @author ruoyi
+ * @date 2024-07-31
+ */
+public interface IEmsTagService {
+    /**
+     * 查询标签分类
+     *
+     * @param id 标签分类主键
+     * @return 标签分类
+     */
+    EmsTag selectEmsTagById(Long id);
+
+    /**
+     * 查询标签分类列表
+     *
+     * @param emsTag 标签分类
+     * @return 标签分类集合
+     */
+    List<EmsTag> selectEmsTagList(EmsTag emsTag);
+
+    /**
+     * 新增标签分类
+     *
+     * @param emsTag 标签分类
+     * @return 结果
+     */
+    int insertEmsTag(EmsTag emsTag);
+
+    /**
+     * 修改标签分类
+     *
+     * @param emsTag 标签分类
+     * @return 结果
+     */
+    int updateEmsTag(EmsTag emsTag);
+
+    /**
+     * 批量删除标签分类
+     *
+     * @param ids 需要删除的标签分类主键集合
+     * @return 结果
+     */
+    int deleteEmsTagByIds(Long[] ids);
+
+    /**
+     * 删除标签分类信息
+     *
+     * @param id 标签分类主键
+     * @return 结果
+     */
+    int deleteEmsTagById(Long id);
+}

+ 87 - 0
ems-cloud/ems-modules/ems-server/src/main/java/com/ruoyi/ems/service/impl/EmsTagServiceImpl.java

@@ -0,0 +1,87 @@
+package com.ruoyi.ems.service.impl;
+
+import com.ruoyi.ems.domain.EmsTag;
+import com.ruoyi.ems.mapper.EmsTagMapper;
+import com.ruoyi.ems.service.IEmsTagService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * 标签分类Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2024-07-31
+ */
+@Service
+public class EmsTagServiceImpl implements IEmsTagService {
+    @Autowired
+    private EmsTagMapper emsTagMapper;
+
+    /**
+     * 查询标签分类
+     *
+     * @param id 标签分类主键
+     * @return 标签分类
+     */
+    @Override
+    public EmsTag selectEmsTagById(Long id) {
+        return emsTagMapper.selectEmsTagById(id);
+    }
+
+    /**
+     * 查询标签分类列表
+     *
+     * @param emsTag 标签分类
+     * @return 标签分类
+     */
+    @Override
+    public List<EmsTag> selectEmsTagList(EmsTag emsTag) {
+        return emsTagMapper.selectEmsTagList(emsTag);
+    }
+
+    /**
+     * 新增标签分类
+     *
+     * @param emsTag 标签分类
+     * @return 结果
+     */
+    @Override
+    public int insertEmsTag(EmsTag emsTag) {
+        return emsTagMapper.insertEmsTag(emsTag);
+    }
+
+    /**
+     * 修改标签分类
+     *
+     * @param emsTag 标签分类
+     * @return 结果
+     */
+    @Override
+    public int updateEmsTag(EmsTag emsTag) {
+        return emsTagMapper.updateEmsTag(emsTag);
+    }
+
+    /**
+     * 批量删除标签分类
+     *
+     * @param ids 需要删除的标签分类主键
+     * @return 结果
+     */
+    @Override
+    public int deleteEmsTagByIds(Long[] ids) {
+        return emsTagMapper.deleteEmsTagByIds(ids);
+    }
+
+    /**
+     * 删除标签分类信息
+     *
+     * @param id 标签分类主键
+     * @return 结果
+     */
+    @Override
+    public int deleteEmsTagById(Long id) {
+        return emsTagMapper.deleteEmsTagById(id);
+    }
+}

+ 9 - 6
ems-cloud/ems-modules/ems-server/src/main/resources/mapper/ems/AreaBuildingZoningMapper.xml

@@ -11,13 +11,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="zoningCode"    column="zoning_code"    />
         <result property="zoningName"    column="zoning_name"    />
         <result property="floor"    column="floor"    />
-        <result property="roomNo"    column="room_no"    />
         <result property="bldgLdArea"    column="bldg_ld_area"    />
         <result property="usageDetail"    column="usage_detail"    />
+        <result property="tagCode"    column="tag_code"    />
+        <result property="tagName"    column="tag_name"    />
     </resultMap>
 
     <sql id="selectAreaBuildingZoningVo">
-        select z.`id`, z.`bldg_code`, b.`bldg_name`, z.`zoning_code`, z.`zoning_name`, z.`floor`, z.`room_no`, z.`bldg_ld_area`, z.`usage_detail` from adm_area_building_zoning z LEFT JOIN adm_area_building b ON z.bldg_code = b.bldg_code
+        select z.`id`, z.`bldg_code`, b.`bldg_name`, z.`zoning_code`, z.`zoning_name`, z.`floor`, z.`bldg_ld_area`, z.`usage_detail`, z.`tag_code`, t.tag_name from adm_area_building_zoning z
+            LEFT JOIN adm_area_building b ON z.bldg_code = b.bldg_code
+            LEFT JOIN dim_ems_tag t ON z.tag_code = t.tag_code
     </sql>
 
     <select id="selectAreaBuildingZoningList" parameterType="com.ruoyi.ems.domain.AreaBuildingZoning" resultMap="AreaBuildingZoningResult">
@@ -27,9 +30,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="zoningCode != null  and zoningCode != ''"> and z.`zoning_code` = #{zoningCode}</if>
             <if test="zoningName != null  and zoningName != ''"> and z.`zoning_name` like concat('%', #{zoningName}, '%')</if>
             <if test="floor != null "> and z.`floor` = #{floor}</if>
-            <if test="roomNo != null  and roomNo != ''"> and z.`room_no` = #{roomNo}</if>
             <if test="bldgLdArea != null "> and z.`bldg_ld_area` = #{bldgLdArea}</if>
             <if test="usageDetail != null  and usageDetail != ''"> and z.`usage_detail` = #{usageDetail}</if>
+            <if test="tagCode != null  and tagCode != ''"> and z.`tag_code` = #{tagCode}</if>
         </where>
     </select>
     
@@ -45,18 +48,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="zoningCode != null and zoningCode != ''">zoning_code,</if>
             <if test="zoningName != null and zoningName != ''">zoning_name,</if>
             <if test="floor != null">floor,</if>
-            <if test="roomNo != null">room_no,</if>
             <if test="bldgLdArea != null">bldg_ld_area,</if>
             <if test="usageDetail != null">usage_detail,</if>
+            <if test="tagCode != null">tag_code,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="bldgCode != null and bldgCode != ''">#{bldgCode},</if>
             <if test="zoningCode != null and zoningCode != ''">#{zoningCode},</if>
             <if test="zoningName != null and zoningName != ''">#{zoningName},</if>
             <if test="floor != null">#{floor},</if>
-            <if test="roomNo != null">#{roomNo},</if>
             <if test="bldgLdArea != null">#{bldgLdArea},</if>
             <if test="usageDetail != null">#{usageDetail},</if>
+            <if test="tagCode != null">#{tagCode}</if>
          </trim>
     </insert>
 
@@ -67,9 +70,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="zoningCode != null and zoningCode != ''">zoning_code = #{zoningCode},</if>
             <if test="zoningName != null and zoningName != ''">zoning_name = #{zoningName},</if>
             <if test="floor != null">floor = #{floor},</if>
-            <if test="roomNo != null">room_no = #{roomNo},</if>
             <if test="bldgLdArea != null">bldg_ld_area = #{bldgLdArea},</if>
             <if test="usageDetail != null">usage_detail = #{usageDetail},</if>
+            <if test="tagCode != null">tag_code = #{tagCode},</if>
         </trim>
         where id = #{id}
     </update>

+ 66 - 0
ems-cloud/ems-modules/ems-server/src/main/resources/mapper/ems/EmsTagMapper.xml

@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.ems.mapper.EmsTagMapper">
+    
+    <resultMap type="com.ruoyi.ems.domain.EmsTag" id="emsTagResult">
+        <result property="id"    column="id"    />
+        <result property="tagModel"    column="tag_model"    />
+        <result property="tagCode"    column="tag_code"    />
+        <result property="tagName"    column="tag_name"    />
+    </resultMap>
+
+    <sql id="selectEmsTagVo">
+        select id, tag_model, tag_code, tag_name from dim_ems_tag
+    </sql>
+
+    <select id="selectEmsTagList" parameterType="com.ruoyi.ems.domain.EmsTag" resultMap="emsTagResult">
+        <include refid="selectEmsTagVo"/>
+        <where>  
+            <if test="tagModel != null  and tagModel != ''"> and tag_model = #{tagModel}</if>
+            <if test="tagCode != null  and tagCode != ''"> and tag_code = #{tagCode}</if>
+            <if test="tagName != null  and tagName != ''"> and tag_name like concat('%', #{tagName}, '%')</if>
+        </where>
+    </select>
+    
+    <select id="selectEmsTagById" parameterType="Long" resultMap="emsTagResult">
+        <include refid="selectEmsTagVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertEmsTag" parameterType="com.ruoyi.ems.domain.EmsTag" useGeneratedKeys="true" keyProperty="id">
+        insert into dim_ems_tag
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="tagModel != null and tagModel != ''">tag_model,</if>
+            <if test="tagCode != null and tagCode != ''">tag_code,</if>
+            <if test="tagName != null and tagName != ''">tag_name,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="tagModel != null and tagModel != ''">#{tagModel},</if>
+            <if test="tagCode != null and tagCode != ''">#{tagCode},</if>
+            <if test="tagName != null and tagName != ''">#{tagName},</if>
+         </trim>
+    </insert>
+
+    <update id="updateEmsTag" parameterType="com.ruoyi.ems.domain.EmsTag">
+        update dim_ems_tag
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="tagModel != null and tagModel != ''">tag_model = #{tagModel},</if>
+            <if test="tagCode != null and tagCode != ''">tag_code = #{tagCode},</if>
+            <if test="tagName != null and tagName != ''">tag_name = #{tagName},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteEmsTagById" parameterType="Long">
+        delete from dim_ems_tag where id = #{id}
+    </delete>
+
+    <delete id="deleteEmsTagByIds" parameterType="String">
+        delete from dim_ems_tag where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 50 - 34
ems-cloud/sql/ems_server.sql

@@ -239,6 +239,21 @@ INSERT INTO `dim_ems_facs_subtype` (`code`, `name`, `parent_code`, `desc`, `vers
 INSERT INTO `dim_ems_facs_subtype` (`code`, `name`, `parent_code`, `desc`, `version`) VALUES ('C3', '蓄冷/热站', 'C', null, 'GB/T 43033-2013');
 INSERT INTO `dim_ems_facs_subtype` (`code`, `name`, `parent_code`, `desc`, `version`) VALUES ('c4', '储氢站', 'C', null, 'GB/T 43033-2013');
 
+-- ----------------------------
+-- 标签分类
+-- ----------------------------
+drop table if exists dim_ems_tag;
+create table dim_ems_tag (
+  `id`            bigint(20)      not null auto_increment    comment '序号',
+  `tag_model`     varchar(128)    not null                   comment '标签模型',
+  `tag_code`      varchar(64)     not null                   comment '标签代码',
+  `tag_name`      varchar(128)    not null                   comment '标签名称',
+  primary key (`id`),
+  unique key ux_ems_tag(`tag_code`)
+) engine=innodb auto_increment=1 comment = '标签分类';
+
+INSERT INTO `dim_ems_tag` (`tag_model`, `tag_code`, `tag_name`) VALUES ('Area', 'Area_00', '公共区域');
+INSERT INTO `dim_ems_tag` (`tag_model`, `tag_code`, `tag_name`) VALUES ('Area', 'Area_01', '商户区域');
 
 -- ----------------------------
 -- 电价计量分类
@@ -255,7 +270,7 @@ create table dim_ems_electrovalency_type (
 INSERT INTO `dim_ems_electrovalency_type` (`code`, `name`) VALUES ('1', '居民生活用电');
 INSERT INTO `dim_ems_electrovalency_type` (`code`, `name`) VALUES ('2', '农业用电');
 INSERT INTO `dim_ems_electrovalency_type` (`code`, `name`) VALUES ('3', '单一制');
-INSERT INTO `dim_ems_electrovalency_type` (`code`, `name`) VALUES ('3', '两部制');
+INSERT INTO `dim_ems_electrovalency_type` (`code`, `name`) VALUES ('4', '两部制');
 
 -- ----------------------------
 -- 排放因子维表
@@ -392,43 +407,44 @@ create table adm_area_building_zoning (
   `room_no`          varchar(16)     default null               comment '房间号',
   `bldg_ld_area`     double          default null               comment '建筑划分面积',
   `usage_detail`     varchar(200)    default null               comment '使用详情',
+  `tag_code`         varchar(64)     default null               comment '标签编码',
   primary key (`id`),
     unique key ux_building_zoning_code(`bldg_code`, `zoning_code`)
 ) engine=innodb auto_increment=1 comment = '建筑区域划分表';
 
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-101', '开水泡面间', 1, '101', 100, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-102', '超市', 1, '102', 200, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-103', '中式糕点', 1, '103', 150, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-104', '特色产品市集', 1, '104', 200, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-105', '奶茶/咖啡', 1, '105', 100, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-106', '中式套餐', 1, '106', 200, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-107', '特色小吃', 1, '107', 100, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-108', '串串/卤味', 1, '108', 100, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-109', '糖葫芦/水果', 1, '109', 100, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-110', '美食广场', 1, '110', 300, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-111', '男卫', 1, '111', 200, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-112', '男盥洗室', 1, '112', 150, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-113', '女卫', 1, '113', 200, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-114', '女盥洗室', 1, '114', 150, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-115', '工具间1', 1, '115', 50, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-116', '工具间2', 1, '116', 50, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-117', '工具间3', 1, '117', 50, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-118', '工具间4', 1, '118', 50, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300101', 'B-119', '货车服务空间', 1, '119', 50, '使用中');
-
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300106', '321283124S3001_CW-XK', '小客停车位', 1, 'CW-XK', 100, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300106', '321283124S3001_CW-CD', '充电车位', 1, 'CW-CD', 100, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300106', '321283124S3001_CW-WZA', '无障碍车位', 1, 'CW-WZA', 100, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300106', '321283124S3001_CW-DKC', '大客车停车位', 1, 'CW-DKC', 100, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300106', '321283124S3001_CW-HC', '货车车位', 1, 'CW-HC', 100, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300106', '321283124S3001_CW-WXP', '危险品车位', 1, 'CW-WXP', 100, '使用中');
-
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300206', '321283124S3002_CW-XK', '小客停车位', 1, 'CW-XK', 100, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300206', '321283124S3002_CW-CD', '充电车位', 1, 'CW-XK', 100, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300206', '321283124S3002_CW-WZA', '无障碍车位', 1, 'CW-XK', 100, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300206', '321283124S3002_CW-DKC', '大客车停车位', 1, 'CW-XK', 100, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300206', '321283124S3002_CW-HC', '货车车位', 1, 'CW-XK', 100, '使用中');
-INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`) VALUES ('321283124S300206', '321283124S3002_CW-WXP','危险品车位', 1, 'CW-XK', 100, '使用中');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-101', '开水泡面间', 1, '101', 100, '使用中', 'Area_01');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-102', '超市', 1, '102', 200, '使用中', 'Area_01');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-103', '中式糕点', 1, '103', 150, '使用中', 'Area_01');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-104', '特色产品市集', 1, '104', 200, '使用中', 'Area_01');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-105', '奶茶/咖啡', 1, '105', 100, '使用中', 'Area_01');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-106', '中式套餐', 1, '106', 200, '使用中', 'Area_01');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-107', '特色小吃', 1, '107', 100, '使用中', 'Area_01');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-108', '串串/卤味', 1, '108', 100, '使用中', 'Area_01');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-109', '糖葫芦/水果', 1, '109', 100, '使用中', 'Area_01');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-110', '美食广场', 1, '110', 300, '使用中', 'Area_01');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-111', '男卫', 1, '111', 200, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-112', '男盥洗室', 1, '112', 150, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-113', '女卫', 1, '113', 200, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-114', '女盥洗室', 1, '114', 150, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-115', '工具间1', 1, '115', 50, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-116', '工具间2', 1, '116', 50, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-117', '工具间3', 1, '117', 50, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-118', '工具间4', 1, '118', 50, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300101', 'B-119', '货车服务空间', 1, '119', 50, '使用中', 'Area_01');
+
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300106', '321283124S3001_CW-XK', '小客停车位', 1, 'CW-XK', 100, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300106', '321283124S3001_CW-CD', '充电车位', 1, 'CW-CD', 100, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300106', '321283124S3001_CW-WZA', '无障碍车位', 1, 'CW-WZA', 100, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300106', '321283124S3001_CW-DKC', '大客车停车位', 1, 'CW-DKC', 100, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300106', '321283124S3001_CW-HC', '货车车位', 1, 'CW-HC', 100, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300106', '321283124S3001_CW-WXP', '危险品车位', 1, 'CW-WXP', 100, '使用中', 'Area_00');
+
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300206', '321283124S3002_CW-XK', '小客停车位', 1, 'CW-XK', 100, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300206', '321283124S3002_CW-CD', '充电车位', 1, 'CW-XK', 100, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300206', '321283124S3002_CW-WZA', '无障碍车位', 1, 'CW-XK', 100, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300206', '321283124S3002_CW-DKC', '大客车停车位', 1, 'CW-XK', 100, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300206', '321283124S3002_CW-HC', '货车车位', 1, 'CW-XK', 100, '使用中', 'Area_00');
+INSERT INTO adm_area_building_zoning (`bldg_code`, `zoning_code`, `zoning_name`, `floor`, `room_no`, `bldg_ld_area`, `usage_detail`, `tag_code`) VALUES ('321283124S300206', '321283124S3002_CW-WXP','危险品车位', 1, 'CW-XK', 100, '使用中', 'Area_00');
 
 -- ----------------------------
 -- 能源设施/系统表