package com.huiju.estateagents.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huiju.estateagents.base.ResponseBean;
import com.huiju.estateagents.entity.TaPerson;
import com.huiju.estateagents.entity.TaShareChildRecord;
import com.huiju.estateagents.excel.ShareChildRecordExport;

import java.util.List;

/**
 * <p>
 *   服务类
 * </p>
 *
 * @author jobob
 * @since 2019-10-18
 */
public interface ITaShareChildRecordService extends IService<TaShareChildRecord> {
    IPage<TaShareChildRecord> getList(Integer pageNum, Integer pageSize, Integer groupActivityId, Integer status, Integer recordId, Integer orgId);
    ResponseBean validateRule(TaShareChildRecord taShareChildRecord);
    Integer getShareRecord(Integer recordId, Integer status);
    List<ShareChildRecordExport> getShareRecordExportList(Integer pageCode, Integer pageSize, Integer recordId, Integer status, Integer groupActivityId);
	void updateActivityProcessToEnd();

	/**
	 * 根据拼团活动id更新参团者拼团失败
	 * @param groupActivityId
	 */
	void updateActivityProcessToEndByGroupActivityId(Integer groupActivityId);

	/**
	 * 微信端成为团员
	 *
	 * @param taShareChildRecord
	 * @param orgId
	 * @param person
	 * @return
	 */
	ResponseBean addChildRecord(TaShareChildRecord taShareChildRecord, Integer orgId, TaPerson person);
}
