package org.jeecg.modules.basedata.service.impl;

import org.jeecg.modules.basedata.entity.FdContractClass;
import org.jeecg.modules.basedata.mapper.FdContractClassMapper;
import org.jeecg.modules.basedata.service.IFdContractClassService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;



/**
 * @Description: 合同类型
 * @author： jeecg-boot
 * @date：   2019-05-07
 * @version： V1.0
 */
@Service
public class FdContractClassServiceImpl extends ServiceImpl<FdContractClassMapper, FdContractClass> implements IFdContractClassService {

    @Resource
    FdContractClassMapper fdContractClassMapper;

    /***
     * @Title:根据多个合同类型id查询合同类型数据
            * @Description:TODO
            * @param [ids]
            * @return java.util.List<org.jeecg.modules.basedata.entity.FdContractClass>
            * @exception
            * @author 陈创
            * @date 2019/6/19 17:39
            * @updatehistory:
     *   2019/6/19 17:39 新增
            */
    public List<FdContractClass> selectBatchIds(String[] ids){
        //储存合同id
        List<String> conIdList=new ArrayList<>();
        //循环数组转集合
        for(String conid:ids){
            conIdList.add(conid);
        }
        return fdContractClassMapper.selectBatchIds(conIdList);
    }
}
