JSON_CONTAINS,JSON_CONTAINS_PATH
最后更新:2024-09-08 05:30:01
|
状态:未完成
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ConfigStore configs = new DefaultConfigStore(); configs.and(Compare.JSON_CONTAINS, "CODES>$.A" , 11 ); set = service.querys(table, configs); System.out.println(set.toJSON()); configs = new DefaultConfigStore(); configs.and(Compare.JSON_CONTAINS, "CODES>$.C" , "张三" ); set = service.querys(table, configs); System.out.println(set.toJSON()); configs = new DefaultConfigStore(); configs.and(Compare.JSON_CONTAINS_PATH_AND, "CODES" , "$.A" ); set = service.querys(table, configs); System.out.println(set.toJSON()); configs = new DefaultConfigStore(); configs.and(Compare.JSON_CONTAINS_PATH_OR, "CODES" , "$.A,$.B" .split( "," )); set = service.querys(table, configs); System.out.println(set.toJSON()); configs = new DefaultConfigStore(); configs.and(Compare.JSON_CONTAINS_PATH_AND, "CODES" , "$.A,$.B,$.C" .split( "," )); set = service.querys(table, configs); System.out.println(set.toJSON()); |