| | |
| | | private static final String SQL_GET_BATCH_VIDEO = "select user_id, src_video_id from rc_video_batch where batch_id=?"; |
| | | |
| | | private static final String SQL_UPDATE_TASK_STATUS_LOAD = "update rc_task_status set status='1', end_time=? where last_value=? and status='0'"; |
| | | private static final String SQL_IGNORE_TASK_STATUS_LOAD = "update rc_task_status set status='1', msg='ignore' where last_value=? and status='0' and task_type='video_load'"; |
| | | |
| | | /** |
| | | * 写入视频相似度第一级临时数据,每个图像包含多个相似视频记录。 |
| | |
| | | this.execute(SQL_UPDATE_TASK_STATUS_LOAD, param); |
| | | } |
| | | |
| | | public void execIgnoreTaskStatus(String batchId){ |
| | | this.execute(SQL_IGNORE_TASK_STATUS_LOAD, new Object[]{Long.parseLong(batchId)}); |
| | | } |
| | | |
| | | /** |
| | | * 返回一个批次用户对应视频记录集合,用于最后更新用户推荐视频数据。 |