package com.fos.modules.tableOrder.service;

import com.fos.core.base.CurdService;
import com.fos.modules.tableOrder.bean.TableOrderBean;
import com.fos.modules.tableOrder.bean.TableOrderCodeBean;
import com.fos.modules.tableOrder.dao.TableOrderUserDao;
import com.fos.modules.tableOrder.entity.TableOrderUserEntity;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Tony on 7/30/2016.
 */
@Service
public class TableOrderUserService extends CurdService<TableOrderUserDao,TableOrderUserEntity> {

    //获取该桌号的全部用户信息
    public List<TableOrderUserEntity> getTableOrderUser(TableOrderBean bean){
        return dao.getTableOrderUser(bean);
    }

    public TableOrderUserEntity getTableOrderUserByCode(TableOrderCodeBean bean){
        return dao.getTableOrderUserByCode(bean);
    }
}
