|
|
|
@ -67,11 +67,18 @@ public interface TaskMapper extends BaseMapper<Task> {
|
|
|
|
|
"left join taskDepartment as t2 on t1.main_department = t2.departmentId\n" +
|
|
|
|
|
"WHERE t2.taskId = #{taskId}")
|
|
|
|
|
Integer taskUserSum(Integer taskId);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 统计任务上传视频人数
|
|
|
|
|
* @param taskId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Select("SELECT count(userId) as taskUserNum from (SELECT userId from task as t1\n" +
|
|
|
|
|
" INNER JOIN video as t2 on t1.id = t2.taskId\n" +
|
|
|
|
|
"WHERE t1.id = #{taskId}\n" +
|
|
|
|
|
"GROUP BY userId) as taskUser")
|
|
|
|
|
Integer taskUserNum(Integer taskId);
|
|
|
|
|
|
|
|
|
|
@Select("SELECT SUM(t1.playNum) as playNumSum,SUM(t1.commendNum) as commendNumSum,\n" +
|
|
|
|
|
"SUM(t1.collectionNum) as collectionNumSum,SUM(t1.commentNum) as commentNumSum,\n" +
|
|
|
|
|
"SUM(t1.reSendNum) as reSendNumSum,SUM(t1.recommendNum) as recommendNumSum,SUM(t1.effectResult) as effectResultSum,t1.userId,\n" +
|
|
|
|
|