完成基本service

This commit is contained in:
shuzheng 2016-11-14 21:41:36 +08:00
parent c08fefe864
commit 50854700cc
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,11 @@
package com.zheng.cms.service;
import com.zheng.cms.dao.mapper.CmsCommentMapper;
/**
* 评论service接口
* Created by shuzheng on 2016/11/14.
*/
public interface CmsCommentService extends BaseService<CmsCommentMapper> {
}

View File

@ -0,0 +1,29 @@
package com.zheng.cms.service.impl;
import com.zheng.cms.dao.mapper.CmsCommentMapper;
import com.zheng.cms.service.CmsCommentService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* 评论service实现
* Created by shuzheng on 2016/11/14.
*/
@Service
@Transactional
public class CmsCommentServiceImpl implements CmsCommentService {
private static Logger _log = LoggerFactory.getLogger(CmsCommentServiceImpl.class);
@Autowired
private CmsCommentMapper cmsCommentMapper;
@Override
public CmsCommentMapper getMapper() {
return cmsCommentMapper;
}
}