吉安感知网项目-后端
xiebin
2026-01-28 74756c657109a4e48dd6c0b4d8959cdab89b33a9
update-区域划分表结构调整
10 files added
658 ■■■■■ changed files
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/controller/FwAreaDivideExtController.java 143 ●●●●● patch | view | raw | blame | history
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/dto/FwAreaDivideExtDTO.java 71 ●●●●● patch | view | raw | blame | history
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/entity/FwAreaDivideExtEntity.java 64 ●●●●● patch | view | raw | blame | history
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/excel/FwAreaDivideExtExcel.java 80 ●●●●● patch | view | raw | blame | history
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/mapper/FwAreaDivideExtMapper.java 54 ●●●●● patch | view | raw | blame | history
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/mapper/FwAreaDivideExtMapper.xml 25 ●●●●● patch | view | raw | blame | history
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/service/IFwAreaDivideExtService.java 52 ●●●●● patch | view | raw | blame | history
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/service/impl/FwAreaDivideExtServiceImpl.java 54 ●●●●● patch | view | raw | blame | history
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/vo/FwAreaDivideExtVO.java 72 ●●●●● patch | view | raw | blame | history
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/wrapper/FwAreaDivideExtWrapper.java 43 ●●●●● patch | view | raw | blame | history
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/controller/FwAreaDivideExtController.java
New file
@@ -0,0 +1,143 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.sxkj.fw.area.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import lombok.AllArgsConstructor;
import javax.validation.Valid;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.sxkj.fw.area.entity.FwAreaDivideExtEntity;
import org.sxkj.fw.area.vo.FwAreaDivideExtVO;
import org.sxkj.fw.area.excel.FwAreaDivideExtExcel;
import org.sxkj.fw.area.wrapper.FwAreaDivideExtWrapper;
import org.sxkj.fw.area.service.IFwAreaDivideExtService;
import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.tool.utils.DateUtil;
import org.springblade.core.excel.util.ExcelUtil;
import org.springblade.core.tool.constant.BladeConstant;
import org.sxkj.fw.common.GenericConverter;
import org.sxkj.fw.common.IdParam;
import springfox.documentation.annotations.ApiIgnore;
import java.util.Map;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
/**
 * 区域划分扩展表(多面数据/多区域类型) 控制器
 *
 * @author Aix
 * @since 2026-01-28
 */
