From 6bd27f5407f95fda8fa7bfa1bbd8ea11443c8140 Mon Sep 17 00:00:00 2001 From: kevin jiang Date: Tue, 19 May 2020 11:09:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8Atest=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/init/laheiinit.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/test/java/init/laheiinit.java b/src/test/java/init/laheiinit.java index c2bdcf1..ffb71f8 100644 --- a/src/test/java/init/laheiinit.java +++ b/src/test/java/init/laheiinit.java @@ -16,21 +16,21 @@ import org.springframework.test.context.junit4.SpringRunner; * 组织数据初始化 * Created by hc on 2020/4/21 */ -@RunWith(SpringRunner.class) -@SpringBootTest(classes = IcApplication.class) +//@RunWith(SpringRunner.class) +//@SpringBootTest(classes = IcApplication.class) public class laheiinit { @Autowired private StorePromotionDataService storePromotionDataService; - @Test +// @Test public void initData() throws Exception { - SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); - List getdays = DateUtils.getdays(sdf.parse("2020-04-01"), sdf.parse("2020-05-08")); - for (Date date:getdays){ - storePromotionDataService.syncCustomerBlackListByDate(date,date); - } +// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); +// List getdays = DateUtils.getdays(sdf.parse("2020-04-01"), sdf.parse("2020-05-08")); +// for (Date date:getdays){ +// storePromotionDataService.syncCustomerBlackListByDate(date,date); +// } }