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

import com.yeejoin.amos.boot.module.command.api.entity.FrontlineLiaison;
import com.yeejoin.amos.boot.module.command.api.mapper.FrontlineLiaisonMapper;
import com.yeejoin.amos.boot.module.command.api.service.IFrontlineLiaisonService;
import com.yeejoin.amos.boot.module.command.api.dto.FrontlineLiaisonDto;
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 FrontlineLiaisonServiceImpl extends BaseService<FrontlineLiaisonDto,FrontlineLiaison,FrontlineLiaisonMapper> implements IFrontlineLiaisonService {
    /**
     * 分页查询
     */


    public Page<FrontlineLiaisonDto> queryForFrontlineLiaisonPage(Page<FrontlineLiaisonDto> page,@Condition(Operator.eq) Long alertCalledId)   {
        return this.queryForPage(page, null, false,alertCalledId);
    }

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