@RestController
@AllArgsConstructor
@RequestMapping("area/fwAreaDivideExt")
@Api(value = "区域划分扩展表(多面数据/多区域类型)", tags = "区域划分扩展表(多面数据/多区域类型)接口")
public class FwAreaDivideExtController extends BladeController {
    private final IFwAreaDivideExtService fwAreaDivideExtService;
    /**
     * 区域划分扩展表(多面数据/多区域类型) 详情
     */
    @GetMapping("/detail")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "详情", notes = "传入fwAreaDivideExt")
    public R<FwAreaDivideExtVO> detail(IdParam idParam) {
        FwAreaDivideExtEntity detail = fwAreaDivideExtService.getOne(Condition.getQueryWrapper(GenericConverter.convert(idParam, FwAreaDivideExtEntity.class)));
        return R.data(FwAreaDivideExtWrapper.build().entityVO(detail));
    }
    /**
     * 区域划分扩展表(多面数据/多区域类型) 自定义分页
     */
    @GetMapping("/page")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "分页", notes = "传入fwAreaDivideExt")
    public R<IPage<FwAreaDivideExtVO>> page(FwAreaDivideExtVO fwAreaDivideExt, Query query) {
        IPage<FwAreaDivideExtVO> pages = fwAreaDivideExtService.selectFwAreaDivideExtPage(Condition.getPage(query), fwAreaDivideExt);
        return R.data(pages);
    }
    /**
     * 区域划分扩展表(多面数据/多区域类型) 新增
     */
    @PostMapping("/save")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "新增", notes = "传入fwAreaDivideExt")
    public R save(@Valid @RequestBody FwAreaDivideExtEntity fwAreaDivideExt) {
        return R.status(fwAreaDivideExtService.save(fwAreaDivideExt));
    }
    /**
     * 区域划分扩展表(多面数据/多区域类型) 修改
     */
    @PostMapping("/update")
    @ApiOperationSupport(order = 5)
    @ApiOperation(value = "修改", notes = "传入fwAreaDivideExt")
    public R update(@Valid @RequestBody FwAreaDivideExtEntity fwAreaDivideExt) {
        return R.status(fwAreaDivideExtService.updateById(fwAreaDivideExt));
    }
    /**
     * 区域划分扩展表(多面数据/多区域类型) 新增或修改
     */
    @PostMapping("/submit")
    @ApiOperationSupport(order = 6)
    @ApiOperation(value = "新增或修改", notes = "传入fwAreaDivideExt")
    public R submit(@Valid @RequestBody FwAreaDivideExtEntity fwAreaDivideExt) {
        return R.status(fwAreaDivideExtService.saveOrUpdate(fwAreaDivideExt));
    }
    /**
     * 区域划分扩展表(多面数据/多区域类型) 删除
     */
    @PostMapping("/remove")
    @ApiOperationSupport(order = 7)
    @ApiOperation(value = "逻辑删除", notes = "传入ids")
    public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
        return R.status(fwAreaDivideExtService.deleteLogic(Func.toLongList(ids)));
    }
    /**
     * 导出数据
     */
    @GetMapping("/export-fwAreaDivideExt")
    @ApiOperationSupport(order = 9)
    @ApiOperation(value = "导出数据", notes = "传入fwAreaDivideExt")
    public void exportFwAreaDivideExt(@ApiIgnore @RequestParam Map<String, Object> fwAreaDivideExt, BladeUser bladeUser, HttpServletResponse response) {
        QueryWrapper<FwAreaDivideExtEntity> queryWrapper = Condition.getQueryWrapper(fwAreaDivideExt, FwAreaDivideExtEntity.class);
        //if (!AuthUtil.isAdministrator()) {
        //    queryWrapper.lambda().eq(FwAreaDivideExt::getTenantId, bladeUser.getTenantId());
        //}
        queryWrapper.lambda().eq(FwAreaDivideExtEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
        List<FwAreaDivideExtExcel> list = fwAreaDivideExtService.exportFwAreaDivideExt(queryWrapper);
        ExcelUtil.export(response, "区域划分扩展表(多面数据/多区域类型)数据" + DateUtil.time(), "区域划分扩展表(多面数据/多区域类型)数据表", list, FwAreaDivideExtExcel.class);
    }
}
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/dto/FwAreaDivideExtDTO.java
New file
@@ -0,0 +1,71 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.sxkj.fw.area.dto;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import org.sxkj.fw.area.entity.FwAreaDivideExtEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
 * 区域划分扩展表(多面数据/多区域类型) 数据传输对象实体类
 *
 * @author Aix
 * @since 2026-01-28
 */
@Data
public class FwAreaDivideExtDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    @JsonSerialize(
        using = ToStringSerializer.class
    )
    @ApiModelProperty("主键id")
    private Long id;
    /**
     * 关联主表区域划分ID
     */
    @ApiModelProperty(value = "关联主表区域划分ID")
    private Long areaDivideId;
    /**
     * 区域类型数字字典key
     */
    @ApiModelProperty(value = "区域类型数字字典key")
    private String areaTypeKey;
    /**
     * 区域类型数字字典value
     */
    @ApiModelProperty(value = "区域类型数字字典value")
    private String areaTypeValue;
    /**
     * 面数据(空间类型,便于地理查询)
     */
    @ApiModelProperty(value = "面数据(空间类型,便于地理查询)")
    private String geom;
    /**
     * 区域编码
     */
    @ApiModelProperty(value = "区域编码")
    private String areaCode;
}
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/entity/FwAreaDivideExtEntity.java
New file
@@ -0,0 +1,64 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.sxkj.fw.area.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
 * 区域划分扩展表(多面数据/多区域类型) 实体类
 *
 * @author Aix
 * @since 2026-01-28
 */
@Data
@TableName("ja_fw_area_divide_ext")
@ApiModel(value = "FwAreaDivideExt对象", description = "区域划分扩展表(多面数据/多区域类型)")
@EqualsAndHashCode(callSuper = true)
public class FwAreaDivideExtEntity extends BaseEntity {
    /**
     * 关联主表区域划分ID
     */
    @ApiModelProperty(value = "关联主表区域划分ID")
    private Long areaDivideId;
    /**
     * 区域类型数字字典key
     */
    @ApiModelProperty(value = "区域类型数字字典key")
    private String areaTypeKey;
    /**
     * 区域类型数字字典value
     */
    @ApiModelProperty(value = "区域类型数字字典value")
    private String areaTypeValue;
    /**
     * 面数据(空间类型,便于地理查询)
     */
    @ApiModelProperty(value = "面数据(空间类型,便于地理查询)")
    private String geom;
    /**
     * 区域编码
     */
    @ApiModelProperty(value = "区域编码")
    private String areaCode;
}
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/excel/FwAreaDivideExtExcel.java
New file
@@ -0,0 +1,80 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.sxkj.fw.area.excel;
import lombok.Data;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import java.io.Serializable;
/**
 * 区域划分扩展表(多面数据/多区域类型) Excel实体类
 *
 * @author Aix
 * @since 2026-01-28
 */
