判断表体的物料的存货类别是否为资产的判断方法 F_VTR_MaterialIdView !=null and len(filter(lambda x:x.CategoryID.ID==40040, F_VTR_MaterialIdView.MaterialBase))>0 注意增加引用属性