0
    require
        valid_item: attached item as l_i and then l_i.valid_for_insert or l_i.valid_for_update

为什么我这里有一个未知的标识符和 l_i??!!!

4

1 回答 1

3

尝试

valid_item: attached item as l_i and then (l_i.valid_for_insert or l_i.valid_for_update)

注意你也可以这样做

item_set: attached item as l_i 
valid_item: l_i.valid_for_insert or l_i.valid_for_update

您可以重用l_i先前前提条件中的对象测试局部变量。

于 2018-10-12T17:03:16.327 回答