|
@@ -1,34 +0,0 @@
|
|
|
-package com.jd.nngkxxdp;
|
|
|
-
|
|
|
-import cn.hutool.core.date.DateUtil;
|
|
|
-import com.example.nngkxxdp.NngkxxdpApplication;
|
|
|
-import com.example.nngkxxdp.dao.HlwInterfaceDao;
|
|
|
-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.annotation.Resource;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-
|
|
|
-@RunWith(SpringRunner.class)
|
|
|
-@SpringBootTest(classes = NngkxxdpApplication.class)
|
|
|
-public class MapperTest {
|
|
|
-
|
|
|
-
|
|
|
- @Resource
|
|
|
- private HlwInterfaceDao hlwInterfaceDao;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- @Test
|
|
|
- public void testHlwInterfaceDao(){
|
|
|
- List<Map<String, Object>> allNoColumn = hlwInterfaceDao.getAllNoColumn(DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss"));
|
|
|
- List<Map<String, Object>> allNoColumn2 = hlwInterfaceDao.getAllNoColumnNew(DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss"));
|
|
|
- System.out.println(allNoColumn.size());
|
|
|
- System.out.println(allNoColumn2.size());
|
|
|
- }
|
|
|
-}
|