|
@@ -557,7 +557,7 @@ class TalentAllowance extends EnterpriseController {
|
|
|
|
|
|
$totalMonth = \DateUtil::getMonthBetweenDates($year . "-01-01", $year . "-12-31");
|
|
|
/* * 获取上一年度有效的人才层次 */
|
|
|
- usort($typeList, function($a, $b) {
|
|
|
+ usort($typeList, function ($a, $b) {
|
|
|
return (int) $b["oldTalentArrange"] - (int) $a["oldTalentArrange"];
|
|
|
});
|
|
|
$commonMonth = [];
|
|
@@ -577,7 +577,7 @@ class TalentAllowance extends EnterpriseController {
|
|
|
}
|
|
|
if ($monthList) {
|
|
|
$months = implode(",", $monthList);
|
|
|
- $monthList = array_filter($monthList, function($value) use ($commonMonth) {
|
|
|
+ $monthList = array_filter($monthList, function ($value) use ($commonMonth) {
|
|
|
return !in_array($value, $commonMonth);
|
|
|
});
|
|
|
$commonMonth = array_filter(array_merge($commonMonth, $monthList));
|
|
@@ -956,7 +956,7 @@ class TalentAllowance extends EnterpriseController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (count($sb) > 1) {
|
|
|
+ if (count($sb) > 1 && $old["postdoc"] != 1) {
|
|
|
$response->msg = implode("<br>", $sb);
|
|
|
return $response;
|
|
|
}
|
|
@@ -1709,5 +1709,4 @@ class TalentAllowance extends EnterpriseController {
|
|
|
return "未知状态";
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|