sugangqiang 10 сар өмнө
parent
commit
d34b3ea4fa

+ 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[] = [