注释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
*/
@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<Date> 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<Date> getdays = DateUtils.getdays(sdf.parse("2020-04-01"), sdf.parse("2020-05-08"));
// for (Date date:getdays){
// storePromotionDataService.syncCustomerBlackListByDate(date,date);
// }
}

Loading…
Cancel
Save