From 3c78c18fb8a906ab659ac2936e7ab91ddae23f6f Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Mon, 23 May 2022 08:47:19 +0800
Subject: [PATCH] 全景管理

---
 src/main/java/org/springblade/modules/panorama/service/IPanoramaService.java         |   41 ++
 src/main/java/org/springblade/modules/remote/entity/Remote.java                      |   50 +++
 src/main/java/org/springblade/modules/panorama/vo/PanoramaVO.java                    |   34 ++
 src/main/java/org/springblade/modules/remote/service/impl/RemoteServiceImpl.java     |   41 ++
 src/main/java/org/springblade/modules/panorama/service/impl/PanoramaServiceImpl.java |   41 ++
 src/main/java/org/springblade/modules/remote/controller/RemoteController.java        |  127 +++++++++
 src/main/java/sql/panorama.menu.sql                                                  |   10 
 src/main/java/sql/remote.menu.sql                                                    |   10 
 src/main/java/org/springblade/modules/remote/mapper/RemoteMapper.java                |   42 +++
 src/main/java/org/springblade/modules/remote/service/IRemoteService.java             |   41 ++
 src/main/java/org/springblade/modules/panorama/mapper/PanoramaMapper.xml             |   27 +
 src/main/java/org/springblade/modules/remote/mapper/RemoteMapper.xml                 |   32 ++
 src/main/java/org/springblade/modules/panorama/mapper/PanoramaMapper.java            |   42 +++
 src/main/java/org/springblade/modules/panorama/entity/Panorama.java                  |   45 +++
 src/main/java/org/springblade/modules/remote/vo/RemoteVO.java                        |   34 ++
 src/main/java/org/springblade/modules/panorama/controller/PanoramaController.java    |  127 +++++++++
 src/main/java/org/springblade/modules/remote/dto/RemoteDTO.java                      |   34 ++
 src/main/java/org/springblade/modules/panorama/dto/PanoramaDTO.java                  |   34 ++
 18 files changed, 812 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/panorama/controller/PanoramaController.java b/src/main/java/org/springblade/modules/panorama/controller/PanoramaController.java
