From ef412709a533e49235ff2f4775d5385f9646f5e1 Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: 星期六, 02 三月 2024 09:36:10 +0800
Subject: [PATCH] 三维实景增加选择状态
---
ard-work/src/main/java/com/ruoyi/management3d/tiles3d/controller/ArdTiles3dController.java | 4 ++
ard-work/src/main/resources/mapper/management3d/ArdTiles3dMapper.xml | 10 ++++-
ard-work/src/main/java/com/ruoyi/management3d/tiles3d/domain/ArdTiles3d.java | 65 +++++++++++++++++++-------------
3 files changed, 50 insertions(+), 29 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/management3d/tiles3d/controller/ArdTiles3dController.java b/ard-work/src/main/java/com/ruoyi/management3d/tiles3d/controller/ArdTiles3dController.java
index 4201123..4ed9f95 100644
--- a/ard-work/src/main/java/com/ruoyi/management3d/tiles3d/controller/ArdTiles3dController.java
+++ b/ard-work/src/main/java/com/ruoyi/management3d/tiles3d/controller/ArdTiles3dController.java
@@ -69,6 +69,7 @@
*/
@PreAuthorize("@ss.hasPermi('management3d:tiles3d:query')")
@GetMapping(value = "/{tilesId}")
+ @ApiOperation("鑾峰彇涓夌淮瀹炴櫙璇︾粏淇℃伅")
public AjaxResult getInfo(@PathVariable("tilesId") String tilesId) {
return success(ardTiles3dService.selectArdTiles3dByTilesId(tilesId));
}
@@ -76,6 +77,7 @@
/**
* 鏂板涓夌淮瀹炴櫙
*/
+ @ApiOperation("鏂板涓夌淮瀹炴櫙")
@PreAuthorize("@ss.hasPermi('management3d:tiles3d:add')")
@Log(title = "涓夌淮瀹炴櫙", businessType = BusinessType.INSERT)
@PostMapping
@@ -86,6 +88,7 @@
/**
* 淇敼涓夌淮瀹炴櫙
*/
+ @ApiOperation("淇敼涓夌淮瀹炴櫙")
@PreAuthorize("@ss.hasPermi('management3d:tiles3d:edit')")
@Log(title = "涓夌淮瀹炴櫙", businessType = BusinessType.UPDATE)
@PutMapping
@@ -96,6 +99,7 @@
/**
* 鍒犻櫎涓夌淮瀹炴櫙
*/
+ @ApiOperation("鍒犻櫎涓夌淮瀹炴櫙")
@PreAuthorize("@ss.hasPermi('management3d:tiles3d:remove')")
@Log(title = "涓夌淮瀹炴櫙", businessType = BusinessType.DELETE)
@DeleteMapping("/{tilesIds}")
diff --git a/ard-work/src/main/java/com/ruoyi/management3d/tiles3d/domain/ArdTiles3d.java b/ard-work/src/main/java/com/ruoyi/management3d/tiles3d/domain/ArdTiles3d.java
index 9011c01..55569bb 100644
--- a/ard-work/src/main/java/com/ruoyi/management3d/tiles3d/domain/ArdTiles3d.java
+++ b/ard-work/src/main/java/com/ruoyi/management3d/tiles3d/domain/ArdTiles3d.java
@@ -7,7 +7,7 @@
/**
* 涓夌淮瀹炴櫙瀵硅薄 ard_tiles3d
- *
+ *
* @author ard
* @date 2023-06-16
*/
@@ -79,111 +79,122 @@
@Excel(name = "鐢ㄦ埛id")
private String userId;
- public void setTilesId(String tilesId)
+ /** 閫変腑鐘舵�� */
+ private boolean selected;
+
+ public boolean isSelected() {
+ return selected;
+ }
+
+ public void setSelected(boolean selected) {
+ this.selected = selected;
+ }
+
+ public void setTilesId(String tilesId)
{
this.tilesId = tilesId;
}
- public String getTilesId()
+ public String getTilesId()
{
return tilesId;
}
- public void setTilesName(String tilesName)
+ public void setTilesName(String tilesName)
{
this.tilesName = tilesName;
}
- public String getTilesName()
+ public String getTilesName()
{
return tilesName;
}
- public void setTilesUrl(String tilesUrl)
+ public void setTilesUrl(String tilesUrl)
{
this.tilesUrl = tilesUrl;
}
- public String getTilesUrl()
+ public String getTilesUrl()
{
return tilesUrl;
}
- public void setTilesType(String tilesType)
+ public void setTilesType(String tilesType)
{
this.tilesType = tilesType;
}
- public String getTilesType()
+ public String getTilesType()
{
return tilesType;
}
- public void setTilesX(Integer tilesX)
+ public void setTilesX(Integer tilesX)
{
this.tilesX = tilesX;
}
- public Integer getTilesX()
+ public Integer getTilesX()
{
return tilesX;
}
- public void setTilesY(Integer tilesY)
+ public void setTilesY(Integer tilesY)
{
this.tilesY = tilesY;
}
- public Integer getTilesY()
+ public Integer getTilesY()
{
return tilesY;
}
- public void setTilesZ(Integer tilesZ)
+ public void setTilesZ(Integer tilesZ)
{
this.tilesZ = tilesZ;
}
- public Integer getTilesZ()
+ public Integer getTilesZ()
{
return tilesZ;
}
- public void setCamPoi(String camPoi)
+ public void setCamPoi(String camPoi)
{
this.camPoi = camPoi;
}
- public String getCamPoi()
+ public String getCamPoi()
{
return camPoi;
}
- public void setCamHeading(Double camHeading)
+ public void setCamHeading(Double camHeading)
{
this.camHeading = camHeading;
}
- public Double getCamHeading()
+ public Double getCamHeading()
{
return camHeading;
}
- public void setCamPitch(Double camPitch)
+ public void setCamPitch(Double camPitch)
{
this.camPitch = camPitch;
}
- public Double getCamPitch()
+ public Double getCamPitch()
{
return camPitch;
}
- public void setMaximumScreenSpaceError(Integer maximumScreenSpaceError)
+ public void setMaximumScreenSpaceError(Integer maximumScreenSpaceError)
{
this.maximumScreenSpaceError = maximumScreenSpaceError;
}
- public Integer getMaximumScreenSpaceError()
+ public Integer getMaximumScreenSpaceError()
{
return maximumScreenSpaceError;
}
- public void setMaximumMemoryUsage(Integer maximumMemoryUsage)
+ public void setMaximumMemoryUsage(Integer maximumMemoryUsage)
{
this.maximumMemoryUsage = maximumMemoryUsage;
}
- public Integer getMaximumMemoryUsage()
+ public Integer getMaximumMemoryUsage()
{
return maximumMemoryUsage;
}
@@ -214,12 +225,12 @@
{
return deptId;
}
- public void setUserId(String userId)
+ public void setUserId(String userId)
{
this.userId = userId;
}
- public String getUserId()
+ public String getUserId()
{
return userId;
}
diff --git a/ard-work/src/main/resources/mapper/management3d/ArdTiles3dMapper.xml b/ard-work/src/main/resources/mapper/management3d/ArdTiles3dMapper.xml
index bfb5c73..b26a1ba 100644
--- a/ard-work/src/main/resources/mapper/management3d/ArdTiles3dMapper.xml
+++ b/ard-work/src/main/resources/mapper/management3d/ArdTiles3dMapper.xml
@@ -25,6 +25,7 @@
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
+ <result property="selected" column="selected"/>
</resultMap>
<sql id="selectArdTiles3dVo">
@@ -47,7 +48,8 @@
c.create_by,
c.create_time,
c.update_by,
- c.update_time
+ c.update_time,
+ c.selected
from ard_tiles3d c
left join sys_dept d on d.dept_id = c.dept_id
left join sys_user u on u.user_id = c.user_id
@@ -56,6 +58,7 @@
<select id="selectArdTiles3dList" parameterType="ArdTiles3d" resultMap="ArdTiles3dResult">
<include refid="selectArdTiles3dVo"/>
<where>
+ <if test="selected != null and selected != ''">and c.selected = #{selected}</if>
<if test="tilesId != null and tilesId != ''">and c.tiles_id = #{tilesId}</if>
<if test="tilesName != null and tilesName != ''">and c.tiles_name like '%'||#{tilesName}||'%'</if>
<if test="tilesUrl != null and tilesUrl != ''">and c.tiles_url = #{tilesUrl}</if>
@@ -111,6 +114,7 @@
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
+ <if test="selected != null">selected,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="tilesId != null">#{tilesId},</if>
@@ -133,6 +137,7 @@
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
+ <if test="selected != null">#{selected},</if>
</trim>
</insert>
@@ -162,6 +167,7 @@
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
+ <if test="selected != null">selected = #{selected},</if>
</trim>
where tiles_id = #{tilesId}
</update>
@@ -183,4 +189,4 @@
from ard_tiles3d
where dept_id = #{deptId}
</select>
-</mapper>
\ No newline at end of file
+</mapper>
--
Gitblit v1.9.3