ft:指令停止下发、允许下发通用接口接口

This commit is contained in:
PushM
2024-08-01 10:24:49 +08:00
parent 037eda3a21
commit 45ecc58a16
3 changed files with 12 additions and 0 deletions

View File

@@ -79,4 +79,6 @@ public interface CommandMapper {
void insertCommandRCPQueryBatch(@Param("command_infos")List<TaskCommandInfo> taskCommandInfoBatch);
void insertCommandTrafficBatch(@Param("command_infos")List<TaskCommandInfo> taskCommandInfoBatch);
Object setCommandValid(String commandId, Integer isValid);
}

View File

@@ -301,4 +301,8 @@ public class CommandService {
//新建的loguuid拿commannd_id来定顶一会吧
commandMapper.insertCommandHistoryBatch(commandIds);
}
public Object setCommandValid(String commandId, Integer isValid) {
return commandMapper.setCommandValid(commandId, isValid);
}
}

View File

@@ -564,6 +564,12 @@
set IS_JUDGED = 0
where COMMAND_ID = #{command_id}
</update>
<update id="setCommandValid">
UPDATE t_command_status
SET IS_VALID = #{is_valid},
LAST_UPDATE = NOW()
WHERE COMMAND_ID = #{command_id}
</update>
<select id="queryCommandInfo" resultType="java.lang.String">
SELECT COMMAND_ID FROM t_command