0d99cee58260d29b3fd5b858eafb4c2d2a731ec0
Many2One\350\267\250App\345\256\211\350\243\205.md
| ... | ... | @@ -39,5 +39,18 @@ public class TestLog extends BaseModel { |
| 39 | 39 | "tbar": [] |
| 40 | 40 | } |
| 41 | 41 | ] |
| 42 | +``` |
|
| 43 | + |
|
| 44 | +3.ManyToOne指定任意的显示字段: |
|
| 45 | + |
|
| 46 | +之前的ManyToOne默认只能是 displayForModel字段,现在已经修改成支持任意字段的显示 |
|
| 47 | +示例 |
|
| 48 | + |
|
| 49 | +**指定任意字段:** |
|
| 50 | + |
|
| 51 | +```@ManyToOne(displayName = "2单选异步获取Many2one", cascade = {CascadeType.DEL_SET_NULL},displayFormat ="orgCode")``` |
|
| 52 | + |
|
| 53 | +**指定多个字段格式化输出:** |
|
| 54 | +```@ManyToOne(displayName = "2单选异步获取Many2one", cascade = {CascadeType.DEL_SET_NULL},displayFormat ="${name}-${orgCode}")``` |
|
| 55 | + |
|
| 42 | 56 | |
| 43 | -``` |
|
| ... | ... | \ No newline at end of file |