From 83c6497b1b350ebad30271bfe4c944ac1d47fca1 Mon Sep 17 00:00:00 2001 From: "382696293@qq.com" <382696293@qq.com> Date: Thu, 18 Jan 2024 13:45:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=AA=E5=99=A8=E7=AE=A1=E7=90=86-=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E8=93=9D=E7=89=99=E8=BF=9E=E6=8E=A5=E3=80=81=E6=96=AD?= =?UTF-8?q?=E5=BC=80=E3=80=81=E5=A4=B1=E8=B4=A5=E7=9A=84=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E3=80=81=E6=A0=87=E9=A2=98=E3=80=81=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/domain/entity/WxInstrument.java | 92 ++++++++++++ .../core/domain/entity/WxInstrumentMode.java | 13 ++ .../core/domain/req/WxInstrumentSaveReq.java | 92 ++++++++++++ .../resources/mapper/WxInstrumentMapper.xml | 37 ++++- .../mapper/WxInstrumentModeMapper.xml | 7 +- .../src/views/system/instrument/index.vue | 134 ++++++++++++++---- 6 files changed, 347 insertions(+), 28 deletions(-) diff --git a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/entity/WxInstrument.java b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/entity/WxInstrument.java index 1f56092..e365cfc 100644 --- a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/entity/WxInstrument.java +++ b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/entity/WxInstrument.java @@ -145,16 +145,51 @@ public class WxInstrument extends BaseEntity { */ private String shoppingPath; + /** + * 蓝牙连接中标题 + */ + private String bluetoothConnectingTitle; + /** * 蓝牙连接中图片 */ private String bluetoothConnecting; + /** + * 蓝牙连接中文案 + */ + private String bluetoothConnectingContent; + + /** + * 蓝牙关闭标题 + */ + private String bluetoothClosedTitle; + /** * 蓝牙关闭图片 */ private String bluetoothClosed; + /** + * 蓝牙关闭文案 + */ + private String bluetoothClosedContent; + + /** + * 蓝牙连接失败标题 + */ + private String bluetoothConnectFailTitle; + + /** + * 蓝牙连接失败图片 + */ + private String bluetoothConnectFail; + + /** + * 蓝牙连接失败文案 + */ + private String bluetoothConnectFailContent; + /** * iot版本升级说明 */ @@ -436,6 +471,63 @@ public class WxInstrument extends BaseEntity { this.bindingCredit = bindingCredit; } + public String getBluetoothConnectingTitle() { + return bluetoothConnectingTitle; + } + + public void setBluetoothConnectingTitle(String bluetoothConnectingTitle) { + this.bluetoothConnectingTitle = bluetoothConnectingTitle; + } + + public String getBluetoothClosedTitle() { + return bluetoothClosedTitle; + } + + public void setBluetoothClosedTitle(String bluetoothClosedTitle) { + this.bluetoothClosedTitle = bluetoothClosedTitle; + } + + public String getBluetoothConnectFailTitle() { + return bluetoothConnectFailTitle; + } + + public void setBluetoothConnectFailTitle(String bluetoothConnectFailTitle) { + this.bluetoothConnectFailTitle = bluetoothConnectFailTitle; + } + + public String getBluetoothConnectFail() { + return bluetoothConnectFail; + } + + public void setBluetoothConnectFail(String bluetoothConnectFail) { + this.bluetoothConnectFail = bluetoothConnectFail; + } + + public String getBluetoothConnectingContent() { + return bluetoothConnectingContent; + } + + public void setBluetoothConnectingContent(String bluetoothConnectingContent) { + this.bluetoothConnectingContent = bluetoothConnectingContent; + } + + public String getBluetoothClosedContent() { + return bluetoothClosedContent; + } + + public void setBluetoothClosedContent(String bluetoothClosedContent) { + this.bluetoothClosedContent = bluetoothClosedContent; + } + + public String getBluetoothConnectFailContent() { + return bluetoothConnectFailContent; + } + + public void setBluetoothConnectFailContent(String bluetoothConnectFailContent) { + this.bluetoothConnectFailContent = bluetoothConnectFailContent; + } + + @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) diff --git a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/entity/WxInstrumentMode.java b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/entity/WxInstrumentMode.java index 087afaa..cf2c0dd 100644 --- a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/entity/WxInstrumentMode.java +++ b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/entity/WxInstrumentMode.java @@ -32,6 +32,11 @@ public class WxInstrumentMode extends BaseEntity { @Excel(name = "模式id") private Long modeId; + /** + * 是否带new标识(0不带,1带) + */ + private Integer isNew; + /** * 排序 */ @@ -83,6 +88,14 @@ public class WxInstrumentMode extends BaseEntity { this.modeSort = modeSort; } + public Integer getIsNew() { + return isNew; + } + + public void setIsNew(Integer isNew) { + this.isNew = isNew; + } + @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) diff --git a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/req/WxInstrumentSaveReq.java b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/req/WxInstrumentSaveReq.java index 4b0b708..5aff9b6 100644 --- a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/req/WxInstrumentSaveReq.java +++ b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/req/WxInstrumentSaveReq.java @@ -141,16 +141,52 @@ public class WxInstrumentSaveReq { */ private String shoppingPath; + /** + * 蓝牙连接中标题 + */ + private String bluetoothConnectingTitle; + /** * 蓝牙连接中图片 */ private String bluetoothConnecting; + /** + * 蓝牙连接中文案 + */ + private String bluetoothConnectingContent; + + /** + * 蓝牙关闭标题 + */ + private String bluetoothClosedTitle; + /** * 蓝牙关闭图片 */ private String bluetoothClosed; + /** + * 蓝牙关闭文案 + */ + private String bluetoothClosedContent; + + /** + * 蓝牙连接失败标题 + */ + private String bluetoothConnectFailTitle; + + /** + * 蓝牙连接失败图片 + */ + private String bluetoothConnectFail; + + /** + * 蓝牙连接失败文案 + */ + private String bluetoothConnectFailContent; + + /** * iot版本升级说明 */ @@ -436,4 +472,60 @@ public class WxInstrumentSaveReq { public void setModeIdsValue(List modeIdsValue) { this.modeIdsValue = modeIdsValue; } + + public String getBluetoothConnectingTitle() { + return bluetoothConnectingTitle; + } + + public void setBluetoothConnectingTitle(String bluetoothConnectingTitle) { + this.bluetoothConnectingTitle = bluetoothConnectingTitle; + } + + public String getBluetoothConnectingContent() { + return bluetoothConnectingContent; + } + + public void setBluetoothConnectingContent(String bluetoothConnectingContent) { + this.bluetoothConnectingContent = bluetoothConnectingContent; + } + + public String getBluetoothClosedTitle() { + return bluetoothClosedTitle; + } + + public void setBluetoothClosedTitle(String bluetoothClosedTitle) { + this.bluetoothClosedTitle = bluetoothClosedTitle; + } + + public String getBluetoothClosedContent() { + return bluetoothClosedContent; + } + + public void setBluetoothClosedContent(String bluetoothClosedContent) { + this.bluetoothClosedContent = bluetoothClosedContent; + } + + public String getBluetoothConnectFailTitle() { + return bluetoothConnectFailTitle; + } + + public void setBluetoothConnectFailTitle(String bluetoothConnectFailTitle) { + this.bluetoothConnectFailTitle = bluetoothConnectFailTitle; + } + + public String getBluetoothConnectFail() { + return bluetoothConnectFail; + } + + public void setBluetoothConnectFail(String bluetoothConnectFail) { + this.bluetoothConnectFail = bluetoothConnectFail; + } + + public String getBluetoothConnectFailContent() { + return bluetoothConnectFailContent; + } + + public void setBluetoothConnectFailContent(String bluetoothConnectFailContent) { + this.bluetoothConnectFailContent = bluetoothConnectFailContent; + } } diff --git a/flossom-common/flossom-common-core/src/main/resources/mapper/WxInstrumentMapper.xml b/flossom-common/flossom-common-core/src/main/resources/mapper/WxInstrumentMapper.xml index 7c493dc..e6239d9 100644 --- a/flossom-common/flossom-common-core/src/main/resources/mapper/WxInstrumentMapper.xml +++ b/flossom-common/flossom-common-core/src/main/resources/mapper/WxInstrumentMapper.xml @@ -30,8 +30,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + + + + + @@ -45,7 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select id, name, type, model, banner, logo, serial, guarantee, daily_clock_credit, is_extra_clock, binding_credit, extra_clock_credit, start_time, end_time, mini_tag_ids, mini_tag_names, wecom_tag_ids, wecom_tag_names, nursing_time, iot_version, iot_upgrade_data, is_scan_code, is_purchase, shopping_appid, shopping_path, bluetooth_connecting, bluetooth_closed, iot_version_upgrade, sort_no, status, manual_code_binding, scan_code_binding, create_by, create_time, update_by, update_time, remark from wx_instrument + select id, name, type, model, banner, logo, serial, guarantee, daily_clock_credit, is_extra_clock, binding_credit, extra_clock_credit, start_time, end_time, mini_tag_ids, mini_tag_names, wecom_tag_ids, wecom_tag_names, nursing_time, iot_version, iot_upgrade_data, is_scan_code, is_purchase, shopping_appid, shopping_path, bluetooth_connecting_title, bluetooth_connecting_content,bluetooth_connecting, bluetooth_closed_title, bluetooth_closed_content, bluetooth_closed, bluetooth_connect_fail_title, bluetooth_connect_fail_content, bluetooth_connect_fail, iot_version_upgrade, sort_no, status, manual_code_binding, scan_code_binding, create_by, create_time, update_by, update_time, remark from wx_instrument @@ -23,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and instrument_id = #{instrumentId} and mode_id = #{modeId} + and is_new = #{isNew} and status = #{status} order by mode_sort @@ -39,6 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" instrument_id, mode_id, mode_sort, + is_new, status, create_by, create_time, @@ -47,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{instrumentId}, #{modeId}, #{modeSort}, + #{isNew}, #{status}, #{createBy}, #{createTime}, @@ -59,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" instrument_id = #{instrumentId}, mode_id = #{modeId}, mode_sort = #{modeSort}, + isNew = #{isNew}, status = #{status}, create_by = #{createBy}, create_time = #{createTime}, diff --git a/flossom-ui/src/views/system/instrument/index.vue b/flossom-ui/src/views/system/instrument/index.vue index 9dc54d0..2575c74 100644 --- a/flossom-ui/src/views/system/instrument/index.vue +++ b/flossom-ui/src/views/system/instrument/index.vue @@ -716,7 +716,35 @@
只能上传一个文件
- + + + + + + + + + 点击上传 +
只能上传一个文件
+
+
+ + + + + + + 只能上传一个文件 + + + + + +