数据库里面的对象:
image.png
..........
手动copy 后的
image.png
@implementation Goods_BoughtModel
- (BOOL)isInvalid{
NSInteger temp1 = _status;
DDLogDebug(@"temp1 =%ld",temp1);
NSInteger temp2 = self.status;
DDLogDebug(@"temp2 =%ld",temp2);
if (self.status == 0) {
return YES;
}
return NO;
}
***输出**
temp1 = 0, 其实_status =nil
temp2 = 3
网友评论