-(void)getRecordByStartTime:(NSString*)num
{
NSManagedObjectContext *objectContext = [[YoungAppDelegate appDelegate] managedObjectContext];
NSFetchRequest * request = [[NSFetchRequest alloc]init];
NSEntityDescription * entity = [NSEntityDescription entityForName:@"Motion"inManagedObjectContext:objectContext];
[request setEntity:entity];
NSSortDescriptor * sortDescriptor = [[NSSortDescriptor alloc]initWithKey:@"ms_date"ascending:NO];
//此处是利用 contains进行一个模糊匹配的方式进行匹配。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
NSPredicate * predicate = [NSPredicate predicateWithFormat:@"ms_date CONTAINS[cd] %@ * ",num];
[request setPredicate:predicate];
//此处是进行一个 精确 匹配的方式进行匹配。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
NSPredicate * predicate = [NSPredicatepredicateWithFormat:@"ms_date = %@ AND ms_steps = %d "argumentArray:[NSArrayarrayWithObjects:[NSStringstringWithFormat:date],[NSNumbernumberWithLongLong:num],nil]];
//此处是进行一个 参数范围 匹配的方式进行匹配。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
NSPredicate * predicate = [NSPredicate predicateWithFormat:@"ms_steps > %d",num];
NSArray * sortDescriptors = [[NSArray alloc]initWithObjects:sortDescriptor, nil];
[request setSortDescriptors:sortDescriptors];
NSError * error = nil;
NSMutableArray * mutableFetchResquest = [[objectContext executeFetchRequest:requesterror:&error]mutableCopy];
}