Explorar o código

修复Move To Wishlist 和 Add To Wishlist时Wishlist的BadgeValue不正确

Pen Li %!s(int64=9) %!d(string=hai) anos
pai
achega
2121afc3dd

BIN=BIN
RedAnt ERP Mobile/RedAnt ERP Mobile.xcworkspace/xcuserdata/macmini1.xcuserdatad/UserInterfaceState.xcuserstate


+ 6 - 1
RedAnt ERP Mobile/common/Functions/offline/OLDataProvider.m

@@ -3556,12 +3556,17 @@
 //    [iSalesDB execSql:sql db:db];
     int count=[iSalesDB get_recordcount:db table:@"wishlist" where:@"1=1"];
     [iSalesDB execSql:@"END TRANSACTION" db:db];
+    
+    int wish_count = [iSalesDB get_recordcount:db table:@"wishlist" where:@"1=1"];
+    [ret setValue:[NSNumber numberWithInteger:wish_count] forKey:@"wish_count"];
     [iSalesDB close_db:db];
     
     appDelegate.wish_count =count;
     
     [appDelegate update_count_mark];
     ret[@"result"]= [NSNumber numberWithInt:2];
+    
+    
     return ret;
 
 }
@@ -6699,7 +6704,7 @@
     
     sqlite3 *db1 = [iSalesDB get_db];
     
-    int wish_count = [iSalesDB get_recordcount:db1 table:@"wishlist" where:nil];
+    int wish_count = [iSalesDB get_recordcount:db1 table:@"wishlist" where:@"1=1"];
 
     [dic setValue:@"Regular Mode" forKey:@"mode"];
 //    [dic setValue:@"160409" forKey:@"min_ver"];