完成基本service
This commit is contained in:
parent
c08fefe864
commit
50854700cc
|
@ -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> {
|
||||
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue