qixiaoning
2025-09-19 724c05408de0cd74cc852e15cd2c8a0fce0be0c9
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
}