楚雄
楚雄
  • 发布:2024-05-02 12:31
  • 更新:2024-05-02 12:31
  • 阅读:36

shema中两个字段约束不能同时为空怎么写?

分类:uniCloud

shema中两个字段约束:不能同时为空,这样写错在哪儿:

    "fieldRules": [{  
        **"rule": "nan_xingming == null && nv_xingming == null",**  
        "errorMessage": "两个字段不能同时为空",  
        "client": true  
    }],

以上这些写总也不能通过.请指教!

2024-05-02 12:31 负责人:无 分享
已邀请:

要回复问题请先登录注册