From 24da4a2e94c8c51768b7578b42a3ad970a3530ad Mon Sep 17 00:00:00 2001 From: tiger_zhou <123456> Date: Fri, 31 Mar 2023 11:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=AD=E9=9F=B3=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../voice2/work/VoiceCommandAnalyseWork.java | 8 +- .../mapper/voice/VoiceDeviceConfigDAO.xml | 368 ------------------ 2 files changed, 7 insertions(+), 369 deletions(-) delete mode 100644 src/main/resources/mybatis/mapper/voice/VoiceDeviceConfigDAO.xml diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/command/voice2/work/VoiceCommandAnalyseWork.java b/src/main/java/club/joylink/rtss/simulation/cbtc/command/voice2/work/VoiceCommandAnalyseWork.java index 8cd0d41fc..fbc4f29a2 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/command/voice2/work/VoiceCommandAnalyseWork.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/command/voice2/work/VoiceCommandAnalyseWork.java @@ -57,8 +57,14 @@ public class VoiceCommandAnalyseWork { return null; } + /** + * 执行操作 + * @param simulation + * @param commandParse + * @param operate + * @return + */ public WorkResult work(Simulation simulation, CommandParse commandParse,OperateEnum operate){ - IDeviceWorkHandle deviceWork = this.findDeviceWorkHandle(operate.getDeviceType()); Optional optional = deviceWork.findDevice(simulation,commandParse,operate); if(optional.isEmpty()){ diff --git a/src/main/resources/mybatis/mapper/voice/VoiceDeviceConfigDAO.xml b/src/main/resources/mybatis/mapper/voice/VoiceDeviceConfigDAO.xml deleted file mode 100644 index 5f74c5824..000000000 --- a/src/main/resources/mybatis/mapper/voice/VoiceDeviceConfigDAO.xml +++ /dev/null @@ -1,368 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, `describe`, map_id, create_id, handle_type, wake_up_kw, create_time, update_time, - device_type, `status` - - - config - - - - - - delete from rts_voice_device_config - where id = #{id,jdbcType=BIGINT} - - - delete from rts_voice_device_config - - - - - - insert into rts_voice_device_config (`describe`, map_id, create_id, - handle_type, wake_up_kw, create_time, - update_time, device_type, `status`, - config) - values (#{describe,jdbcType=VARCHAR}, #{mapId,jdbcType=BIGINT}, #{createId,jdbcType=BIGINT}, - #{handleType,jdbcType=VARCHAR}, #{wakeUpKw,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, - #{updateTime,jdbcType=TIMESTAMP}, #{deviceType,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, - #{config,jdbcType=LONGVARCHAR}) - - - insert into rts_voice_device_config - - - `describe`, - - - map_id, - - - create_id, - - - handle_type, - - - wake_up_kw, - - - create_time, - - - update_time, - - - device_type, - - - `status`, - - - config, - - - - - #{describe,jdbcType=VARCHAR}, - - - #{mapId,jdbcType=BIGINT}, - - - #{createId,jdbcType=BIGINT}, - - - #{handleType,jdbcType=VARCHAR}, - - - #{wakeUpKw,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{updateTime,jdbcType=TIMESTAMP}, - - - #{deviceType,jdbcType=VARCHAR}, - - - #{status,jdbcType=INTEGER}, - - - #{config,jdbcType=LONGVARCHAR}, - - - - - - update rts_voice_device_config - - - id = #{record.id,jdbcType=BIGINT}, - - - `describe` = #{record.describe,jdbcType=VARCHAR}, - - - map_id = #{record.mapId,jdbcType=BIGINT}, - - - create_id = #{record.createId,jdbcType=BIGINT}, - - - handle_type = #{record.handleType,jdbcType=VARCHAR}, - - - wake_up_kw = #{record.wakeUpKw,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - - - device_type = #{record.deviceType,jdbcType=VARCHAR}, - - - `status` = #{record.status,jdbcType=INTEGER}, - - - config = #{record.config,jdbcType=LONGVARCHAR}, - - - - - - - - update rts_voice_device_config - set id = #{record.id,jdbcType=BIGINT}, - `describe` = #{record.describe,jdbcType=VARCHAR}, - map_id = #{record.mapId,jdbcType=BIGINT}, - create_id = #{record.createId,jdbcType=BIGINT}, - handle_type = #{record.handleType,jdbcType=VARCHAR}, - wake_up_kw = #{record.wakeUpKw,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - device_type = #{record.deviceType,jdbcType=VARCHAR}, - `status` = #{record.status,jdbcType=INTEGER}, - config = #{record.config,jdbcType=LONGVARCHAR} - - - - - - update rts_voice_device_config - set id = #{record.id,jdbcType=BIGINT}, - `describe` = #{record.describe,jdbcType=VARCHAR}, - map_id = #{record.mapId,jdbcType=BIGINT}, - create_id = #{record.createId,jdbcType=BIGINT}, - handle_type = #{record.handleType,jdbcType=VARCHAR}, - wake_up_kw = #{record.wakeUpKw,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - device_type = #{record.deviceType,jdbcType=VARCHAR}, - `status` = #{record.status,jdbcType=INTEGER} - - - - - - update rts_voice_device_config - - - `describe` = #{describe,jdbcType=VARCHAR}, - - - map_id = #{mapId,jdbcType=BIGINT}, - - - create_id = #{createId,jdbcType=BIGINT}, - - - handle_type = #{handleType,jdbcType=VARCHAR}, - - - wake_up_kw = #{wakeUpKw,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - update_time = #{updateTime,jdbcType=TIMESTAMP}, - - - device_type = #{deviceType,jdbcType=VARCHAR}, - - - `status` = #{status,jdbcType=INTEGER}, - - - config = #{config,jdbcType=LONGVARCHAR}, - - - where id = #{id,jdbcType=BIGINT} - - - update rts_voice_device_config - set `describe` = #{describe,jdbcType=VARCHAR}, - map_id = #{mapId,jdbcType=BIGINT}, - create_id = #{createId,jdbcType=BIGINT}, - handle_type = #{handleType,jdbcType=VARCHAR}, - wake_up_kw = #{wakeUpKw,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - device_type = #{deviceType,jdbcType=VARCHAR}, - `status` = #{status,jdbcType=INTEGER}, - config = #{config,jdbcType=LONGVARCHAR} - where id = #{id,jdbcType=BIGINT} - - - update rts_voice_device_config - set `describe` = #{describe,jdbcType=VARCHAR}, - map_id = #{mapId,jdbcType=BIGINT}, - create_id = #{createId,jdbcType=BIGINT}, - handle_type = #{handleType,jdbcType=VARCHAR}, - wake_up_kw = #{wakeUpKw,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - device_type = #{deviceType,jdbcType=VARCHAR}, - `status` = #{status,jdbcType=INTEGER} - where id = #{id,jdbcType=BIGINT} - - \ No newline at end of file