package com.chinaweal.aiccs.aiccs.market.service;

import com.chinaweal.aiccs.aiccs.market.entity.TSSueInspect;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.chinaweal.youfool.framework.springboot.base.query.BaseQuery;
import com.chinaweal.youfool.framework.springboot.mybatis.plus.BaseService;

import java.util.List;

/**
 * <p>
 * 应诉检查表  服务类
 * </p>
 *
 * @author chinaweal
 * @since 2021-10-13
 */
public interface ITSSueInspectService extends BaseService<TSSueInspect> {


    /**
     * 新增应诉检查表 
     */
    TSSueInspect saveTSSueInspect(TSSueInspect tssueinspect);

    /**
     * 修改应诉检查表 
     */
    void updateTSSueInspect(TSSueInspect tssueinspect);


    /**
     * 列异回退接口
     * @param id 检查id
     * @param opinion 回退意见
     * @return
     */
    boolean backCheck(String id, String opinion);

    /**
     * 分页查询应诉检查表 
     */
    IPage<TSSueInspect> listTSSueInspect(BaseQuery<TSSueInspect> query);

    List<TSSueInspect> getListByPripid(String pripid);
}
