package yangtz.cs.liu.campus.mapper.schooloffical;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import yangtz.cs.liu.campus.domain.schooloffical.SchoolOfficial;
import yangtz.cs.liu.campus.vo.schoolOfficial.SchoolOfficialVo;

import java.util.List;

/**
 * 公文流转接口
 */
@Mapper
public interface SchoolOfficialMapper extends BaseMapper<SchoolOfficial> {
    //首页，我的任务
   /* public List<SchoolOfficialVo> myTaskList(@Param("userId") Long userId,
                                             @Param("state") String state,
                                             @Param("entity") SchoolOfficial schoolOfficial,
                                             @Param("mkmc") String mkmc);*/
    public List<SchoolOfficialVo> myTaskList(@Param("userId") Long userId,
                                             @Param("state") String state,
                                             @Param("entity") SchoolOfficial schoolOfficial
                                             );

    //List<SchoolOfficialVo> selectListVO(@Param("entity")SchoolOfficial schoolOfficial,@Param("mkmc") String mkmc);
    List<SchoolOfficialVo> selectListVO(@Param("entity")SchoolOfficial schoolOfficial);

    //获取详情
    SchoolOfficialVo getInfo(@Param("id")Long id,
                             @Param("mkmc")String mkmc);
}
