package com.dgtly.sync.service.impl;

import java.util.List;

import com.dgtly.sync.domain.MetaNipponOrgRelation;
import com.dgtly.sync.mapper.MetaNipponOrgRelationMapper;
import com.dgtly.sync.service.IMetaNipponOrgRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dgtly.common.core.text.Convert;

/**
 * 随身邦客户部门Service业务层处理
 * 
 * @author qxp
 * @date 2020-07-15
 */
@Service
public class MetaNipponOrgRelationServiceImpl implements IMetaNipponOrgRelationService 
{
    @Autowired
    private MetaNipponOrgRelationMapper metaNipponOrgRelationMapper;

    /**
     * 查询随身邦客户部门
     * 
     * @param objid 随身邦客户部门ID
     * @return 随身邦客户部门
     */
    @Override
    public MetaNipponOrgRelation selectMetaNipponOrgRelationById(Long objid)
    {
        return metaNipponOrgRelationMapper.selectMetaNipponOrgRelationById(objid);
    }

    /**
     * 查询随身邦客户部门列表
     * 
     * @param metaNipponOrgRelation 随身邦客户部门
     * @return 随身邦客户部门
     */
    @Override
    public List<MetaNipponOrgRelation> selectMetaNipponOrgRelationList(MetaNipponOrgRelation metaNipponOrgRelation)
    {
        return metaNipponOrgRelationMapper.selectMetaNipponOrgRelationList(metaNipponOrgRelation);
    }

    /**
     * 新增随身邦客户部门
     * 
     * @param metaNipponOrgRelation 随身邦客户部门
     * @return 结果
     */
    @Override
    public int insertMetaNipponOrgRelation(MetaNipponOrgRelation metaNipponOrgRelation)
    {
        return metaNipponOrgRelationMapper.insertMetaNipponOrgRelation(metaNipponOrgRelation);
    }

    /**
     * 修改随身邦客户部门
     * 
     * @param metaNipponOrgRelation 随身邦客户部门
     * @return 结果
     */
    @Override
    public int updateMetaNipponOrgRelation(MetaNipponOrgRelation metaNipponOrgRelation)
    {
        return metaNipponOrgRelationMapper.updateMetaNipponOrgRelation(metaNipponOrgRelation);
    }

    /**
     * 删除随身邦客户部门对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteMetaNipponOrgRelationByIds(String ids)
    {
        return metaNipponOrgRelationMapper.deleteMetaNipponOrgRelationByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除随身邦客户部门信息
     * 
     * @param objid 随身邦客户部门ID
     * @return 结果
     */
    @Override
    public int deleteMetaNipponOrgRelationById(Long objid)
    {
        return metaNipponOrgRelationMapper.deleteMetaNipponOrgRelationById(objid);
    }
}
