Newer
Older
huludao / src / main / java / com / newfiber / api / pc / dao / EventsManage / ComplaintTaskMapper.java
package com.newfiber.api.pc.dao.EventsManage;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.newfiber.api.pc.model.EventsManage.ComplaintTask;
import com.newfiber.api.pc.model.EventsManage.ComplaintTaskDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * complaintTask model层
 * 
 * @author luzhan
 */
@Repository
public interface ComplaintTaskMapper extends BaseMapper<ComplaintTask> {

    /**
     * 查询微信端投诉的列表
     * @param userName
     * @param type
     * @param state
     * @return
     */
    List<ComplaintTaskDto> wxTaskList(@Param("userName") String userName, @Param("type") Integer type, @Param("state") Integer state);


    /**
     * 查询微信端投诉的列表
     * @param userName
     * @param state
     * @return
     */
    List<ComplaintTaskDto> pcTaskList(@Param("userName") String userName, @Param("complaintType") Integer complaintType, @Param("problemType") Integer problemType,
                                      @Param("level") Integer level, @Param("isVisit") Integer isVisit, @Param("state") Integer state);

    /**
     * 查询微信列表详情
     * @param userName
     * @param taskId
     * @return
     */
    ComplaintTaskDto wxTaskDetail(@Param("userName") String userName, @Param("taskId")Long taskId);

    /**
     * 获取事件的数量统计
     * @param dayBegin
     * @param dayEnd
     * @return
     */
    Map<String, Object> getData(@Param("dayBegin") Date dayBegin, @Param("dayEnd")Date dayEnd);

    /**
     * 代办事件
     * @param userName
     * @param complaintType
     * @param problemType
     * @param level
     * @param isVisit
     * @param state
     * @return
     */
    List<ComplaintTaskDto> unCompleteList(@Param("userName") String userName, @Param("complaintType") Integer complaintType, @Param("problemType") Integer problemType,
                                      @Param("level") Integer level, @Param("isVisit") Integer isVisit, @Param("state") Integer state);

}