|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.zh.project0512.mapper;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
import com.zh.project0512.model.Reference;
|
|
|
|
@ -58,6 +59,14 @@ public interface TaskMapper extends BaseMapper<Task> {
|
|
|
|
|
List<Map> list(String openid,List<Integer> list, List<Integer> tagIdList, List<Integer> brandIdList, @Param("ew") Wrapper<Reference> queryWrapper);
|
|
|
|
|
Task detailById(String openid,int id);
|
|
|
|
|
|
|
|
|
|
@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" +
|
|
|
|
|
"LEFT JOIN user as t3 on t1.userId = t3.id\n" +
|
|
|
|
|
"LEFT JOIN qywxDepartment as t4 on t3.main_department = t4.departmentId " +
|
|
|
|
|
"${ew.customSqlSegment}")
|
|
|
|
|
JSONObject taskEffect(@Param("ew") Wrapper<Task> queryWrapper);
|
|
|
|
|
@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" +
|
|
|
|
|