package com.yunyan.web;

import com.yunyan.common.core.domain.entity.SysDept;
import com.yunyan.system.service.IErpUserService;
import com.yunyan.system.service.ISysDeptService;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.util.Assert;

@Slf4j
@ExtendWith(SpringExtension.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
class SysDeptTests {

    @Autowired
    private ISysDeptService sysDeptService;



    @Test
    void importData() {
//        sysDeptService.importData();
    }

    @Test
    void testTemplate() {
        SysDept sysDept = sysDeptService.getfinalExportTypeByAncestors("0,1,126,118,208", null);
        Assertions.assertTrue(null != sysDept);
    }

}
