123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import com.warewms.WarewmsApplication;
- import com.warewms.common.core.controller.BaseController;
- import com.warewms.common.core.domain.entity.SysDictData;
- import com.warewms.common.core.domain.entity.SysDictType;
- import com.warewms.common.core.domain.entity.SysUser;
- import com.warewms.common.utils.poi.ExcelUtil;
- import com.warewms.system.service.ISysDictDataService;
- import com.warewms.system.service.ISysDictTypeService;
- import com.warewms.system.service.ISysNoticeService;
- import com.warewms.system.service.ISysUserService;
- import lombok.extern.slf4j.Slf4j;
- import org.junit.runner.RunWith;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.junit.Test;
- import org.junit.runner.RunWith;
- import org.springframework.boot.test.context.SpringBootTest;
- import org.springframework.test.context.junit4.SpringRunner;
- import javax.servlet.http.HttpServletResponse;
- import java.util.List;
- @RunWith(SpringRunner.class)
- @SpringBootTest(classes = WarewmsApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
- @Slf4j
- public class TestData extends BaseController<SysDictType> {
- @Autowired
- private ISysUserService userService;
- @Autowired
- private ISysDictDataService dictDataService;
- @Autowired
- private ISysDictTypeService dictTypeService;
- @Test
- public void export()
- {
- List<SysDictType> list = dictTypeService.selectDictTypeList(new SysDictType());
- log.info("输出结果{}",list);
- }
- }
|