From d5b3d0c3d85041edff4f692755299944b7349dcd Mon Sep 17 00:00:00 2001 From: zch Date: Mon, 2 Dec 2024 16:48:16 +0800 Subject: [PATCH] =?UTF-8?q?change(base):=20=E6=AF=8D=E6=8E=92=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=A2=9E=E5=8A=A0=E5=9D=90=E6=A0=87=E5=92=8C=E6=97=8B?= =?UTF-8?q?=E8=BD=AC=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 BaseBusbarInfo 模型中添加了 wPanPos、wTiltPos、wZoomPos 和 isRotate 字段 - 更新了 mapper 和 SQL 文件以支持新字段 - 在前端页面中添加了新字段的表单和表格列 - 优化了部分 UI 样式,如添加了注释和调整了布局 --- .../com/ruoyi/base/domain/BaseBusbarInfo.java | 60 +++++++--- .../mapper/base/BaseBusbarInfoMapper.xml | 80 +++++++------- .../src/views/base/baseBusbarInfo/index.vue | 103 ++++++++++++++++-- 3 files changed, 179 insertions(+), 64 deletions(-) diff --git a/ruoyi-module/src/main/java/com/ruoyi/base/domain/BaseBusbarInfo.java b/ruoyi-module/src/main/java/com/ruoyi/base/domain/BaseBusbarInfo.java index 5d30d0d..06eb5f9 100644 --- a/ruoyi-module/src/main/java/com/ruoyi/base/domain/BaseBusbarInfo.java +++ b/ruoyi-module/src/main/java/com/ruoyi/base/domain/BaseBusbarInfo.java @@ -75,11 +75,21 @@ public class BaseBusbarInfo extends BaseEntity @Excel(name = "是否拍照:1-是;0-否") private Long isPictures; - /** 电柜别名 */ - @Excel(name = "电柜别名") - private String cabinetAlias; + /** 坐标P */ + @Excel(name = "坐标P") + private String wPanPos; - private List children = new ArrayList(); + /** 坐标T */ + @Excel(name = "坐标T") + private String wTiltPos; + + /** 坐标Z */ + @Excel(name = "坐标Z") + private String wZoomPos; + + /** 是否旋转:1-是;0-否 */ + @Excel(name = "是否旋转:1-是;0-否") + private Long isRotate; public void setObjId(Long objId) { @@ -198,22 +208,41 @@ public class BaseBusbarInfo extends BaseEntity { return isPictures; } - - public String getCabinetAlias() { - return cabinetAlias; + public void setwPanPos(String wPanPos) + { + this.wPanPos = wPanPos; } - public void setCabinetAlias(String cabinetAlias) { - this.cabinetAlias = cabinetAlias; + public String getwPanPos() + { + return wPanPos; + } + public void setwTiltPos(String wTiltPos) + { + this.wTiltPos = wTiltPos; } + public String getwTiltPos() + { + return wTiltPos; + } + public void setwZoomPos(String wZoomPos) + { + this.wZoomPos = wZoomPos; + } - public List getChildren() { - return children; + public String getwZoomPos() + { + return wZoomPos; + } + public void setIsRotate(Long isRotate) + { + this.isRotate = isRotate; } - public void setChildren(List children) { - this.children = children; + public Long getIsRotate() + { + return isRotate; } @Override @@ -233,7 +262,10 @@ public class BaseBusbarInfo extends BaseEntity .append("updatedBy", getUpdatedBy()) .append("updatedTime", getUpdatedTime()) .append("isPictures", getIsPictures()) - .append("cabinetAlias", getCabinetAlias()) + .append("wPanPos", getwPanPos()) + .append("wTiltPos", getwTiltPos()) + .append("wZoomPos", getwZoomPos()) + .append("isRotate", getIsRotate()) .toString(); } } diff --git a/ruoyi-module/src/main/resources/mapper/base/BaseBusbarInfoMapper.xml b/ruoyi-module/src/main/resources/mapper/base/BaseBusbarInfoMapper.xml index e07ad4d..c92b200 100644 --- a/ruoyi-module/src/main/resources/mapper/base/BaseBusbarInfoMapper.xml +++ b/ruoyi-module/src/main/resources/mapper/base/BaseBusbarInfoMapper.xml @@ -3,7 +3,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -19,53 +19,43 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - - + + + + - select bbi.obj_id, - bbi.busbar_code, - bbi.busbar_alias, - bbi.cabinet_code, - bbi.busbar_dist, - bbi.is_checked, is_end, - bbi.is_flag, - bbi.remark, - bbi.created_by, - bbi.created_time, - bbi.updated_by, - bbi.updated_time, - bbi.is_pictures - - from base_busbar_info bbi - + select obj_id, busbar_code, busbar_alias, cabinet_code, busbar_dist, is_checked, is_end, is_flag, remark, created_by, created_time, updated_by, updated_time, is_pictures, wPanPos, wTiltPos, wZoomPos, is_rotate from base_busbar_info - + @@ -84,6 +74,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" updated_by, updated_time, is_pictures, + wPanPos, + wTiltPos, + wZoomPos, + is_rotate, #{busbarCode}, @@ -99,6 +93,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{updatedBy}, #{updatedTime}, #{isPictures}, + #{wPanPos}, + #{wTiltPos}, + #{wZoomPos}, + #{isRotate}, @@ -118,6 +116,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" updated_by = #{updatedBy}, updated_time = #{updatedTime}, is_pictures = #{isPictures}, + wPanPos = #{wPanPos}, + wTiltPos = #{wTiltPos}, + wZoomPos = #{wZoomPos}, + is_rotate = #{isRotate}, where obj_id = #{objId} @@ -127,9 +129,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - delete from base_busbar_info where obj_id in + delete from base_busbar_info where obj_id in #{objId} - + \ No newline at end of file diff --git a/ruoyi-ui/src/views/base/baseBusbarInfo/index.vue b/ruoyi-ui/src/views/base/baseBusbarInfo/index.vue index 3cd8664..394ca84 100644 --- a/ruoyi-ui/src/views/base/baseBusbarInfo/index.vue +++ b/ruoyi-ui/src/views/base/baseBusbarInfo/index.vue @@ -48,14 +48,14 @@ @keyup.enter.native="handleQuery" /> --> - + + --> - + - + + + 搜索 重置 @@ -221,6 +261,7 @@ @@ -251,6 +292,14 @@ + + + + + +