Ver Fonte

feat: 添加videoStable相关模版代码

WANGKANG há 10 meses atrás
pai
commit
8f195e1ab4

+ 109 - 0
taais-modules/taais-biz/src/main/java/com/taais/biz/controller/VideoStableController.java

@@ -0,0 +1,109 @@
+package com.taais.biz.controller;
+
+import java.util.List;
+
+import lombok.RequiredArgsConstructor;
+import jakarta.servlet.http.HttpServletResponse;
+import cn.dev33.satoken.annotation.SaCheckPermission;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.validation.annotation.Validated;
+import com.taais.common.core.core.domain.CommonResult;
+import com.taais.common.excel.utils.ExcelUtil;
+import com.taais.common.log.annotation.Log;
+import com.taais.common.log.enums.BusinessType;
+import com.taais.common.web.annotation.RepeatSubmit;
+import com.taais.common.web.core.BaseController;
+import jakarta.annotation.Resource;
+import com.taais.biz.domain.vo.VideoStableVo;
+import com.taais.biz.domain.bo.VideoStableBo;
+import com.taais.biz.service.IVideoStableService;
+
+import com.taais.common.core.core.page.PageResult;
+
+/**
+ * 视频去抖动Controller
+ *
+ * @author 0
+ * 2024-08-30
+ */
+@Validated
+@RequiredArgsConstructor
+@RestController
+@RequestMapping("/demo/videoStable")
+public class VideoStableController extends BaseController {
+    @Resource
+    private IVideoStableService videoStableService;
+
+    /**
+     * 查询视频去抖动列表
+     */
+    @SaCheckPermission("demo:videoStable:list")
+    @GetMapping("/list")
+    public CommonResult<PageResult<VideoStableVo>> list(VideoStableBo videoStableBo) {
+        return CommonResult.success(videoStableService.selectPage(videoStableBo));
+    }
+
+    /**
+     * 导出视频去抖动列表
+     */
+    @SaCheckPermission("demo:videoStable:export")
+    @Log(title = "视频去抖动", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, VideoStableBo videoStableBo) {
+        List<VideoStableVo> list = videoStableService.selectList(videoStableBo);
+        ExcelUtil.exportExcel(list, "视频去抖动", VideoStableVo.class, response);
+    }
+
+    /**
+     * 获取视频去抖动详细信息
+     */
+    @SaCheckPermission("demo:videoStable:query")
+    @GetMapping(value = "/{id}")
+    public CommonResult<VideoStableVo> getInfo(@PathVariable Long id) {
+        return CommonResult.success(videoStableService.selectById(id));
+    }
+
+    /**
+     * 新增视频去抖动
+     */
+    @SaCheckPermission("demo:videoStable:add")
+    @Log(title = "视频去抖动", businessType = BusinessType.INSERT)
+    @RepeatSubmit()
+    @PostMapping
+    public CommonResult<Void> add(@Validated @RequestBody VideoStableBo videoStableBo) {
+        boolean inserted = videoStableService.insert(videoStableBo);
+        if (!inserted) {
+            return CommonResult.fail("新增视频去抖动记录失败!");
+        }
+        return CommonResult.success();
+    }
+
+    /**
+     * 修改视频去抖动
+     */
+    @SaCheckPermission("demo:videoStable:edit")
+    @Log(title = "视频去抖动", businessType = BusinessType.UPDATE)
+    @RepeatSubmit()
+    @PutMapping
+    public CommonResult<Void> edit(@Validated @RequestBody VideoStableBo videoStableBo) {
+        Boolean updated = videoStableService.update(videoStableBo);
+        if (!updated) {
+            return CommonResult.fail("修改视频去抖动记录失败!");
+        }
+        return CommonResult.success();
+    }
+
+    /**
+     * 删除视频去抖动
+     */
+    @SaCheckPermission("demo:videoStable:remove")
+    @Log(title = "视频去抖动", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public CommonResult<Void> remove(@PathVariable Long[] ids) {
+        boolean deleted = videoStableService.deleteByIds(ids);
+        if (!deleted) {
+            return CommonResult.fail("删除视频去抖动记录失败!");
+        }
+        return CommonResult.success();
+    }
+}

+ 63 - 0
taais-modules/taais-biz/src/main/java/com/taais/biz/domain/VideoStable.java

@@ -0,0 +1,63 @@
+package com.taais.biz.domain;
+
+import java.util.Date;
+import com.mybatisflex.annotation.Column;
+import com.mybatisflex.annotation.Id;
+import com.mybatisflex.annotation.Table;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.io.Serial;
+import com.taais.common.orm.core.domain.BaseEntity;
+
+/**
+ * 视频去抖动对象 video_stable
+ *
+ * @author 0
+ * 2024-08-30
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@Table(value = "video_stable")
+public class VideoStable extends BaseEntity
+    {
+@Serial
+private static final long serialVersionUID = 1L;
+
+    /** 主键ID */
+    @Id
+    private Long id;
+
+    /** 视频名称 */
+    private String name;
+
+    /** 任务状态 0未开始 1进行中 2已结束 */
+    private String status;
+
+    /** 输入图片集路径 */
+    private String inputPath;
+
+    /** 去抖动的图片集路径 */
+    private String outPath;
+
+    /** 开始时间 */
+    private Date startTime;
+
+    /** 结束时间 */
+    private Date endTime;
+
+    /** 耗时 */
+    private Long costSecond;
+
+    /** 日志 */
+    private String log;
+
+    /** 备注 */
+    private String remarks;
+
+    /** 逻辑删除标志(0代表存在 1代表删除) */
+    @Column(isLogicDelete = true)
+    private Integer delFlag;
+
+
+}

