|
@@ -950,6 +950,8 @@ class TalentAllowance extends AdminController {
|
|
|
$obj["checkState"] = \StrUtil::getRequestDecodeParam($this->request, "checkState");
|
|
|
$obj["publicState"] = \StrUtil::getRequestDecodeParam($this->request, "publicState");
|
|
|
$obj["companyName"] = \StrUtil::getRequestDecodeParam($this->request, "companyName");
|
|
|
+ $obj["allowanceType"] = \StrUtil::getRequestDecodeParam($this->request, "allowanceType");
|
|
|
+ $obj["recommendAllowanceType"] = \StrUtil::getRequestDecodeParam($this->request, "recommendAllowanceType");
|
|
|
$obj["introductionMode"] = \StrUtil::getRequestDecodeParam($this->request, "introductionMode");
|
|
|
$obj["firstJJStartTime"] = \StrUtil::getRequestDecodeParam($this->request, "firstJJStartTime");
|
|
|
$obj["firstJJEndTime"] = \StrUtil::getRequestDecodeParam($this->request, "firstJJEndTime");
|
|
@@ -1080,7 +1082,6 @@ class TalentAllowance extends AdminController {
|
|
|
}
|
|
|
$settings["background-color"][] = [sprintf("%s2:%s2", getExcelColumnByIndex($infoCols), getExcelColumnByIndex($cols)), "E1F1DE"];
|
|
|
export($columns, $rows, "津补贴申报名单", $settings);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
private function validateAllowanceType(&$info) {
|
|
@@ -1673,6 +1674,9 @@ class TalentAllowance extends AdminController {
|
|
|
if (\StrUtil::isNotEmpAndNull($query["address"])) {
|
|
|
$where[] = ["address", "=", $query["address"]];
|
|
|
}
|
|
|
+ if ($query["allowanceType"]) {
|
|
|
+ $where[] = ["allowanceType", "=", $query["allowanceType"]];
|
|
|
+ }
|
|
|
if ($query["recommendAllowanceType"]) {
|
|
|
$where[] = ["recommendAllowanceType", "=", $query["recommendAllowanceType"]];
|
|
|
}
|
|
@@ -1785,8 +1789,8 @@ class TalentAllowance extends AdminController {
|
|
|
}
|
|
|
return $where;
|
|
|
}
|
|
|
-
|
|
|
- private function setTalentAllowanceInfoForExport($where, $query, $process) {
|
|
|
+
|
|
|
+ private function setTalentAllowanceInfoForExport(&$where, $query, $process) {
|
|
|
if (\StrUtil::isNotEmpAndNull($query["year"])) {
|
|
|
$where[] = ["ta.year", "=", $query["year"]];
|
|
|
}
|
|
@@ -1808,10 +1812,13 @@ class TalentAllowance extends AdminController {
|
|
|
if (\StrUtil::isNotEmpAndNull($query["address"])) {
|
|
|
$where[] = ["ta.address", "=", $query["address"]];
|
|
|
}
|
|
|
- if ($query["recommendAllowanceType"]) {
|
|
|
+ if (\StrUtil::isNotEmpAndNull($query["allowanceType"])) {
|
|
|
+ $where[] = ["ta.allowanceType", "=", $query["allowanceType"]];
|
|
|
+ }
|
|
|
+ if (\StrUtil::isNotEmpAndNull($query["recommendAllowanceType"])) {
|
|
|
$where[] = ["ta.recommendAllowanceType", "=", $query["recommendAllowanceType"]];
|
|
|
}
|
|
|
- if ($query["publicState"]) {
|
|
|
+ if (\StrUtil::isNotEmpAndNull($query["publicState"])) {
|
|
|
$where[] = ["ta.publicState", "=", $query["publicState"]];
|
|
|
}
|
|
|
if (\StrUtil::isNotEmpAndNull($query["introductionMode"])) {
|
|
@@ -1918,7 +1925,6 @@ class TalentAllowance extends AdminController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- return $where;
|
|
|
}
|
|
|
|
|
|
private function translateToChinese(&$obj) {
|
|
@@ -1972,7 +1978,7 @@ class TalentAllowance extends AdminController {
|
|
|
}unset($info);
|
|
|
return $list;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
private function getCheckStateName($checkState, $publicState, $allowanceType) {
|
|
|
switch ($checkState) {
|
|
|
case 1:
|