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

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.tcm.api.dto.BaseUnitLicenceDto;
import com.yeejoin.amos.boot.module.tcm.api.entity.BaseUnitLicence;
import com.yeejoin.amos.boot.module.tcm.api.mapper.BaseUnitLicenceMapper;
import com.yeejoin.amos.boot.module.tcm.api.service.IBaseUnitLicenceService;
import org.springframework.stereotype.Service;
import org.typroject.tyboot.core.rdbms.service.BaseService;

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);
    }
}