package com.bonus.system.evection.service;

import com.alibaba.fastjson2.JSONArray;
import com.bonus.common.core.web.domain.AjaxResult;
import com.bonus.system.dept.entity.EightRoleBean;
import com.bonus.system.dept.entity.EightRoleVo;
import com.bonus.system.dept.entity.ProDeptRoleBean;
import com.bonus.system.dept.entity.ProDeptRoleDo;
import com.bonus.system.evection.entity.EvectionBean;
import com.bonus.system.leaveReporting.entity.LeaveReportingBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 出差报备-角色业务层
 * @author lsun
 */
public interface EvectionService {

    /**
     * 获取出差报备
     * @param bean 参数
     * @return list bean
     */
    List<EvectionBean> getEvectionList(EvectionBean bean);

    /**
     * 新增出差报备
     * @param o
     * @return
     */
    int insertEvection(EvectionBean o);

    /**
     * 修改出差报备
     * @param o
     * @return
     */
    int updateEvection(EvectionBean o);

    /**
     * 删除出差报备
     * @param id
     * @return
     */
    int deleteEvectionById(String id);

    /**
     * 查询出差报备
     * @param id
     * @return
     */
    EvectionBean selectEvectionById(String id);

    /**
     *
     * @param id
     * @return
     */
    EvectionBean getPostName(Long id);

    AjaxResult getUserList(Long id);

    /**
     * 判断出差报备数据是否被核对
     * @param id
     * @return Integer
     * @author cwchen
     * @date 2025/2/12 15:12
     */
    Integer isCheck(@Param("id") String id,@Param("type") int type);
}