+ 85 - 0
taais-modules/taais-biz/src/main/java/com/taais/biz/domain/bo/VideoStableBo.java

@@ -0,0 +1,85 @@
+package com.taais.biz.domain.bo;
+
+import com.taais.biz.domain.VideoStable;
+import io.github.linpeilie.annotations.AutoMapper;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import jakarta.validation.constraints.*;
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.taais.common.orm.core.domain.BaseEntity;
+
+/**
+ * 视频去抖动业务对象 video_stable
+ *
+ * @author 0
+ * @date 2024-08-30
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@AutoMapper(target = VideoStable.class, reverseConvertGenerate = false)
+public class VideoStableBo extends BaseEntity{
+    /**
+     * 主键ID
+     */
+    @NotNull(message = "主键ID不能为空")
+    private Long id;
+
+    /**
+     * 视频名称
+     */
+    @NotBlank(message = "视频名称不能为空")
+    private String name;
+
+    /**
+     * 任务状态 0未开始 1进行中 2已结束
+     */
+    @NotBlank(message = "任务状态 0未开始 1进行中 2已结束不能为空")
+    private String status;
+
+    /**
+     * 输入图片集路径
+     */
+    @NotBlank(message = "输入图片集路径不能为空")
+    private String inputPath;
+
+    /**
+     * 去抖动的图片集路径
+     */
+    @NotBlank(message = "去抖动的图片集路径不能为空")
+    private String outPath;
+
+    /**
+     * 开始时间
+     */
+    @NotNull(message = "开始时间不能为空")
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    private Date startTime;
+
+    /**
+     * 结束时间
+     */
+    @NotNull(message = "结束时间不能为空")
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    private Date endTime;
+
+    /**
+     * 耗时
+     */
+    @NotNull(message = "耗时不能为空")
+    private Long costSecond;
+
+    /**
+     * 日志
+     */
+    @NotBlank(message = "日志不能为空")
+    private String log;
+
+    /**
+     * 备注
+     */
+    @NotBlank(message = "备注不能为空")
+    private String remarks;
+
+
+}

+ 67 - 0
taais-modules/taais-biz/src/main/java/com/taais/biz/domain/vo/VideoStableImportVo.java

