Skip to content

Commit 587ec36

Browse files
时点软件 冯成林时点软件 冯成林
时点软件 冯成林
authored and
时点软件 冯成林
committed
update
1 parent daf3d3a commit 587ec36

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

CoreModel/CoreModel/Lib/Category/NSObject/NSObject+Insert.m

-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ +(void)insertAction_Real:(id)model resBlock:(void(^)(BOOL res))resBlock {
8484
NSMutableString *fields=[NSMutableString string];
8585
NSMutableString *values=[NSMutableString string];
8686

87-
8887
[self enumNSObjectProperties:^(CoreProperty *property, BOOL *stop) {
8988

9089
BOOL skip=[self skipField:property];
@@ -185,8 +184,6 @@ +(void)insertAction_Real:(id)model resBlock:(void(^)(BOOL res))resBlock {
185184

186185
NSString *sql=[NSString stringWithFormat:@"INSERT INTO %@ (%@) VALUES (%@);",[self modelName],fields_sub,values_sub];
187186

188-
[self deleteModel:model];
189-
190187
BOOL insertRes = [CoreFMDB executeUpdate:sql];
191188

192189
if(CoreModelDeBug) {if(!insertRes) NSLog(@"错误:添加对象失败%@",coreModel);};

0 commit comments

Comments
 (0)