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

import com.yeejoin.amos.boot.module.command.api.entity.AlertSummary;
import com.yeejoin.amos.boot.module.command.api.mapper.AlertSummaryMapper;
import com.yeejoin.amos.boot.module.command.api.service.IAlertSummaryService;
import com.yeejoin.amos.boot.module.command.api.dto.AlertSummaryDto;
import org.typroject.tyboot.core.rdbms.annotation.Condition;
import org.typroject.tyboot.core.rdbms.annotation.Operator;
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 2021-07-22
 */
@Service
public class AlertSummaryServiceImpl extends BaseService<AlertSummaryDto,AlertSummary,AlertSummaryMapper> implements IAlertSummaryService {
    /**
     * 分页查询
     */
    public Page<AlertSummaryDto> queryForAlertSummaryPage(Page<AlertSummaryDto> page)   {
        return this.queryForPage(page, null, false);
    }

    /**
     * 列表查询 示例
     */
    public List<AlertSummaryDto> queryForAlertSummaryList(@Condition(Operator.eq) Long alertCalledId)   {
        return this.queryForList("" , false,alertCalledId);
    }
}