@@ -0,0 +1,67 @@
+package com.taais.biz.domain.vo;
+
+import java.util.Date;
+import com.alibaba.excel.annotation.ExcelProperty;
+import lombok.Data;
+import java.io.Serial;
+import java.io.Serializable;
+import lombok.NoArgsConstructor;
+
+/**
+ * 视频去抖动导入视图对象 video_stable
+ *
+ * @author 0
+ * @date 2024-08-30
+ */
+
+@Data
+@NoArgsConstructor
+public class VideoStableImportVo implements Serializable
+{
+
+    @Serial
+    private static final long serialVersionUID = 1L;
+
+
+     /** 视频名称 */
+    @ExcelProperty(value = "视频名称")
+    private String name;
+
+     /** 任务状态 0未开始 1进行中 2已结束 */
+    @ExcelProperty(value = "任务状态 0未开始 1进行中 2已结束")
+    private String status;
+
+     /** 输入图片集路径 */
+    @ExcelProperty(value = "输入图片集路径")
+    private String inputPath;
+
+     /** 去抖动的图片集路径 */
+    @ExcelProperty(value = "去抖动的图片集路径")
+    private String outPath;
+
+     /** 开始时间 */
+    @ExcelProperty(value = "开始时间")
+    private Date startTime;
+
+     /** 结束时间 */
+    @ExcelProperty(value = "结束时间")
+    private Date endTime;
+
+     /** 耗时 */
+    @ExcelProperty(value = "耗时")
+    private Long costSecond;
+
+     /** 日志 */
+    @ExcelProperty(value = "日志")
+    private String log;
+
+     /** 备注 */
+    @ExcelProperty(value = "备注")
+    private String remarks;
+
+     /** 逻辑删除标志(0代表存在 1代表删除) */
+    @ExcelProperty(value = "逻辑删除标志(0代表存在 1代表删除)")
+    private Integer delFlag;
+
+
+}

+ 75 - 0
taais-modules/taais-biz/src/main/java/com/taais/biz/domain/vo/VideoStableVo.java

@@ -0,0 +1,75 @@
+package com.taais.biz.domain.vo;
+
+import java.util.Date;
+import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
+import com.alibaba.excel.annotation.ExcelProperty;
+import com.taais.biz.domain.VideoStable;
+import io.github.linpeilie.annotations.AutoMapper;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import java.io.Serial;
+import java.io.Serializable;
+import com.taais.common.orm.core.domain.BaseEntity;
+
+/**
+ * 视频去抖动视图对象 video_stable
+ *
+ * @author 0
+ * @date 2024-08-30
+ */
+@Data
+@ExcelIgnoreUnannotated
+@EqualsAndHashCode(callSuper = true)
+@AutoMapper(target = VideoStable.class)
+public class VideoStableVo extends BaseEntity implements Serializable {
+
+@Serial
+private static final long serialVersionUID = 1L;
+
+    /** 主键ID */
+    @ExcelProperty(value = "主键ID")
+    private Long id;
+
+    /** 视频名称 */
+    @ExcelProperty(value = "视频名称")
+    private String name;
+
+    /** 任务状态 0未开始 1进行中 2已结束 */
+    @ExcelProperty(value = "任务状态 0未开始 1进行中 2已结束")
+    private String status;
+
+    /** 输入图片集路径 */
+    @ExcelProperty(value = "输入图片集路径")
+    private String inputPath;
+
+    /** 去抖动的图片集路径 */
+    @ExcelProperty(value = "去抖动的图片集路径")
+    private String outPath;
+
+    /** 开始时间 */
+    @ExcelProperty(value = "开始时间")
+    private Date startTime;
+
+    /** 结束时间 */
+    @ExcelProperty(value = "结束时间")
+    private Date endTime;
+
+    /** 耗时 */
+    @ExcelProperty(value = "耗时")
+    private Long costSecond;
+
+    /** 日志 */
+    @ExcelProperty(value = "日志")
+    private String log;
+
+    /** 备注 */
+    @ExcelProperty(value = "备注")
+    private String remarks;
+
+    /** 逻辑删除标志(0代表存在 1代表删除) */
+    @ExcelProperty(value = "逻辑删除标志(0代表存在 1代表删除)")
+    private Integer delFlag;
+
+
+
+}

+ 119 - 0
taais-modules/taais-biz/src/main/java/com/taais/biz/listener/VideoStableImportListener.java