@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class FwAreaDivideExtExcel implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 关联主表区域划分ID
     */
    @ColumnWidth(20)
    @ExcelProperty("关联主表区域划分ID")
    private Long areaDivideId;
    /**
     * 区域类型数字字典key
     */
    @ColumnWidth(20)
    @ExcelProperty("区域类型数字字典key")
    private String areaTypeKey;
    /**
     * 区域类型数字字典value
     */
    @ColumnWidth(20)
    @ExcelProperty("区域类型数字字典value")
    private String areaTypeValue;
    /**
     * 面数据(空间类型,便于地理查询)
     */
    @ColumnWidth(20)
    @ExcelProperty("面数据(空间类型,便于地理查询)")
    private byte[] geom;
    /**
     * 区域编码
     */
    @ColumnWidth(20)
    @ExcelProperty("区域编码")
    private String areaCode;
    /**
     * 删除标志(0存在 1删除)
     */
    @ColumnWidth(20)
    @ExcelProperty("删除标志(0存在 1删除)")
    private Byte isDeleted;
}
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/mapper/FwAreaDivideExtMapper.java
New file
@@ -0,0 +1,54 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.sxkj.fw.area.mapper;
import org.sxkj.fw.area.entity.FwAreaDivideExtEntity;
import org.sxkj.fw.area.vo.FwAreaDivideExtVO;
import org.sxkj.fw.area.excel.FwAreaDivideExtExcel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
 * 区域划分扩展表(多面数据/多区域类型) Mapper 接口
 *
 * @author Aix
 * @since 2026-01-28
 */
public interface FwAreaDivideExtMapper extends BaseMapper<FwAreaDivideExtEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param fwAreaDivideExt
     * @return
     */
    List<FwAreaDivideExtVO> selectFwAreaDivideExtPage(IPage page, FwAreaDivideExtVO fwAreaDivideExt);
    /**
     * 获取导出数据
     *
     * @param queryWrapper
     * @return
     */
    List<FwAreaDivideExtExcel> exportFwAreaDivideExt(@Param("ew") Wrapper<FwAreaDivideExtEntity> queryWrapper);
}
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/mapper/FwAreaDivideExtMapper.xml
New file
@@ -0,0 +1,25 @@
<?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="org.sxkj.fw.area.mapper.FwAreaDivideExtMapper">
    <!-- 通用查询映射结果 -->
    <resultMap id="fwAreaDivideExtResultMap" type="org.sxkj.fw.area.vo.FwAreaDivideExtVO">
        <result column="id" property="id"/>
        <result column="area_divide_id" property="areaDivideId"/>
        <result column="area_type_key" property="areaTypeKey"/>
        <result column="area_type_value" property="areaTypeValue"/>
        <result column="geom" property="geom"/>
        <result column="area_code" property="areaCode"/>
    </resultMap>
    <select id="selectFwAreaDivideExtPage" resultMap="fwAreaDivideExtResultMap">
        select * from ja_fw_area_divide_ext where is_deleted = 0
    </select>
    <select id="exportFwAreaDivideExt" resultType="org.sxkj.fw.area.excel.FwAreaDivideExtExcel">
        SELECT * FROM ja_fw_area_divide_ext ${ew.customSqlSegment}
    </select>
</mapper>
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/service/IFwAreaDivideExtService.java
New file
@@ -0,0 +1,52 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.sxkj.fw.area.service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import org.sxkj.fw.area.entity.FwAreaDivideExtEntity;
import org.sxkj.fw.area.vo.FwAreaDivideExtVO;
import org.sxkj.fw.area.excel.FwAreaDivideExtExcel;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseService;
import java.util.List;
/**
 * 区域划分扩展表(多面数据/多区域类型) 服务类
 *
 * @author Aix
 * @since 2026-01-28
 */
