Search in sources :

Example 1 with BizTags

use of com.zyd.blog.persistence.beans.BizTags in project OneBlog by zhangyd-c.

the class BizTagsServiceImpl method getByPrimaryKey.

@Override
public Tags getByPrimaryKey(Long primaryKey) {
    Assert.notNull(primaryKey, "PrimaryKey不可为空!");
    BizTags entity = bizTagsMapper.selectByPrimaryKey(primaryKey);
    return null == entity ? null : new Tags(entity);
}
Also used : BizTags(com.zyd.blog.persistence.beans.BizTags) BizArticleTags(com.zyd.blog.persistence.beans.BizArticleTags) BizTags(com.zyd.blog.persistence.beans.BizTags) Tags(com.zyd.blog.business.entity.Tags)

Example 2 with BizTags

use of com.zyd.blog.persistence.beans.BizTags in project OneBlog by zhangyd-c.

the class BizTagsServiceImpl method findPageBreakByCondition.

@Override
public PageInfo<Tags> findPageBreakByCondition(TagsConditionVO vo) {
    PageHelper.startPage(vo.getPageNumber(), vo.getPageSize());
    List<BizTags> list = bizTagsMapper.findPageBreakByCondition(vo);
    List<Tags> boList = getTags(list);
    if (boList == null)
        return null;
    PageInfo bean = new PageInfo<BizTags>(list);
    bean.setList(boList);
    return bean;
}
Also used : PageInfo(com.github.pagehelper.PageInfo) BizTags(com.zyd.blog.persistence.beans.BizTags) BizArticleTags(com.zyd.blog.persistence.beans.BizArticleTags) BizTags(com.zyd.blog.persistence.beans.BizTags) Tags(com.zyd.blog.business.entity.Tags)

Example 3 with BizTags

use of com.zyd.blog.persistence.beans.BizTags in project OneBlog by zhangyd-c.

the class BizTagsServiceImpl method getByName.

@Override
public Tags getByName(String name) {
    if (StringUtils.isEmpty(name)) {
        return null;
    }
    BizTags tags = new BizTags();
    tags.setName(name);
    tags = bizTagsMapper.selectOne(tags);
    return null == tags ? null : new Tags(tags);
}
Also used : BizTags(com.zyd.blog.persistence.beans.BizTags) BizArticleTags(com.zyd.blog.persistence.beans.BizArticleTags) BizTags(com.zyd.blog.persistence.beans.BizTags) Tags(com.zyd.blog.business.entity.Tags)

Aggregations

Tags (com.zyd.blog.business.entity.Tags)3 BizArticleTags (com.zyd.blog.persistence.beans.BizArticleTags)3 BizTags (com.zyd.blog.persistence.beans.BizTags)3 PageInfo (com.github.pagehelper.PageInfo)1