|
|
@@ -10412,7 +10412,7 @@
|
|
|
//
|
|
|
// }
|
|
|
__block long val_count = 0;
|
|
|
- NSString *sql = @"select name,type,order_by from price";
|
|
|
+ NSString *sql = @"select name,type,order_by from price order by order_by";
|
|
|
[iSalesDB jk_query:sql completion:^(sqlite3_stmt *stmt, NSMutableDictionary *container, long *count) {
|
|
|
|
|
|
NSString *name = [self textAtColumn:0 statement:stmt];
|
|
|
@@ -10427,7 +10427,8 @@
|
|
|
@"check" : order_by == 0 ? @(1) : @(0)
|
|
|
};
|
|
|
|
|
|
- [cadedate setObject:price_dic forKey:[NSString stringWithFormat:@"val_%d",order_by]];
|
|
|
+
|
|
|
+ [cadedate setObject:price_dic forKey:[NSString stringWithFormat:@"val_%ld",val_count]];
|
|
|
|
|
|
val_count = ++(*count);
|
|
|
|