根据制定ID查询信息

    public int getMaxScoreByJfEventIdNumber(Integer jfEventId) {
        int numberValue=0;
        String hql = "from JfAuction where jfEvent.id =:jfEventId";
        Finder finder = new Finder(hql);
        finder.setParam("jfEventId", jfEventId);
        List<JfAuction> list=jfAuctionDao.find(finder);
        if(list!=null && list.size()>0){
            numberValue=list.size();
        }
        return numberValue;
    }

posted @ 2015-01-12 14:07  紫发少年  阅读(95)  评论(0编辑  收藏  举报