package com.yeejoin.amos.boot.module.ymt.biz.service.impl;

import com.yeejoin.amos.boot.module.ymt.api.dto.UseUnitDto;
import com.yeejoin.amos.boot.module.ymt.api.entity.UseUnit;
import com.yeejoin.amos.boot.module.ymt.api.mapper.UseUnitMapper;
import com.yeejoin.amos.boot.module.ymt.api.service.IUseUnitService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import org.typroject.tyboot.core.rdbms.service.BaseService;

import java.util.Arrays;
import java.util.List;

/**
*  服务实现类return null;
*
* @author tb
* @date 2021-06-01
*/
@Service
public class UseUnitServiceImpl extends BaseService<UseUnitDto, UseUnit, UseUnitMapper> implements IUseUnitService {

    @Override
    public List<UseUnitDto> selectExportData(String exportId) {
        List<String> ids = null;
        if(StringUtils.isNotEmpty(exportId)) {
            String[] idStr = exportId.split(",");
            ids = Arrays.asList(idStr);
        }
        return baseMapper.selectExportData(ids);
    }
}
