package com.foreverwin.mesnac.anomaly.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.foreverwin.mesnac.anomaly.model.AbnormalBill;
import com.foreverwin.mesnac.anomaly.model.AbnormalBillDispose;
import com.foreverwin.mesnac.anomaly.model.AbnormalCause;
import com.foreverwin.modular.core.util.FrontPage;

import java.util.List;

/**
 * <p>
 * 异常原因 服务类
 * </p>
 *
 * @author robert
 * @since 2021-07-01
 */
public interface AbnormalCauseService extends IService<AbnormalCause> {

    /**
     *  分页查询
     * @param frontPage
     * @return
     */
    IPage<AbnormalCause> selectPage(FrontPage<AbnormalCause> frontPage, AbnormalCause abnormalCause);

    List<AbnormalCause> selectList(AbnormalCause abnormalCause);

    void insertByAbnormalBill(AbnormalBill abnormalBill, AbnormalBillDispose abnormalBillDispose, List<String> dutyCauseType);
}