package com.yihu.figure.service.health;

import com.yihu.figure.dao.health.HealthEduArticleDao;
import com.yihu.figure.model.health.HealthEduArticle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.transaction.Transactional;
import java.util.List;

/**
 * Created by chenweida on 2017/3/15.
 */

@Component
public class HealthEduArticleService {
    @Autowired
    private HealthEduArticleDao healthEduArticleDao;

    public List<HealthEduArticle> findByKeyword(String keyword) {
        return healthEduArticleDao.findByKeyword("%"+keyword+"%");
    }
}
