qixiaoning
2025-09-11 397468ddc1191bf0ce9339e544ff345d1d4e6786
camera-common/models/task.go
@@ -65,3 +65,13 @@
   }
   return
}
// 根据cid查询视频
func GetTaskTotal(cid string) (total int, err error) {
   sql := "select count(1) as total from mal_task_video_link where video_id='" + cid + "'"
   err = db.Raw(sql).Count(&total).Error
   if err != nil {
      return 0, err
   }
   return total, nil
}