File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
APIJSON-Java-Server/APIJSONORM/src/main/java/apijson/orm Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 26
26
import static apijson .JSONObject .KEY_JSON ;
27
27
import static apijson .JSONObject .KEY_ORDER ;
28
28
import static apijson .JSONObject .KEY_ROLE ;
29
+ import static apijson .JSONObject .KEY_RAW ;
29
30
import static apijson .JSONObject .KEY_SCHEMA ;
30
31
import static apijson .JSONObject .KEY_USER_ID ;
31
32
import static apijson .RequestMethod .DELETE ;
@@ -1446,10 +1447,8 @@ private String getWhereItem(String key, Object value
1446
1447
, RequestMethod method , boolean verifyName ) throws Exception {
1447
1448
Log .d (TAG , "getWhereItem key = " + key );
1448
1449
//避免筛选到全部 value = key == null ? null : where.get(key);
1449
- if (key .equals ("@raw" )){
1450
- Log .d (TAG , "getWhereItem key startsWith @ = @raw " );
1451
- // 自定义where条件拼接,直接通过,放行
1452
- }else if (key == null || value == null || key .startsWith ("@" ) || key .endsWith ("()" )) {//关键字||方法, +或-直接报错
1450
+ if (key == null || value == null || key .endsWith ("()" )
1451
+ || (key .startsWith ("@" ) && KEY_RAW .equals (key ) == false )) { //关键字||方法, +或-直接报错
1453
1452
Log .d (TAG , "getWhereItem key == null || value == null"
1454
1453
+ " || key.startsWith(@) || key.endsWith(()) >> continue;" );
1455
1454
return null ;
You can’t perform that action at this time.
0 commit comments