注释test类

dev_0531
kevin jiang 6 years ago
parent b1e03b95d4
commit 6bd27f5407

@ -16,21 +16,21 @@ import org.springframework.test.context.junit4.SpringRunner;
* *
* Created by hc on 2020/4/21 * Created by hc on 2020/4/21
*/ */
@RunWith(SpringRunner.class) //@RunWith(SpringRunner.class)
@SpringBootTest(classes = IcApplication.class) //@SpringBootTest(classes = IcApplication.class)
public class laheiinit { public class laheiinit {
@Autowired @Autowired
private StorePromotionDataService storePromotionDataService; private StorePromotionDataService storePromotionDataService;
@Test // @Test
public void initData() throws Exception { public void initData() throws Exception {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); // SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
List<Date> getdays = DateUtils.getdays(sdf.parse("2020-04-01"), sdf.parse("2020-05-08")); // List<Date> getdays = DateUtils.getdays(sdf.parse("2020-04-01"), sdf.parse("2020-05-08"));
for (Date date:getdays){ // for (Date date:getdays){
storePromotionDataService.syncCustomerBlackListByDate(date,date); // storePromotionDataService.syncCustomerBlackListByDate(date,date);
} // }
} }

Loading…
Cancel
Save