@@ -0,0 +1,119 @@
+package com.taais.biz.listener;
+
+import cn.hutool.core.bean.BeanUtil;
+import cn.hutool.core.util.ObjectUtil;
+import com.alibaba.excel.context.AnalysisContext;
+import com.alibaba.excel.event.AnalysisEventListener;
+import com.taais.common.core.exception.ServiceException;
+import com.taais.common.core.utils.SpringUtils;
+import com.taais.common.core.utils.ValidatorUtils;
+import com.taais.common.excel.core.ExcelListener;
+import com.taais.common.excel.core.ExcelResult;
+import com.taais.biz.domain.bo.VideoStableBo;
+import com.taais.biz.domain.vo.VideoStableImportVo;
+import com.taais.biz.domain.vo.VideoStableVo;
+import com.taais.biz.service.IVideoStableService;
+import lombok.extern.slf4j.Slf4j;
+
+import java.util.List;
+
+/**
+ * 视频去抖动自定义导入
+ *
+ * @author 0
+ */
+@Slf4j
+public class VideoStableImportListener extends AnalysisEventListener<VideoStableImportVo> implements ExcelListener<VideoStableImportVo> {
+    private final IVideoStableService videoStableService;
+
+    private final Boolean isUpdateSupport;
+    private int successNum = 0;
+    private int failureNum = 0;
+    private final StringBuilder successMsg = new StringBuilder();
+    private final StringBuilder failureMsg = new StringBuilder();
+
+    public VideoStableImportListener(Boolean isUpdateSupport) {
+        this.videoStableService = SpringUtils.getBean(IVideoStableService.class);
+        this.isUpdateSupport = isUpdateSupport;
+    }
+
+    @Override
+    public void invoke(VideoStableImportVo videoStableVo, AnalysisContext context) {
+        try {
+
+            VideoStableBo videoStableBo = BeanUtil.toBean(videoStableVo, VideoStableBo.class);
+
+            //TODO:根据某个字段,查询数据库表中是否存在记录,不存在就新增,存在就更新
+            VideoStableVo videoStableVo1 = null;
+
+            //videoStableVo1 = videoStableService.selectBySomefield(videoStableVo.getSomefield());
+            if (ObjectUtil.isNull(videoStableVo1)) {
+                //不存在就新增
+                videoStableBo.setVersion(0);
+                ValidatorUtils.validate(videoStableBo);
+                boolean inserted = videoStableService.insert(videoStableBo);
+
+                if (inserted) {
+                    successNum++;
+                    successMsg.append("<br/>").append(successNum).append("、视频去抖动 记录导入成功");
+                    return;
+                } else {
+                    failureNum++;
+                    failureMsg.append("<br/>").append(failureNum).append("、视频去抖动 记录导入失败");
+                    return;
+                }
+            } else if (isUpdateSupport) {
+                //存在就更新
+                videoStableBo.setId(videoStableVo1.getId());//主键
+                videoStableBo.setVersion(videoStableVo1.getVersion());
+                boolean updated = videoStableService.update(videoStableBo);
+                if (updated) {
+                    successNum++;
+                    successMsg.append("<br/>").append(successNum).append("、视频去抖动 记录更新成功");
+                    return;
+                } else {
+                    failureNum++;
+                    failureMsg.append("<br/>").append(failureNum).append("、视频去抖动 记录更新失败");
+                    return;
+                }
+            }
+        } catch (Exception e) {
+            failureNum++;
+            String msg = "<br/>" + failureNum + "、视频去抖动 记录导入失败:";
+            failureMsg.append(msg).append(e.getMessage());
+            log.error(msg, e);
+        }
+    }
+
+    @Override
+    public void doAfterAllAnalysed(AnalysisContext context) {
+
+    }
+
+    @Override
+    public ExcelResult<VideoStableImportVo> getExcelResult() {
+        return new ExcelResult<>() {
+
+            @Override
+            public String getAnalysis() {
+                if (failureNum > 0) {
+                    failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据没有成功导入,错误如下:");
+                    throw new ServiceException(failureMsg.toString());
+                } else {
+                    successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
+                }
+                return successMsg.toString();
+            }
+
+            @Override
+            public List<VideoStableImportVo> getList() {
+                return null;
+            }
+
+            @Override
+            public List<String> getErrorList() {
+                return null;
+            }
+        };
+    }
+}

+ 16 - 0
taais-modules/taais-biz/src/main/java/com/taais/biz/mapper/VideoStableMapper.java

