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.AbnormalDuty;
import com.foreverwin.modular.core.util.FrontPage;

import java.util.List;

/**
 * <p>
 * 责任分类 服务类
 * </p>
 *
 * @author robert
 * @since 2021-07-01
 */
public interface AbnormalDutyService extends IService<AbnormalDuty> {

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

    List<AbnormalDuty> selectList(AbnormalDuty abnormalDuty);

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