package com.yeejoin.amos.boot.module.app.biz.service.impl;

import com.yeejoin.amos.boot.module.app.api.entity.BaseUnitLicence;
import com.yeejoin.amos.boot.module.app.api.mapper.BaseUnitLicenceMapper;

import com.yeejoin.amos.boot.module.app.api.dto.BaseUnitLicenceDto;
import com.yeejoin.amos.boot.module.app.api.service.IBaseUnitLicenceService;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;

/**
 * 单位注册许可信息表服务实现类
 *
 * @author system_generator
 * @date 2022-08-09
 */
@Service
public class BaseUnitLicenceServiceImpl extends BaseService<BaseUnitLicenceDto,BaseUnitLicence, BaseUnitLicenceMapper> implements IBaseUnitLicenceService {
    /**
     * 分页查询
     */
    public Page<BaseUnitLicenceDto> queryForBaseUnitLicencePage(Page<BaseUnitLicenceDto> page)   {
        return this.queryForPage(page, null, false);
    }

    /**
     * 列表查询
     * @param unitCode 单位编号
     */
    public List<BaseUnitLicenceDto> queryForBaseUnitLicenceList(String unitCode)   {
        return this.queryForList("" , false, unitCode);
    }
}