Browse Source

增加小于的判断

sandm 1 year ago
parent
commit
f6a6fc26f7
1 changed files with 9 additions and 0 deletions
  1. 9 0
      server/api/modules/v1/controllers/SurveyController.php

+ 9 - 0
server/api/modules/v1/controllers/SurveyController.php

@@ -266,6 +266,15 @@ class SurveyController extends Controller {
                                         continue 2;
                                     }
                                     break;
+                                case '<=':
+                                    if($data[$filter2[0]] <= $filter2[2] && $data[$filter2[0]] > 0){
+                                        $is_match[$key1] = true;
+                                    }else{
+                                        $is_match[$key1] = false;
+                                        continue 2;
+                                    }
+                                    break;
+
                             }
                         }else{
                             $is_match[$key1] = false;