package com.zhongzheng.modules.activity.service;

import com.zhongzheng.modules.activity.bo.ActivityTaskUserAddBo;
import com.zhongzheng.modules.activity.domain.ActivityTaskTime;
import com.zhongzheng.modules.activity.vo.ActivityTaskTimeVo;
import com.zhongzheng.modules.activity.bo.ActivityTaskTimeQueryBo;
import com.zhongzheng.modules.activity.bo.ActivityTaskTimeAddBo;
import com.zhongzheng.modules.activity.bo.ActivityTaskTimeEditBo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Collection;
import java.util.List;

/**
 * 模拟考试分数给予积分关联Service接口
 *
 * @author change
 * @date 2021-05-20
 */
public interface IActivityTaskTimeService extends IService<ActivityTaskTime> {
	/**
	 * 查询单个
	 * @return
	 */
	ActivityTaskTimeVo queryById(Long taskId);

	/**
	 * 查询列表
	 */
	List<ActivityTaskTimeVo> queryList(ActivityTaskTimeQueryBo bo);

	/**
	 * 根据新增业务对象插入模拟考试分数给予积分关联
	 * @param bo 模拟考试分数给予积分关联新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(ActivityTaskTimeAddBo bo);

	/**
	 * 根据编辑业务对象修改模拟考试分数给予积分关联
	 * @param bo 模拟考试分数给予积分关联编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(ActivityTaskTimeEditBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    void inserTaskTime(ActivityTaskTime toBean);

    ActivityTaskTimeVo queryPractice(ActivityTaskUserAddBo bo);
}
