Browse Source

重写合同到期人员导出名单

zmw 1 year ago
parent
commit
9e6d705fdf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/enterprise/controller/TalentBasicChange.php

+ 1 - 1
app/enterprise/controller/TalentBasicChange.php

@@ -375,7 +375,7 @@ class TalentBasicChange extends EnterpriseController {
             $setting = [];
             $setting["freeze"] = "A2";
             $setting["filter"] = sprintf("A1:%s1", getExcelColumnByIndex(count($columns) - 1));
-            $datas = Talent::alias("ti")->field("ti.id,ti.name,ti.card_number,ti.labor_contract_rangetime")->leftJoin("un_talent_basic_change tbc","ti.id = tbc.talentId")->where($where)->whereRaw("trim(SUBSTRING_INDEX(ti.labor_contract_rangetime,'-',-3)) < '{$now}' and tbc.id is null")->limit($offset, $limit)->select()->toArray();
+            $datas = Talent::alias("ti")->field("ti.id,ti.name,ti.card_number,ti.labor_contract_rangetime")->leftJoin("un_talent_basic_change tbc","ti.id = tbc.talentId")->where($where)->whereRaw("trim(SUBSTRING_INDEX(ti.labor_contract_rangetime,'-',-3)) < '{$now}' and tbc.id is null")->select()->toArray();
             export($columns, $datas, "合同到期列表导出", $setting);
         }else{
             echo "<script>parent.layer.alert('没有可以导出的数据');window.history.go(-1);</script>";