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 2626import static apijson .JSONObject .KEY_JSON ;
2727import static apijson .JSONObject .KEY_ORDER ;
2828import static apijson .JSONObject .KEY_ROLE ;
29+ import static apijson .JSONObject .KEY_RAW ;
2930import static apijson .JSONObject .KEY_SCHEMA ;
3031import static apijson .JSONObject .KEY_USER_ID ;
3132import static apijson .RequestMethod .DELETE ;
@@ -1446,10 +1447,8 @@ private String getWhereItem(String key, Object value
14461447, RequestMethod method , boolean verifyName ) throws Exception {
14471448Log .d (TAG , "getWhereItem key = " + key );
14481449//避免筛选到全部 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 )) { //关键字||方法, +或-直接报错
14531452Log .d (TAG , "getWhereItem key == null || value == null"
14541453+ " || key.startsWith(@) || key.endsWith(()) >> continue;" );
14551454return null ;
You can’t perform that action at this time.
0 commit comments