// 定義需要更新的字段 Map updateData = [ "quote_company_name__c": "廣東華認(rèn)檢測科技有限公司" ] // 定義查詢條件 QueryTemplate template = QueryTemplate.AND( ["quote_company_name__c": Operator.EQ("1")] ) // 執(zhí)行批量更新 def (Boolean error, Object data, String message) = Fx.object.update("SalesOrderObj", template, updateData, UpdateAttribute.builder().build()) if (error) { log.info("error: " + message) } else { log.info("success!") } // 返回一個空的UIEvent對象 return UIEvent.build(context) { }
上一篇:批量更新某個字段