| 
					
				 | 
			
			
				@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.qw.domain.QwUserVoiceLog; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.qw.domain.QwWorkTask; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.qw.param.QwWorkTaskListParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.fs.qw.vo.QwWorkTaskAllListVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.qw.vo.QwWorkTaskListVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.qw.vo.UserVOs; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.apache.ibatis.annotations.Param; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -132,4 +133,22 @@ public interface QwWorkTaskMapper extends BaseMapper<QwWorkTask>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     List<QwWorkTask> selectQwWorkTaskByExtIdAndQwUserId(QwUserVoiceLog qwUserVoiceLog); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     List<UserVOs> getQwUserList(@Param("userId") Long userId, @Param("qwUserId") String qwUserId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Select({"<script> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "select t.qw_user_id,qw.qw_user_name,ANY_VALUE(cu.nick_name) companyUserName,DATE(t.create_time) createTime,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "\t\tSUM(CASE WHEN t.status = 0 THEN 1 ELSE 0 END) AS status0,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "    SUM(CASE WHEN t.status = 1 THEN 1 ELSE 0 END) AS status1,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "    SUM(CASE WHEN t.status = 2 THEN 1 ELSE 0 END) AS status2,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "    SUM(CASE WHEN t.status = 3 THEN 1 ELSE 0 END) AS status3\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "\t\tfrom qw_work_task t  LEFT JOIN qw_user qw ON qw.id = t.qw_user_id LEFT JOIN company_user cu on cu.user_id=t.company_user_id  where  t.company_id=#{companyId} " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "    <if test=\"companyUserId != null \"> and t.company_user_id = #{companyUserId}</if>\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "    <if test=\"companyUserName != null and companyUserName != ''\"> and cu.nick_name = #{companyUserName}</if>\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "    <if test=\"qwUserName != null and qwUserName != ''\"> and qw.qw_user_name = #{qwUserName}</if>\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "    <if test=\"sTime != null \">  and DATE(t.create_time) >= DATE(#{sTime})</if>\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "    <if test=\"eTime != null \">  and DATE(t.create_time) <= DATE(#{eTime})</if>\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " GROUP BY t.qw_user_id,DATE(t.create_time) "+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</script>"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    List<QwWorkTaskAllListVO> selectQwWorkTaskAllListVO(QwWorkTaskListParam qwWorkTask); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |