markGroup.m 714 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // markGroup.m
  3. // jiaPei
  4. //
  5. // Created by apple on 16/1/13.
  6. // Copyright © 2016年 JCZ. All rights reserved.
  7. //
  8. #import "markGroup.h"
  9. @implementation markGroup
  10. -(id)init{
  11. self = [super init];
  12. if (self) {
  13. }
  14. return self;
  15. }
  16. +(NSMutableArray*)markGroupWithFMResultSet:(FMResultSet*)set
  17. {
  18. NSMutableArray* markGroups = [NSMutableArray array];
  19. while ([set next]) {
  20. markGroup *mark = [[markGroup alloc] init];
  21. mark.name = [set stringForColumn:@"MG_NAME"];
  22. mark.parent = [set stringForColumn:@"MG_PARENT"];
  23. mark.ID = [set stringForColumn:@"MG_ID"];
  24. [markGroups addObject:mark];
  25. }
  26. return markGroups;
  27. }
  28. @end