@@ -0,0 +1,16 @@
+package com.taais.biz.mapper;
+
+import com.mybatisflex.core.BaseMapper;
+import com.taais.biz.domain.VideoStable;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 视频去抖动Mapper接口
+ *
+ * @author 0
+ * 2024-08-30
+ */
+@Mapper
+public interface VideoStableMapper extends BaseMapper<VideoStable> {
+
+}

+ 66 - 0
taais-modules/taais-biz/src/main/java/com/taais/biz/service/IVideoStableService.java

@@ -0,0 +1,66 @@
+package com.taais.biz.service;
+
+import java.util.List;
+
+import com.taais.biz.domain.VideoStable;
+import com.taais.biz.domain.vo.VideoStableVo;
+import com.taais.biz.domain.bo.VideoStableBo;
+import com.taais.common.orm.core.service.IBaseService;
+import com.taais.common.core.core.page.PageResult;
+
+/**
+ * 视频去抖动Service接口
+ *
+ * @author 0
+ * 2024-08-30
+ */
+public interface IVideoStableService extends IBaseService<VideoStable> {
+    /**
+     * 查询视频去抖动
+     *
+     * @param id 视频去抖动主键
+     * @return 视频去抖动
+     */
+        VideoStableVo selectById(Long id);
+
+    /**
+     * 查询视频去抖动列表
+     *
+     * @param videoStableBo 视频去抖动Bo
+     * @return 视频去抖动集合
+     */
+    List<VideoStableVo> selectList(VideoStableBo videoStableBo);
+
+    /**
+     * 分页查询视频去抖动列表
+     *
+     * @param videoStableBo 视频去抖动Bo
+     * @return 分页视频去抖动集合
+     */
+    PageResult<VideoStableVo> selectPage(VideoStableBo videoStableBo);
+
+    /**
+     * 新增视频去抖动
+     *
+     * @param videoStableBo 视频去抖动Bo
+     * @return 结果:true 操作成功,false 操作失败
+     */
+    boolean insert(VideoStableBo videoStableBo);
+
+    /**
+     * 修改视频去抖动
+     *
+     * @param videoStableBo 视频去抖动Bo
+     * @return 结果:true 更新成功,false 更新失败
+     */
+    boolean update(VideoStableBo videoStableBo);
+
+    /**
+     * 批量删除视频去抖动
+     *
+     * @param ids 需要删除的视频去抖动主键集合
+     * @return 结果:true 删除成功,false 删除失败
+     */
+    boolean deleteByIds(Long[] ids);
+
+}

+ 142 - 0
taais-modules/taais-biz/src/main/java/com/taais/biz/service/impl/VideoStableServiceImpl.java

