package com.yeejoin.amos.boot.module.common.api.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.common.api.dto.LinkageUnitDto;
import com.yeejoin.amos.boot.module.common.api.dto.LinkageUnitZhDto;
import com.yeejoin.amos.boot.module.common.api.dto.RequestData;
import org.typroject.tyboot.core.rdbms.annotation.Condition;
import org.typroject.tyboot.core.rdbms.annotation.Operator;

import java.util.List;

/**
* 联动单位接口类
*
* @author system_generator
* @date 2021-07-16
*/
public interface ILinkageUnitService {


    List<LinkageUnitZhDto> listLinkageUnitZhDto(Integer pageNum, Integer pageSize, RequestData par);

    Integer listLinkageUnitZhDtoCount(RequestData par);

    LinkageUnitDto queryOne(Long sequenceNbr);

    /**
     * 联动单位分页查询
     *
     * @param page
     * @param isDelete
     * @param unitName 单位名称
     * @param linkageUnitType 联动单位类型
     * @param emergencyLinkageUnitCode 紧急联动单位类型code
     * @return
     */
    Page<LinkageUnitDto> queryForLinkageUnitPage(Page<LinkageUnitDto> page,
                                                        @Condition(Operator.eq) Boolean isDelete,
                                                        @Condition(Operator.like) String unitName,
                                                        @Condition(Operator.eq) String linkageUnitType,
                                                        @Condition(Operator.eq) String emergencyLinkageUnitCode);

}
