|
|
|
@ -65,7 +65,7 @@ public interface TaskMapper extends BaseMapper<Task> {
|
|
|
|
|
@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" +
|
|
|
|
|
"t2.title as taskTitle from video as t1 INNER JOIN task as t2 on t2.id = 31 and t2.id = t1.taskId\n" +
|
|
|
|
|
"t2.title as taskTitle from video as t1 INNER JOIN task as t2 on t2.id = t1.taskId\n" +
|
|
|
|
|
"LEFT JOIN user as t3 on t1.userId = t3.id\n" +
|
|
|
|
|
"LEFT JOIN qywxDepartment as t4 on t3.main_department = t4.departmentId " +
|
|
|
|
|
"${ew.customSqlSegment}")
|
|
|
|
@ -74,7 +74,7 @@ public interface TaskMapper extends BaseMapper<Task> {
|
|
|
|
|
@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" +
|
|
|
|
|
"t2.title as taskTitle,t3.name as userName,t4.name as departmentName from video as t1 INNER JOIN task as t2 on t2.id = 31 and t2.id = t1.taskId\n" +
|
|
|
|
|
"t2.title as taskTitle,t3.name as userName,t4.name as departmentName from video as t1 INNER JOIN task as t2 on t2.id = t1.taskId\n" +
|
|
|
|
|
"LEFT JOIN user as t3 on t1.userId = t3.id\n" +
|
|
|
|
|
"LEFT JOIN qywxDepartment as t4 on t3.main_department = t4.departmentId " +
|
|
|
|
|
"${ew.customSqlSegment}")
|
|
|
|
|