new file mode 100644
index 0000000..40c9430
--- /dev/null
+++ b/src/main/java/org/springblade/modules/panorama/controller/PanoramaController.java
@@ -0,0 +1,127 @@
+/*
+ *      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.springblade.modules.panorama.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.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 org.springframework.web.bind.annotation.RequestParam;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.springblade.modules.panorama.entity.Panorama;
+import org.springblade.modules.panorama.vo.PanoramaVO;
+import org.springblade.modules.panorama.service.IPanoramaService;
+import org.springblade.core.boot.ctrl.BladeController;
+
+/**
+ * 全景 控制器
+ *
+ * @author BladeX
+ * @since 2022-05-19
+ */
+@RestController
+@AllArgsConstructor
+@RequestMapping("/panorama/panorama")
+@Api(value = "全景", tags = "全景接口")
+public class PanoramaController extends BladeController {
+
+	private final IPanoramaService panoramaService;
+
+	/**
+	 * 详情
+	 */
+	@GetMapping("/detail")
+	@ApiOperationSupport(order = 1)
+	@ApiOperation(value = "详情", notes = "传入panorama")
+	public R<Panorama> detail(Panorama panorama) {
+		Panorama detail = panoramaService.getOne(Condition.getQueryWrapper(panorama));
+		return R.data(detail);
+	}
+
+	/**
+	 * 分页 全景
+	 */
+	@GetMapping("/list")
+	@ApiOperationSupport(order = 2)
+	@ApiOperation(value = "分页", notes = "传入panorama")
+	public R<IPage<Panorama>> list(Panorama panorama, Query query) {
+		IPage<Panorama> pages = panoramaService.page(Condition.getPage(query), Condition.getQueryWrapper(panorama));
+		return R.data(pages);
+	}
+
+	/**
+	 * 自定义分页 全景
+	 */
+	@GetMapping("/page")
+	@ApiOperationSupport(order = 3)
+	@ApiOperation(value = "分页", notes = "传入panorama")
+	public R<IPage<PanoramaVO>> page(PanoramaVO panorama, Query query) {
+		IPage<PanoramaVO> pages = panoramaService.selectPanoramaPage(Condition.getPage(query), panorama);
+		return R.data(pages);
+	}
+
+	/**
+	 * 新增 全景
+	 */
+	@PostMapping("/save")
+	@ApiOperationSupport(order = 4)
+	@ApiOperation(value = "新增", notes = "传入panorama")
+	public R save(@Valid @RequestBody Panorama panorama) {
+		return R.status(panoramaService.save(panorama));
+	}
+
+	/**
+	 * 修改 全景
+	 */
+	@PostMapping("/update")
+	@ApiOperationSupport(order = 5)
+	@ApiOperation(value = "修改", notes = "传入panorama")
+	public R update(@Valid @RequestBody Panorama panorama) {
+		return R.status(panoramaService.updateById(panorama));
+	}
+
+	/**
+	 * 新增或修改 全景
+	 */
+	@PostMapping("/submit")
+	@ApiOperationSupport(order = 6)
+	@ApiOperation(value = "新增或修改", notes = "传入panorama")
+	public R submit(@Valid @RequestBody Panorama panorama) {
+		return R.status(panoramaService.saveOrUpdate(panorama));
+	}
+
+	
+	/**
+	 * 删除 全景
+	 */
+	@PostMapping("/remove")
+	@ApiOperationSupport(order = 7)
+	@ApiOperation(value = "逻辑删除", notes = "传入ids")
+	public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+		return R.status(panoramaService.deleteLogic(Func.toLongList(ids)));
+	}
+
+	
+}
diff --git a/src/main/java/org/springblade/modules/panorama/dto/PanoramaDTO.java b/src/main/java/org/springblade/modules/panorama/dto/PanoramaDTO.java
new file mode 100644
index 0000000..156fc11
--- /dev/null
+++ b/src/main/java/org/springblade/modules/panorama/dto/PanoramaDTO.java
@@ -0,0 +1,34 @@
+/*
+ *      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.springblade.modules.panorama.dto;
+
+import org.springblade.modules.panorama.entity.Panorama;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 全景数据传输对象实体类
+ *
+ * @author BladeX
+ * @since 2022-05-19
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class PanoramaDTO extends Panorama {
+	private static final long serialVersionUID = 1L;
+
+}
diff --git a/src/main/java/org/springblade/modules/panorama/entity/Panorama.java b/src/main/java/org/springblade/modules/panorama/entity/Panorama.java
new file mode 100644
index 0000000..f9599a6
--- /dev/null
+++ b/src/main/java/org/springblade/modules/panorama/entity/Panorama.java
@@ -0,0 +1,45 @@
+/*
+ *      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.springblade.modules.panorama.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import org.springblade.core.mp.base.BaseEntity;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 全景实体类
+ *
+ * @author BladeX
+ * @since 2022-05-19
+ */
+@Data
+@TableName("sys_panorama")
+@EqualsAndHashCode(callSuper = true)
+public class Panorama extends BaseEntity {
+
+	private static final long serialVersionUID = 1L;
+
+	private String panoramaName;
+	private String panoramaUrl;
+	private String jd;
+	private String wd;
+	private String addressName;
+
+
+}
diff --git a/src/main/java/org/springblade/modules/panorama/mapper/PanoramaMapper.java b/src/main/java/org/springblade/modules/panorama/mapper/PanoramaMapper.java
new file mode 100644
index 0000000..0e13b98
--- /dev/null
+++ b/src/main/java/org/springblade/modules/panorama/mapper/PanoramaMapper.java
@@ -0,0 +1,42 @@
+/*
+ *      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.springblade.modules.panorama.mapper;
+
+import org.springblade.modules.panorama.entity.Panorama;
+import org.springblade.modules.panorama.vo.PanoramaVO;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import java.util.List;
+
+/**
+ * 全景 Mapper 接口
+ *
+ * @author BladeX
+ * @since 2022-05-19
+ */
+public interface PanoramaMapper extends BaseMapper<Panorama> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param panorama
+	 * @return
+	 */
+	List<PanoramaVO> selectPanoramaPage(IPage page, PanoramaVO panorama);
+
+}
diff --git a/src/main/java/org/springblade/modules/panorama/mapper/PanoramaMapper.xml b/src/main/java/org/springblade/modules/panorama/mapper/PanoramaMapper.xml
new file mode 100644
index 0000000..9725c46
--- /dev/null
+++ b/src/main/java/org/springblade/modules/panorama/mapper/PanoramaMapper.xml
@@ -0,0 +1,27 @@
+<?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.springblade.modules.panorama.mapper.PanoramaMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="panoramaResultMap" type="org.springblade.modules.panorama.entity.Panorama">
+        <result column="id" property="id"/>
+        <result column="create_user" property="createUser"/>
+        <result column="create_dept" property="createDept"/>
+        <result column="create_time" property="createTime"/>
+        <result column="update_user" property="updateUser"/>
+        <result column="update_time" property="updateTime"/>
+        <result column="status" property="status"/>
+        <result column="is_deleted" property="isDeleted"/>
+        <result column="panorama_name" property="panoramaName"/>
+        <result column="panorama_url" property="panoramaUrl"/>
+        <result column="jd" property="jd"/>
+        <result column="wd" property="wd"/>
+        <result column="address_name" property="addressName"/>
+    </resultMap>
+
+
+    <select id="selectPanoramaPage" resultMap="panoramaResultMap">
+        select * from sys_panorama where is_deleted = 0
+    </select>
+
+</mapper>
diff --git a/src/main/java/org/springblade/modules/panorama/service/IPanoramaService.java b/src/main/java/org/springblade/modules/panorama/service/IPanoramaService.java
new file mode 100644
index 0000000..6753ca6
--- /dev/null
+++ b/src/main/java/org/springblade/modules/panorama/service/IPanoramaService.java
@@ -0,0 +1,41 @@
+/*
+ *      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.springblade.modules.panorama.service;
+
+import org.springblade.modules.panorama.entity.Panorama;
+import org.springblade.modules.panorama.vo.PanoramaVO;
+import org.springblade.core.mp.base.BaseService;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * 全景 服务类
+ *
+ * @author BladeX
+ * @since 2022-05-19
+ */
+public interface IPanoramaService extends BaseService<Panorama> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param panorama
+	 * @return
+	 */
+	IPage<PanoramaVO> selectPanoramaPage(IPage<PanoramaVO> page, PanoramaVO panorama);
+
+}
diff --git a/src/main/java/org/springblade/modules/panorama/service/impl/PanoramaServiceImpl.java b/src/main/java/org/springblade/modules/panorama/service/impl/PanoramaServiceImpl.java
new file mode 100644
index 0000000..0f280a8
--- /dev/null
+++ b/src/main/java/org/springblade/modules/panorama/service/impl/PanoramaServiceImpl.java
@@ -0,0 +1,41 @@
+/*
+ *      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.springblade.modules.panorama.service.impl;
+
+import org.springblade.modules.panorama.entity.Panorama;
+import org.springblade.modules.panorama.vo.PanoramaVO;
+import org.springblade.modules.panorama.mapper.PanoramaMapper;
+import org.springblade.modules.panorama.service.IPanoramaService;
+import org.springblade.core.mp.base.BaseServiceImpl;
+import org.springframework.stereotype.Service;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * 全景 服务实现类
+ *
+ * @author BladeX
+ * @since 2022-05-19
+ */
+@Service
+public class PanoramaServiceImpl extends BaseServiceImpl<PanoramaMapper, Panorama> implements IPanoramaService {
+
+	@Override
+	public IPage<PanoramaVO> selectPanoramaPage(IPage<PanoramaVO> page, PanoramaVO panorama) {
+		return page.setRecords(baseMapper.selectPanoramaPage(page, panorama));
+	}
+
+}
diff --git a/src/main/java/org/springblade/modules/panorama/vo/PanoramaVO.java b/src/main/java/org/springblade/modules/panorama/vo/PanoramaVO.java
new file mode 100644
index 0000000..491a8f1
--- /dev/null
+++ b/src/main/java/org/springblade/modules/panorama/vo/PanoramaVO.java
@@ -0,0 +1,34 @@
+/*
+ *      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.springblade.modules.panorama.vo;
+
+import org.springblade.modules.panorama.entity.Panorama;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 全景视图实体类
+ *
+ * @author BladeX
+ * @since 2022-05-19
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class PanoramaVO extends Panorama {
+	private static final long serialVersionUID = 1L;
+
+}
diff --git a/src/main/java/org/springblade/modules/remote/controller/RemoteController.java b/src/main/java/org/springblade/modules/remote/controller/RemoteController.java
new file mode 100644
index 0000000..cd3327d
--- /dev/null
+++ b/src/main/java/org/springblade/modules/remote/controller/RemoteController.java
@@ -0,0 +1,127 @@
+/*
+ *      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.springblade.modules.remote.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.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 org.springframework.web.bind.annotation.RequestParam;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.springblade.modules.remote.entity.Remote;
+import org.springblade.modules.remote.vo.RemoteVO;
+import org.springblade.modules.remote.service.IRemoteService;
+import org.springblade.core.boot.ctrl.BladeController;
+
+/**
+ *  控制器
+ *
+ * @author BladeX
+ * @since 2022-05-20
+ */
+@RestController
+@AllArgsConstructor
+@RequestMapping("/remote/remote")
+@Api(value = "", tags = "接口")
+public class RemoteController extends BladeController {
+
+	private final IRemoteService remoteService;
+
+	/**
+	 * 详情
+	 */
+	@GetMapping("/detail")
+	@ApiOperationSupport(order = 1)
+	@ApiOperation(value = "详情", notes = "传入remote")
+	public R<Remote> detail(Remote remote) {
+		Remote detail = remoteService.getOne(Condition.getQueryWrapper(remote));
+		return R.data(detail);
+	}
+
+	/**
+	 * 分页 
+	 */
+	@GetMapping("/list")
+	@ApiOperationSupport(order = 2)
+	@ApiOperation(value = "分页", notes = "传入remote")
+	public R<IPage<Remote>> list(Remote remote, Query query) {
+		IPage<Remote> pages = remoteService.page(Condition.getPage(query), Condition.getQueryWrapper(remote));
+		return R.data(pages);
+	}
+
+	/**
+	 * 自定义分页 
+	 */
+	@GetMapping("/page")
+	@ApiOperationSupport(order = 3)
+	@ApiOperation(value = "分页", notes = "传入remote")
+	public R<IPage<RemoteVO>> page(RemoteVO remote, Query query) {
+		IPage<RemoteVO> pages = remoteService.selectRemotePage(Condition.getPage(query), remote);
+		return R.data(pages);
+	}
+
+	/**
+	 * 新增 
+	 */
+	@PostMapping("/save")
+	@ApiOperationSupport(order = 4)
+	@ApiOperation(value = "新增", notes = "传入remote")
+	public R save(@Valid @RequestBody Remote remote) {
+		return R.status(remoteService.save(remote));
+	}
+
+	/**
+	 * 修改 
+	 */
+	@PostMapping("/update")
+	@ApiOperationSupport(order = 5)
+	@ApiOperation(value = "修改", notes = "传入remote")
+	public R update(@Valid @RequestBody Remote remote) {
+		return R.status(remoteService.updateById(remote));
+	}
+
+	/**
+	 * 新增或修改 
+	 */
+	@PostMapping("/submit")
+	@ApiOperationSupport(order = 6)
+	@ApiOperation(value = "新增或修改", notes = "传入remote")
+	public R submit(@Valid @RequestBody Remote remote) {
+		return R.status(remoteService.saveOrUpdate(remote));
+	}
+
+	
+	/**
+	 * 删除 
+	 */
+	@PostMapping("/remove")
+	@ApiOperationSupport(order = 7)
+	@ApiOperation(value = "逻辑删除", notes = "传入ids")
+	public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+		return R.status(remoteService.deleteLogic(Func.toLongList(ids)));
+	}
+
+	
+}
diff --git a/src/main/java/org/springblade/modules/remote/dto/RemoteDTO.java b/src/main/java/org/springblade/modules/remote/dto/RemoteDTO.java
new file mode 100644
index 0000000..4125a27
--- /dev/null
+++ b/src/main/java/org/springblade/modules/remote/dto/RemoteDTO.java
@@ -0,0 +1,34 @@
+/*
+ *      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.springblade.modules.remote.dto;
+
+import org.springblade.modules.remote.entity.Remote;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 数据传输对象实体类
+ *
+ * @author BladeX
+ * @since 2022-05-20
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class RemoteDTO extends Remote {
+	private static final long serialVersionUID = 1L;
+
+}
diff --git a/src/main/java/org/springblade/modules/remote/entity/Remote.java b/src/main/java/org/springblade/modules/remote/entity/Remote.java
new file mode 100644
index 0000000..6aecde9
--- /dev/null
+++ b/src/main/java/org/springblade/modules/remote/entity/Remote.java
@@ -0,0 +1,50 @@
+/*
+ *      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.springblade.modules.remote.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+
+import java.io.Serializable;
+
+import org.springblade.core.mp.base.BaseEntity;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 实体类
+ *
+ * @author BladeX
+ * @since 2022-05-20
+ */
+@Data
+@TableName("sys_remote")
+@EqualsAndHashCode(callSuper = true)
+public class Remote extends BaseEntity {
+
+	private static final long serialVersionUID = 1L;
+
+	/**
+	 * 遥感名称
+	 */
+	private String reName;
+	/**
+	 * 遥感地址
+	 */
+	private String reUrl;
+
+
+}
diff --git a/src/main/java/org/springblade/modules/remote/mapper/RemoteMapper.java b/src/main/java/org/springblade/modules/remote/mapper/RemoteMapper.java
new file mode 100644
index 0000000..b1cd669
--- /dev/null
+++ b/src/main/java/org/springblade/modules/remote/mapper/RemoteMapper.java
@@ -0,0 +1,42 @@
+/*
+ *      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.springblade.modules.remote.mapper;
+
+import org.springblade.modules.remote.entity.Remote;
+import org.springblade.modules.remote.vo.RemoteVO;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import java.util.List;
+
+/**
+ *  Mapper 接口
+ *
+ * @author BladeX
+ * @since 2022-05-20
+ */
+public interface RemoteMapper extends BaseMapper<Remote> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param remote
+	 * @return
+	 */
+	List<RemoteVO> selectRemotePage(IPage page, RemoteVO remote);
+
+}
diff --git a/src/main/java/org/springblade/modules/remote/mapper/RemoteMapper.xml b/src/main/java/org/springblade/modules/remote/mapper/RemoteMapper.xml
new file mode 100644
index 0000000..9f92fb8
--- /dev/null
+++ b/src/main/java/org/springblade/modules/remote/mapper/RemoteMapper.xml
@@ -0,0 +1,32 @@
+<?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.springblade.modules.remote.mapper.RemoteMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="remoteResultMap" type="org.springblade.modules.remote.entity.Remote">
+        <result column="id" property="id"/>
+        <result column="create_user" property="createUser"/>
+        <result column="create_dept" property="createDept"/>
+        <result column="create_time" property="createTime"/>
+        <result column="update_user" property="updateUser"/>
+        <result column="update_time" property="updateTime"/>
+        <result column="status" property="status"/>
+        <result column="is_deleted" property="isDeleted"/>
+        <result column="
+
+re_name" property="
+
+reName"/>
+        <result column="
+
+re_url" property="
+
+reUrl"/>
+    </resultMap>
+
+
+    <select id="selectRemotePage" resultMap="remoteResultMap">
+        select * from sys_remote where is_deleted = 0
+    </select>
+
+</mapper>
diff --git a/src/main/java/org/springblade/modules/remote/service/IRemoteService.java b/src/main/java/org/springblade/modules/remote/service/IRemoteService.java
new file mode 100644
index 0000000..3385102
--- /dev/null
+++ b/src/main/java/org/springblade/modules/remote/service/IRemoteService.java
@@ -0,0 +1,41 @@
+/*
+ *      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.springblade.modules.remote.service;
+
+import org.springblade.modules.remote.entity.Remote;
+import org.springblade.modules.remote.vo.RemoteVO;
+import org.springblade.core.mp.base.BaseService;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ *  服务类
+ *
+ * @author BladeX
+ * @since 2022-05-20
+ */
+public interface IRemoteService extends BaseService<Remote> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param remote
+	 * @return
+	 */
+	IPage<RemoteVO> selectRemotePage(IPage<RemoteVO> page, RemoteVO remote);
+
+}
diff --git a/src/main/java/org/springblade/modules/remote/service/impl/RemoteServiceImpl.java b/src/main/java/org/springblade/modules/remote/service/impl/RemoteServiceImpl.java
new file mode 100644
index 0000000..3bed3d2
--- /dev/null
+++ b/src/main/java/org/springblade/modules/remote/service/impl/RemoteServiceImpl.java
@@ -0,0 +1,41 @@
+/*
+ *      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.springblade.modules.remote.service.impl;
+
+import org.springblade.modules.remote.entity.Remote;
+import org.springblade.modules.remote.vo.RemoteVO;
+import org.springblade.modules.remote.mapper.RemoteMapper;
+import org.springblade.modules.remote.service.IRemoteService;
+import org.springblade.core.mp.base.BaseServiceImpl;
+import org.springframework.stereotype.Service;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ *  服务实现类
+ *
+ * @author BladeX
+ * @since 2022-05-20
+ */
+@Service
+public class RemoteServiceImpl extends BaseServiceImpl<RemoteMapper, Remote> implements IRemoteService {
+
+	@Override
+	public IPage<RemoteVO> selectRemotePage(IPage<RemoteVO> page, RemoteVO remote) {
+		return page.setRecords(baseMapper.selectRemotePage(page, remote));
+	}
+
+}
diff --git a/src/main/java/org/springblade/modules/remote/vo/RemoteVO.java b/src/main/java/org/springblade/modules/remote/vo/RemoteVO.java
new file mode 100644
index 0000000..d3a30d3
--- /dev/null
+++ b/src/main/java/org/springblade/modules/remote/vo/RemoteVO.java
@@ -0,0 +1,34 @@
+/*
+ *      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.springblade.modules.remote.vo;
+
+import org.springblade.modules.remote.entity.Remote;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 视图实体类
+ *
+ * @author BladeX
+ * @since 2022-05-20
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class RemoteVO extends Remote {
+	private static final long serialVersionUID = 1L;
+
+}
diff --git a/src/main/java/sql/panorama.menu.sql b/src/main/java/sql/panorama.menu.sql
new file mode 100644
index 0000000..299a0d6
--- /dev/null
+++ b/src/main/java/sql/panorama.menu.sql
@@ -0,0 +1,10 @@
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1527198514667323394', 1123598815738675201, 'panorama', '全景管理', 'menu', '/panorama/panorama', NULL, 1, 1, 0, 1, NULL, 0);
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1527198514667323395', '1527198514667323394', 'panorama_add', '新增', 'add', '/panorama/panorama/add', 'plus', 1, 2, 1, 1, NULL, 0);
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1527198514667323396', '1527198514667323394', 'panorama_edit', '修改', 'edit', '/panorama/panorama/edit', 'form', 2, 2, 2, 1, NULL, 0);
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1527198514667323397', '1527198514667323394', 'panorama_delete', '删除', 'delete', '/api/panorama/panorama/remove', 'delete', 3, 2, 3, 1, NULL, 0);
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1527198514667323398', '1527198514667323394', 'panorama_view', '查看', 'view', '/panorama/panorama/view', 'file-text', 4, 2, 2, 1, NULL, 0);
diff --git a/src/main/java/sql/remote.menu.sql b/src/main/java/sql/remote.menu.sql
new file mode 100644
index 0000000..aa1e9cb
--- /dev/null
+++ b/src/main/java/sql/remote.menu.sql
@@ -0,0 +1,10 @@
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1527555854931329026', 1123598815738675201, 'remote', '遥感管理', 'menu', '/remote/remote', NULL, 1, 1, 0, 1, NULL, 0);
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1527555854931329027', '1527555854931329026', 'remote_add', '新增', 'add', '/remote/remote/add', 'plus', 1, 2, 1, 1, NULL, 0);
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1527555854931329028', '1527555854931329026', 'remote_edit', '修改', 'edit', '/remote/remote/edit', 'form', 2, 2, 2, 1, NULL, 0);
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1527555854931329029', '1527555854931329026', 'remote_delete', '删除', 'delete', '/api/remote/remote/remove', 'delete', 3, 2, 3, 1, NULL, 0);
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1527555854931329030', '1527555854931329026', 'remote_view', '查看', 'view', '/remote/remote/view', 'file-text', 4, 2, 2, 1, NULL, 0);

--
Gitblit v1.9.3