package com.chinaweal.aiccs.aiccs.seriousillegalPerson.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chinaweal.aiccs.aiccs.seriousillegalPerson.entity.XrSeriousIllegalPersonList;
import com.chinaweal.aiccs.aiccs.seriousillegalPerson.entity.dto.SeriousIllegalListQueryDto;
import com.chinaweal.aicorg.model.AICUser;
import com.chinaweal.youfool.framework.springboot.base.query.BaseQuery;

/**
 * 严重违法失信自然人名单表 服务类
 *
 * @author zhouxy
 * @since 2025-07-25
 */
public interface IXrSeriousIllegalPersonListService extends IService<XrSeriousIllegalPersonList> {

    /**
     * 判断列入机关，若是所一级，则改为其上级单位，即区县一级
     */
    XrSeriousIllegalPersonList checkDecOrg(XrSeriousIllegalPersonList xrSeriousIllegalPersonList, String orgID, int illegalType);

    /**
     * 分页根据条件查询严重违法失信自然人名单(个案主体办理专用)
     */
    IPage<XrSeriousIllegalPersonList> listXrSeriousIllegalPersonList(BaseQuery<SeriousIllegalListQueryDto> query, AICUser user);

}
