@ -102,6 +102,14 @@ public interface TaskMapper extends BaseMapper<Task> {
"${ew.customSqlSegment}" )
"${ew.customSqlSegment}" )
List < Map > taskEffectData ( @Param ( "ew" ) Wrapper < Task > queryWrapper ) ;
List < Map > taskEffectData ( @Param ( "ew" ) Wrapper < Task > queryWrapper ) ;
@Select ( "SELECT t1.userId\n" +
" 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\n" +
" LEFT JOIN (SELECT t.*,d.name as department from qywxDepartmentUserLink t left join qywxDepartment d on t.departmentId = d.departmentId) as t5 on t3.openid = t5.openid\n" +
" ${ew.customSqlSegment}" )
IPage < Map > taskEffectDataUserIdPage ( IPage page , @Param ( "ew" ) Wrapper < Task > queryWrapper ) ;
// @Select("SELECT IFNULL(SUM(t1.playNum),0) as playNumSum,IFNULL(SUM(t1.commendNum),0) as commendNumSum,\n" +
// @Select("SELECT IFNULL(SUM(t1.playNum),0) as playNumSum,IFNULL(SUM(t1.commendNum),0) as commendNumSum,\n" +
// "IFNULL(SUM(t1.collectionNum),0) as collectionNumSum,IFNULL(SUM(t1.commentNum),0) as commentNumSum,\n" +
// "IFNULL(SUM(t1.collectionNum),0) as collectionNumSum,IFNULL(SUM(t1.commentNum),0) as commentNumSum,\n" +
// "IFNULL(SUM(t1.reSendNum),0) as reSendNumSum,IFNULL(SUM(t1.recommendNum),0) as recommendNumSum,\n" +
// "IFNULL(SUM(t1.reSendNum),0) as reSendNumSum,IFNULL(SUM(t1.recommendNum),0) as recommendNumSum,\n" +
@ -110,7 +118,7 @@ public interface TaskMapper extends BaseMapper<Task> {
// "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}")
IPage < Map > taskEffectDataPage ( IPage page , @Param ( "ew" ) Wrapper < Task > queryWrapper ) ;
List < Map > taskEffectDataPage ( @Param ( "ew" ) Wrapper < Task > queryWrapper ) ;
@Select ( "select t1.departmentId,t2.name as departmentName from taskDepartment t1 " +
@Select ( "select t1.departmentId,t2.name as departmentName from taskDepartment t1 " +
"inner join qywxDepartment t2 on t1.departmentId = t2.departmentId and t1.taskId =#{taskId}" )
"inner join qywxDepartment t2 on t1.departmentId = t2.departmentId and t1.taskId =#{taskId}" )