public interface IFwAreaDivideExtService extends BaseService<FwAreaDivideExtEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param fwAreaDivideExt
     * @return
     */
    IPage<FwAreaDivideExtVO> selectFwAreaDivideExtPage(IPage<FwAreaDivideExtVO> page, FwAreaDivideExtVO fwAreaDivideExt);
    /**
     * 导出数据
     *
     * @param queryWrapper
     * @return
     */
    List<FwAreaDivideExtExcel> exportFwAreaDivideExt(Wrapper<FwAreaDivideExtEntity> queryWrapper);
}
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/service/impl/FwAreaDivideExtServiceImpl.java
New file
@@ -0,0 +1,54 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.sxkj.fw.area.service.impl;
import org.sxkj.fw.area.entity.FwAreaDivideExtEntity;
import org.sxkj.fw.area.vo.FwAreaDivideExtVO;
import org.sxkj.fw.area.excel.FwAreaDivideExtExcel;
import org.sxkj.fw.area.mapper.FwAreaDivideExtMapper;
import org.sxkj.fw.area.service.IFwAreaDivideExtService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseServiceImpl;
import java.util.List;
/**
 * 区域划分扩展表(多面数据/多区域类型) 服务实现类
 *
 * @author Aix
 * @since 2026-01-28
 */
@Service
public class FwAreaDivideExtServiceImpl extends BaseServiceImpl<FwAreaDivideExtMapper, FwAreaDivideExtEntity> implements IFwAreaDivideExtService {
    @Override
    public IPage<FwAreaDivideExtVO> selectFwAreaDivideExtPage(IPage<FwAreaDivideExtVO> page, FwAreaDivideExtVO fwAreaDivideExt) {
        return page.setRecords(baseMapper.selectFwAreaDivideExtPage(page, fwAreaDivideExt));
    }
    @Override
    public List<FwAreaDivideExtExcel> exportFwAreaDivideExt(Wrapper<FwAreaDivideExtEntity> queryWrapper) {
        List<FwAreaDivideExtExcel> fwAreaDivideExtList = baseMapper.exportFwAreaDivideExt(queryWrapper);
        //fwAreaDivideExtList.forEach(fwAreaDivideExt -> {
        //    fwAreaDivideExt.setTypeName(DictCache.getValue(DictEnum.YES_NO, FwAreaDivideExt.getType()));
        //});
        return fwAreaDivideExtList;
    }
}
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/vo/FwAreaDivideExtVO.java
New file
@@ -0,0 +1,72 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.sxkj.fw.area.vo;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import org.sxkj.fw.area.entity.FwAreaDivideExtEntity;
import org.springblade.core.tool.node.INode;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
 * 区域划分扩展表(多面数据/多区域类型) 视图实体类
 *
 * @author Aix
 * @since 2026-01-28
 */
@Data
public class FwAreaDivideExtVO implements Serializable {
    private static final long serialVersionUID = 1L;
    @JsonSerialize(
        using = ToStringSerializer.class
    )
    @ApiModelProperty("主键id")
    private Long id;
    /**
     * 关联主表区域划分ID
     */
    @ApiModelProperty(value = "关联主表区域划分ID")
    private Long areaDivideId;
    /**
     * 区域类型数字字典key
     */
    @ApiModelProperty(value = "区域类型数字字典key")
    private String areaTypeKey;
    /**
     * 区域类型数字字典value
     */
    @ApiModelProperty(value = "区域类型数字字典value")
    private String areaTypeValue;
    /**
     * 面数据(空间类型,便于地理查询)
     */
    @ApiModelProperty(value = "面数据(空间类型,便于地理查询)")
    private String geom;
    /**
     * 区域编码
     */
    @ApiModelProperty(value = "区域编码")
    private String areaCode;
}
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/wrapper/FwAreaDivideExtWrapper.java
New file
@@ -0,0 +1,43 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.sxkj.fw.area.wrapper;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.sxkj.fw.area.entity.FwAreaDivideExtEntity;
import org.sxkj.fw.area.vo.FwAreaDivideExtVO;
import java.util.Objects;
/**
 * 区域划分扩展表(多面数据/多区域类型) 包装类,返回视图层所需的字段
 *
 * @author Aix
 * @since 2026-01-28
 */
public class FwAreaDivideExtWrapper extends BaseEntityWrapper<FwAreaDivideExtEntity, FwAreaDivideExtVO>  {
    public static FwAreaDivideExtWrapper build() {
        return new FwAreaDivideExtWrapper();
     }
    @Override
    public FwAreaDivideExtVO entityVO(FwAreaDivideExtEntity fwAreaDivideExt) {
        return Objects.requireNonNull(BeanUtil.copy(fwAreaDivideExt, FwAreaDivideExtVO.class));
    }
}