package com.jeeplus.finance.workClientInfo.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jeeplus.finance.projectRecords.service.dto.CwProjectClientContactDTO;
import com.jeeplus.finance.workClientInfo.domain.CwWorkClientContact;
import com.jeeplus.finance.workClientInfo.mapper.CwWorkClientContactMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
public class CwWorkClientContactService extends ServiceImpl<CwWorkClientContactMapper, CwWorkClientContact> {
    @Resource
    private CwWorkClientContactMapper cwWorkClientContactMapper;

    /**
     * 根据项目联系人信息查询是否在客户联系人中的数据
     * @param info
     * @return
     */
    public CwWorkClientContact getInfoByData(CwProjectClientContactDTO info){
        return cwWorkClientContactMapper.getInfoByData(info);
    }

    /**
     * 根据id查询详情
     * @param id
     * @return
     */
    public CwWorkClientContact getInfoById(String id){
        return cwWorkClientContactMapper.getInfoById(id);
    }

}
