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.SchoolOfficialFlow;
import yangtz.cs.liu.campus.vo.schoolOfficial.SchoolOfficialFlowVo;

import java.util.List;

@Mapper
public interface SchoolOfficialFlowMapper extends BaseMapper<SchoolOfficialFlow> {

    //根据主表id选择状态为已完成的子表信息
    List<SchoolOfficialFlowVo> getDoneList(@Param("officialId") Long officialId, @Param("state") String state);

    //获取用户待完成任务数
    int getTodoTotal(@Param("userId") Long userId,
                     @Param("state") String state);

}
