sugangqiang пре 9 месеци
родитељ
комит
60215a8307
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      app/admin/controller/TalentAllowance.php
  2. 1 1
      app/common/api/TalentAllowanceApi.php

+ 1 - 1
app/admin/controller/TalentAllowance.php

@@ -1970,7 +1970,7 @@ class TalentAllowance extends AdminController {
 
     private function setTalentAllowanceInfoForExport(&$where, $query, $process) {
         if (\StrUtil::isNotEmpAndNull($query["year"])) {
-            $where[] = ["ta.year", "=", $query["year"]];
+            $where[] = ["ta.year", "like", $query["year"] . "%"];
         }
         if (\StrUtil::isNotEmpAndNull($query["enterpriseName"])) {
             $where[] = ["ta.enterpriseName", "like", "%" . $query["enterpriseName"] . "%"];

+ 1 - 1
app/common/api/TalentAllowanceApi.php

@@ -139,7 +139,7 @@ class TalentAllowanceApi {
     public static function setTalentAllowanceInfo($params) {
         $where = [];
         if (\StrUtil::isNotEmpAndNull($params["year"])) {
-            $where[] = ["ta.year", "=", $params["year"]];
+            $where[] = ["ta.year", "like", $params["year"] . "%"];
         }
         if (\StrUtil::isNotEmpAndNull($params["enterpriseName"])) {
             $where[] = ["ta.enterpriseName", "like", "%" . $params["enterpriseName"] . "%"];