Newer
Older
huludao / src / main / java / com / newfiber / api / pc / service / ComplaintTaskService.java
package com.newfiber.api.pc.service;


import com.baomidou.mybatisplus.service.IService;
import com.github.pagehelper.PageInfo;
import com.newfiber.api.pc.model.EventsManage.ComplaintTask;
import com.newfiber.api.pc.model.EventsManage.ComplaintTaskDto;

import java.util.Map;

/**
 * complaintTask 业务层
 *
 * @author luzhan
 * @date 2021-09-26
 */
public interface ComplaintTaskService extends IService<ComplaintTask> {

    /**
    * complaintTask 分页列表
    * @param searchStr
    * @param pageNo
    * @param pageSize
    * @return
    */
    PageInfo<ComplaintTask> listForPage(String searchStr, Integer pageNo, Integer pageSize);

    /**
     * 微信公众号提交投诉
     * @param data
     * @return
     */
    boolean submit(ComplaintTask data);

    /**
     * app列表
     * @param userName
     * @param type
     * @param state
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageInfo<ComplaintTaskDto> appList(String userName,Integer type,Integer state, Integer pageNo, Integer pageSize);

    /**
     * app详情
     * @param userName
     * @param taskId
     * @return
     */
    ComplaintTaskDto appDetail(String userName,Long taskId,String isApp);

    /**
     * pc列表
     * @param userName
     * @param state
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageInfo<ComplaintTaskDto> pcList(String userName, Integer complaintType, Integer problemType, Integer level, Integer isVisit, Integer state, Integer pageNo, Integer pageSize);

    /**
     * 代办事件
     * @param userName
     * @param complaintType
     * @param problemType
     * @param level
     * @param isVisit
     * @param state
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageInfo<ComplaintTaskDto> unCompleteList(String userName, Integer complaintType, Integer problemType, Integer level, Integer isVisit, Integer state, Integer pageNo, Integer pageSize);
    /**
     * pc详情
     * @param userName
     * @param taskId
     * @return
     */
    ComplaintTaskDto pcDetail(String userName,Long taskId);

    /***
     * 统计事件的数量
     * @param userNo
     * @return
     */
    Map<String, Object> getData(String userNo);
}