1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- package com.iamberry.rst.service.cm;
- import com.iamberry.rst.core.cm.CmRelation;
- import com.iamberry.rst.faces.cm.CmRelationService;
- import com.iamberry.rst.service.cm.mapper.CmRelationMapper;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Service;
- import java.util.List;
- /**
- * 售后处理接口
- * @author
- * @Date 2018-12-28
- */
- @Service
- public class CmRelationServiceImpl implements CmRelationService {
- @Autowired
- private CmRelationMapper cmRelationMapper;
- /**
- * 获取集合
- * @param cmRelation
- * @return List
- */
- @Override
- public List<CmRelation> getCmRelationList(CmRelation cmRelation){
- return cmRelationMapper.getCmRelationList(cmRelation);
- }
- /**
- * 查询单条数据
- * @param id
- * @return cmRelation
- */
- @Override
- public CmRelation getCmRelationById(Integer id){
- return cmRelationMapper.getCmRelationById(id);
- }
- /**
- * 增加数据
- * @param cmRelation
- * @return Integer
- */
- @Override
- public Integer save(CmRelation cmRelation){
- return cmRelationMapper.save(cmRelation);
- }
- /**
- * 修改数据
- * @param cmRelation
- * @return Integer
- */
- @Override
- public Integer update(CmRelation cmRelation){
- return cmRelationMapper.update(cmRelation);
- }
- /**
- * 删除数据
- * @param id
- * @return Integer
- */
- @Override
- public Integer delete(Integer id){
- return cmRelationMapper.delete(id);
- }
- }
|