Browse Source

增加合同到期待变更提醒

sandm 1 year ago
parent
commit
77ef048b57
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/enterprise/controller/TalentBasicChange.php

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

@@ -340,7 +340,7 @@ class TalentBasicChange extends EnterpriseController {
 
         $count = 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")->whereRaw("trim(SUBSTRING_INDEX(ti.labor_contract_rangetime,'-',-3)) < '{$now}' and tbc.id is NULL and ti.delete = 0 and ti.checkState = '" .TalentState::CERTIFICATED . "' and ti.active = 1 and ti.enterprise_id = '" . session("user")["uid"] . "'")->count();
         $list = 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")->whereRaw("trim(SUBSTRING_INDEX(ti.labor_contract_rangetime,'-',-3)) < '{$now}' and tbc.id is NULL and ti.delete = 0 and ti.checkState = '" .TalentState::CERTIFICATED . "' and ti.active = 1 and ti.enterprise_id = '" . session("user")["uid"] . "'")->limit($offset, $limit)->select()->toArray();
-        echo Talent::getLastSql();die;
+        //echo Talent::getLastSql();die;
 
         return json(["total" => $count, "rows" => $list]);
     }