增加补推逻辑
parent
d258b20740
commit
b41a521f10
@ -0,0 +1,31 @@
|
||||
package com.yuyou.openapi.openapi;
|
||||
|
||||
import com.yuyou.openapi.openapi.dao.ABMessageRepository;
|
||||
import com.yuyou.openapi.openapi.model.dataobject.ABMessageDO;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.junit.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Slf4j
|
||||
public class ABTest extends OpenapiApplicationTest{
|
||||
|
||||
@Autowired
|
||||
private ABMessageRepository abMessageRepository;
|
||||
|
||||
@Test
|
||||
public void testQuery() throws ParseException {
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
Date startDate = simpleDateFormat.parse("2020-09-08 13:37:46");
|
||||
Date endDate = simpleDateFormat.parse("2020-09-08 13:47:26");
|
||||
|
||||
List<ABMessageDO> allByPushTimeAndSendStatus = abMessageRepository.findAllByPushTimeAndSendStatus(startDate, endDate, 0);
|
||||
|
||||
System.out.println(allByPushTimeAndSendStatus.size());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue