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);
}
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;
}
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);
}
Aggregations