ft:指令停止下发、允许下发通用接口接口
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user