|
|
@ -79,27 +79,30 @@ public interface TaskMapper extends BaseMapper<Task> {
|
|
|
|
"GROUP BY userId) as taskUser")
|
|
|
|
"GROUP BY userId) as taskUser")
|
|
|
|
Integer taskUserNum(Integer taskId);
|
|
|
|
Integer taskUserNum(Integer taskId);
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT SUM(t1.playNum) as playNumSum,SUM(t1.commendNum) as commendNumSum,\n" +
|
|
|
|
@Select("SELECT IFNULL(SUM(t1.playNum),0) as playNumSum,IFNULL(SUM(t1.commendNum),0) as commendNumSum,\n" +
|
|
|
|
"SUM(t1.collectionNum) as collectionNumSum,SUM(t1.commentNum) as commentNumSum,\n" +
|
|
|
|
"IFNULL(SUM(t1.collectionNum),0) as collectionNumSum,IFNULL(SUM(t1.commentNum),0) as commentNumSum,\n" +
|
|
|
|
"SUM(t1.reSendNum) as reSendNumSum,SUM(t1.recommendNum) as recommendNumSum,SUM(t1.effectResult) as effectResultSum,t1.userId,\n" +
|
|
|
|
"IFNULL(SUM(t1.reSendNum),0) as reSendNumSum,IFNULL(SUM(t1.recommendNum),0) as recommendNumSum,\n" +
|
|
|
|
|
|
|
|
"IFNULL(SUM(t1.effectResult),0) as effectResultSum,t1.userId,\n" +
|
|
|
|
"t2.title as taskTitle from video as t1 INNER JOIN task as t2 on 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 user as t3 on t1.userId = t3.id\n" +
|
|
|
|
"LEFT JOIN qywxDepartment as t4 on t3.main_department = t4.departmentId " +
|
|
|
|
"LEFT JOIN qywxDepartment as t4 on t3.main_department = t4.departmentId " +
|
|
|
|
"${ew.customSqlSegment}")
|
|
|
|
"${ew.customSqlSegment}")
|
|
|
|
JSONObject taskEffect(@Param("ew") Wrapper<Task> queryWrapper);
|
|
|
|
JSONObject taskEffect(@Param("ew") Wrapper<Task> queryWrapper);
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT SUM(t1.playNum) as playNumSum,SUM(t1.commendNum) as commendNumSum,\n" +
|
|
|
|
@Select("SELECT IFNULL(SUM(t1.playNum),0) as playNumSum,IFNULL(SUM(t1.commendNum),0) as commendNumSum,\n" +
|
|
|
|
"SUM(t1.collectionNum) as collectionNumSum,SUM(t1.commentNum) as commentNumSum,\n" +
|
|
|
|
"IFNULL(SUM(t1.collectionNum),0) as collectionNumSum,IFNULL(SUM(t1.commentNum),0) as commentNumSum,\n" +
|
|
|
|
"SUM(t1.reSendNum) as reSendNumSum,SUM(t1.recommendNum) as recommendNumSum,SUM(t1.effectResult) as effectResultSum,t1.userId,\n" +
|
|
|
|
"IFNULL(SUM(t1.reSendNum),0) as reSendNumSum,IFNULL(SUM(t1.recommendNum),0) as recommendNumSum,\n" +
|
|
|
|
|
|
|
|
"IFNULL(SUM(t1.effectResult),0) 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 = 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 user as t3 on t1.userId = t3.id\n" +
|
|
|
|
"LEFT JOIN qywxDepartment as t4 on t3.main_department = t4.departmentId " +
|
|
|
|
"LEFT JOIN qywxDepartment as t4 on t3.main_department = t4.departmentId " +
|
|
|
|
"${ew.customSqlSegment}")
|
|
|
|
"${ew.customSqlSegment}")
|
|
|
|
List<Map> taskEffectData(@Param("ew") Wrapper<Task> queryWrapper);
|
|
|
|
List<Map> taskEffectData(@Param("ew") Wrapper<Task> queryWrapper);
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT IFNULL(SUM(t1.playNum),0) as playNumSum,SUM(t1.commendNum) as commendNumSum,\n" +
|
|
|
|
@Select("SELECT IFNULL(SUM(t1.playNum),0) as playNumSum,IFNULL(SUM(t1.commendNum),0) as commendNumSum,\n" +
|
|
|
|
"SUM(t1.collectionNum) as collectionNumSum,SUM(t1.commentNum) as commentNumSum,\n" +
|
|
|
|
"IFNULL(SUM(t1.collectionNum),0) as collectionNumSum,IFNULL(SUM(t1.commentNum),0) as commentNumSum,\n" +
|
|
|
|
"SUM(t1.reSendNum) as reSendNumSum,SUM(t1.recommendNum) as recommendNumSum,SUM(t1.effectResult) as effectResultSum,t1.userId,\n" +
|
|
|
|
"IFNULL(SUM(t1.reSendNum),0) as reSendNumSum,IFNULL(SUM(t1.recommendNum),0) as recommendNumSum,\n" +
|
|
|
|
|
|
|
|
"IFNULL(SUM(t1.effectResult),0) 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 = 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 user as t3 on t1.userId = t3.id\n" +
|
|
|
|
"LEFT JOIN qywxDepartment as t4 on t3.main_department = t4.departmentId " +
|
|
|
|
"LEFT JOIN qywxDepartment as t4 on t3.main_department = t4.departmentId " +
|
|
|
|