package com.mortals.xhx.module.matter.service;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.framework.model.PageInfo;
import com.mortals.framework.model.Result;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.matter.model.EventImplementationEntity;
import com.mortals.xhx.module.matter.dao.EventImplementationDao;

import java.util.List;

/**
* EventImplementationService
*
* 综窗事项列表 service接口
*
* @author zxfei
* @date 2024-06-20
*/
public interface EventImplementationService extends ICRUDService<EventImplementationEntity,Long>{

    EventImplementationDao getDao();

    /**
     * 同步综窗事项到本地库
     */
    void syncEventImplementation();

    /**
     * 新增或者修改
     */
    void saveOrUpdate(List<EventImplementationEntity> list);

    /**
     * 获取差集
     * @param params
     * @param pageInfo
     * @param context
     * @return
     * @throws AppException
     */
    Result<EventImplementationEntity> findSubList(EventImplementationEntity params, PageInfo pageInfo, Context context) throws AppException;

    /**
     * 配置可申请事项
     * @param entity
     * @return
     */
    int addToApplyMatter(EventImplementationEntity entity,Context context);
}