@@ -0,0 +1,142 @@
+package com.taais.biz.service.impl;
+
+import java.util.Arrays;
+import java.util.List;
+
+import cn.hutool.core.util.ObjectUtil;
+import com.mybatisflex.core.paginate.Page;
+import com.mybatisflex.core.query.QueryWrapper;
+import com.taais.common.core.utils.MapstructUtils;
+import com.taais.common.orm.core.page.PageQuery;
+import com.taais.common.core.core.page.PageResult;
+import com.taais.common.orm.core.service.impl.BaseServiceImpl;
+import jakarta.annotation.Resource;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import com.taais.biz.mapper.VideoStableMapper;
+import com.taais.biz.domain.VideoStable;
+import com.taais.biz.domain.bo.VideoStableBo;
+import com.taais.biz.domain.vo.VideoStableVo;
+import com.taais.biz.service.IVideoStableService;
+
+import static com.taais.biz.domain.table.VideoStableTableDef.VIDEO_STABLE;
+
+/**
+ * 视频去抖动Service业务层处理
+ *
+ * @author 0
+ * 2024-08-30
+ */
+@Service
+public class VideoStableServiceImpl extends BaseServiceImpl<VideoStableMapper, VideoStable> implements IVideoStableService {
+    @Resource
+    private VideoStableMapper videoStableMapper;
+
+    @Override
+    public QueryWrapper query() {
+        return super.query().from(VIDEO_STABLE);
+    }
+
+    private QueryWrapper buildQueryWrapper(VideoStableBo videoStableBo) {
+        QueryWrapper queryWrapper = super.buildBaseQueryWrapper();
+        queryWrapper.and(VIDEO_STABLE.NAME.like
+        (videoStableBo.getName()));
+        queryWrapper.and(VIDEO_STABLE.STATUS.eq
+        (videoStableBo.getStatus()));
+        queryWrapper.and(VIDEO_STABLE.INPUT_PATH.eq
+        (videoStableBo.getInputPath()));
+        queryWrapper.and(VIDEO_STABLE.OUT_PATH.eq
+        (videoStableBo.getOutPath()));
+        queryWrapper.and(VIDEO_STABLE.START_TIME.eq
+        (videoStableBo.getStartTime()));
+        queryWrapper.and(VIDEO_STABLE.END_TIME.eq
+        (videoStableBo.getEndTime()));
+        queryWrapper.and(VIDEO_STABLE.COST_SECOND.eq
+        (videoStableBo.getCostSecond()));
+        queryWrapper.and(VIDEO_STABLE.LOG.eq
+        (videoStableBo.getLog()));
+        queryWrapper.and(VIDEO_STABLE.REMARKS.eq
+        (videoStableBo.getRemarks()));
+
+        return queryWrapper;
+    }
+
+    /**
+     * 查询视频去抖动
+     *
+     * @param id 视频去抖动主键
+     * @return 视频去抖动
+     */
+    @Override
+    public VideoStableVo selectById(Long id) {
+            return this.getOneAs(query().where(VIDEO_STABLE.ID.eq(id)), VideoStableVo.class);
+
+    }
+
+    /**
+     * 查询视频去抖动列表
+     *
+     * @param videoStableBo 视频去抖动Bo
+     * @return 视频去抖动集合
+     */
+    @Override
+    public List<VideoStableVo> selectList(VideoStableBo videoStableBo) {
+        QueryWrapper queryWrapper = buildQueryWrapper(videoStableBo);
+            return this.listAs(queryWrapper, VideoStableVo.class);
+    }
+
+    /**
+     * 分页查询视频去抖动列表
+     *
+     * @param videoStableBo 视频去抖动Bo
+     * @return 分页视频去抖动集合
+     */
+    @Override
+    public PageResult<VideoStableVo> selectPage(VideoStableBo videoStableBo) {
+        QueryWrapper queryWrapper = buildQueryWrapper(videoStableBo);
+            Page<VideoStableVo> page = this.pageAs(PageQuery.build(), queryWrapper, VideoStableVo.class);
+        return PageResult.build(page);
+    }
+
+    /**
+     * 新增视频去抖动
+     *
+     * @param videoStableBo 视频去抖动Bo
+     * @return 结果:true 操作成功,false 操作失败
+     */
+    @Override
+    public boolean insert(VideoStableBo videoStableBo) {
+    VideoStable videoStable =MapstructUtils.convert(videoStableBo, VideoStable. class);
+
+        return this.save(videoStable);//使用全局配置的雪花算法主键生成器生成ID值
+    }
+
+    /**
+     * 修改视频去抖动
+     *
+     * @param videoStableBo 视频去抖动Bo
+     * @return 结果:true 更新成功,false 更新失败
+     */
+    @Override
+    public boolean update(VideoStableBo videoStableBo) {
+        VideoStable videoStable =MapstructUtils.convert(videoStableBo, VideoStable. class);
+        if (ObjectUtil.isNotNull(videoStable) && ObjectUtil.isNotNull(videoStable.getId())){
+            boolean updated = this.updateById(videoStable);
+                return updated;
+        }
+        return false;
+    }
+
+    /**
+     * 批量删除视频去抖动
+     *
+     * @param ids 需要删除的视频去抖动主键集合
+     * @return 结果:true 删除成功,false 删除失败
+     */
+    @Transactional
+    @Override
+    public boolean deleteByIds(Long[] ids) {
+        return this.removeByIds(Arrays.asList(ids));
+    }
+
+}

+ 7 - 0
taais-modules/taais-biz/src/main/resources/mapper/demo/VideoStableMapper.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+    PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+    "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.taais.demo.mapper.VideoStableMapper">
+
+</mapper>