我在这里试图查找def callbackTo2(*args):
screen_manager.current = 'main_screen'
class ScreenOne(Screen):
def __init__(self,*args):
super(ScreenOne,self).__init__(name='ScreenOne')
self.timer = None
def on_enter(self,*args):
print('on_enter ScreenOne:')
# start the timer for 30 seconds
self.timer = Clock.schedule_once(callbackTo2,30)
def on_leave(self,*args):
# cancel the timer
self.timer.cancel()
self.timer = None
def on_touch_down(self,touch):
if self.timer is not None:
self.timer.cancel()
# reset the timer
self.timer = Clock.schedule_once(callbackTo2,30)
return super(ScreenOne,self).on_touch_down(touch)
和campStartDate
之间的日期,但是我无法设置静态日期,我只是想获取campcampDate和camEndDate之间的日期
我已经尝试过了,但是我不知道如何以正确的方式获取数据:
campEndDate
CrudRepository类:
public class Bulk_repository {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
@Column(name = "id")
private long id;
@Column(name = "camp_start_date")
private Date campStartDate;
@Column(name = "camp_end_date")
private Date campEndDate;
}
应用程序:
public interface Bulk_repositoryRepository extends CrudRepository<Bulk_repository,Long> {
List<Bulk_repository>findAllByStatusAndCampTypeAndCampStartDateLessThanEqualAndCampEndDateGreaterThanEqual(int status,int campType,Date campStartDate,Date campEndDate);
Bulk_repository findById(long id);
}