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

import com.yeejoin.amos.boot.module.jczs.api.dto.UseUnitDto;
import com.yeejoin.amos.boot.module.jczs.api.entity.UseUnit;
import com.yeejoin.amos.boot.module.jczs.api.mapper.UseUnitMapper;
import com.yeejoin.amos.boot.module.jczs.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);
    }
}
