package com.huigou.topsun.base.orgImport;

import com.huigou.topsun.base.orgImport.domain.TmpOrgPersonData;
import com.huigou.topsun.base.orgImport.repository.TmpOrgPersonDataRepository;
import com.huigou.uasp.tool.dataimport.application.ExcelImportInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("orgPersonExcelImport")
public class OrgPersonExcelImport implements ExcelImportInterface {

    @Autowired
    private TmpOrgPersonDataRepository personDataRepository;

    @Override
    public void executeImport(String batchNumber) {
        List<TmpOrgPersonData> byBatchNumber = personDataRepository.findByBatchNumber(batchNumber);
//        for (TmpOrgData tmpOrgData : byBatchNumber) {
//            String name = tmpOrgData.getName();
//            String[] split = name.split("/");
//
//        }
        System.out.println("========================="+byBatchNumber);
    }

}
