浏览代码

购房补贴++

sugangqiang 10 月之前
父节点
当前提交
d34b3ea4fa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/enterprise/controller/House.php

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

@@ -472,7 +472,7 @@ class House extends EnterpriseController {
         $where[] = [$oldStartTimeField, "<=", $year . "-12-31"];
         $typeChanges = \app\enterprise\model\TalentTypeChange::where($where)->field("oldTalentArrange,oldIdentifyCondition,oldIdentifyGetTime,oldIdentifyOutTime,oldIdentifyConditionName,oldIdentifyMonth,oldCertificateStartTime,oldCertificateOutTime,newIdentifyMonth,newIdentifyGetTime")->order("createTime desc")->select()->toArray();
 
-        if (!$typeChanges && strtotime($year . "-12-31") > strtotime($talentInfo[$identifyTimeField])) {
+        if (!$typeChanges && strtotime($year . "-12-31") < strtotime($talentInfo[$identifyTimeField])) {
             return new Response(Response::ERROR, "在上一年度未认定优秀人才,无法申报");
         } else {
             $typeChanges[] = [