|
@@ -109,7 +109,7 @@ class LivingAllowance extends AdminController {
|
|
|
$responseObj->code = 500;
|
|
|
switch ($process) {
|
|
|
case 1:
|
|
|
- if ($oldInfo["checkState"] != LaState::LA_NEED_FIRST_CHECK && $oldInfo["checkState"] != LaState::LA_DEP_REJECT) {
|
|
|
+ if ($oldInfo["checkState"] != LaState::LA_NEED_FIRST_CHECK && $oldInfo["checkState"] != LaState::LA_DEP_REJECT && $oldInfo["checkState"] != LaState::LA_THIRD_REJECT) {
|
|
|
$responseObj->msg = "该申报不在审核范围内,无法审核";
|
|
|
} else {
|
|
|
$responseObj->code = 200;
|
|
@@ -118,7 +118,7 @@ class LivingAllowance extends AdminController {
|
|
|
break;
|
|
|
case 2:
|
|
|
$company = getCacheById("Company", $this->user["companyId"]);
|
|
|
- if ($oldInfo["checkState"] != LaState::LA_NEED_DEP_CHECK && $oldInfo["checkState"] != LaState::LA_THIRD_REJECT) {
|
|
|
+ if ($oldInfo["checkState"] != LaState::LA_NEED_DEP_CHECK) {// && $oldInfo["checkState"] != LaState::LA_THIRD_REJECT
|
|
|
$responseObj->msg = "该申报不在审核范围内,无法审核";
|
|
|
} else if ($company["code"] != CommonConst::JYJ) {
|
|
|
$responseObj->msg = "部门审核仅教育局能够审核!";
|
|
@@ -319,7 +319,7 @@ class LivingAllowance extends AdminController {
|
|
|
if (!$oldInfo["highProcess"]) {
|
|
|
$updData["highProcess"] = $process;
|
|
|
} else {
|
|
|
- $updData["highProcess"] = $oldInfo["process"] < $process ? $process : $oldInfo["highProcess"];
|
|
|
+ $updData["highProcess"] = $oldInfo["highProcess"] < $process ? $process : $oldInfo["highProcess"];
|
|
|
}
|
|
|
switch ($process) {
|
|
|
case 1:
|
|
@@ -338,7 +338,19 @@ class LivingAllowance extends AdminController {
|
|
|
//审核通过
|
|
|
if ($oldLog["state"] == 3) {
|
|
|
$updData["checkState"] = LaState::LA_NEED_DEP_CHECK;
|
|
|
- $updData["firstPassTime"] = date("Y-m-d H:i:s");
|
|
|
+ if (!$oldInfo["firstPassTime"]) {
|
|
|
+ $updData["firstPassTime"] = date("Y-m-d H:i:s");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //审核通过,跳过部门并审
|
|
|
+ if ($oldLog["state"] == 4) {
|
|
|
+ if ($oldInfo["highProcess"] != 3) {
|
|
|
+ $responseObj->msg = "只有曾经通过部门并审才可以选择跳过部门并审";
|
|
|
+ return json($responseObj);
|
|
|
+ }
|
|
|
+ $updData["checkState"] = LaState::LA_NEED_THIRD;
|
|
|
+ $_updData = $this->calculateAmount($oldInfo);
|
|
|
+ $updData = array_merge($updData, $_updData);
|
|
|
}
|
|
|
break;
|
|
|
case 2:
|
|
@@ -359,7 +371,9 @@ class LivingAllowance extends AdminController {
|
|
|
}
|
|
|
if ($oldLog["state"] == 3) {
|
|
|
$updData["checkState"] = LaState::LA_NEED_THIRD;
|
|
|
- $updData["firstDepPassTime"] = date("Y-m-d H:i:s");
|
|
|
+ if (!$oldInfo["firstDepPassTime"]) {
|
|
|
+ $updData["firstDepPassTime"] = date("Y-m-d H:i:s");
|
|
|
+ }
|
|
|
$_updData = $this->calculateAmount($oldInfo);
|
|
|
$updData = array_merge($updData, $_updData);
|
|
|
}
|
|
@@ -373,7 +387,7 @@ class LivingAllowance extends AdminController {
|
|
|
$updData["recommendIsPay"] = -1;
|
|
|
}
|
|
|
if ($oldLog["state"] == 2) {
|
|
|
- $updData["checkState"] = LaState::LA_DEP_REJECT;
|
|
|
+ $updData["checkState"] = LaState::LA_THIRD_REJECT;
|
|
|
$updData["creditStatus"] = 1;
|
|
|
$updData["recommendAmount"] = null;
|
|
|
$updData["recommendAmountDesc"] = "";
|
|
@@ -409,10 +423,11 @@ class LivingAllowance extends AdminController {
|
|
|
|
|
|
if ($process == 1 && $oldLog["state"] == 2) {
|
|
|
//驳回到用户发送短信通知
|
|
|
+ $ep = EnterpriseApi::getOne($oldInfo["enterpriseId"]);
|
|
|
$tpl_content = "【晋江市人才服务平台】您好!您提交申请的硕博人才生活补贴因信息填写错误或上传不完整已被退回,请及时联系人才联络员登录申报系统查看审核意见并重新提交。";
|
|
|
|
|
|
$sms = new ChuanglanSmsApi();
|
|
|
- $result = $sms->sendSMS($oldInfo["phone"], $tpl_content, true);
|
|
|
+ $result = $sms->sendSMS($ep["agentPhone"], $tpl_content, true);
|
|
|
$result = json_decode($result, true);
|
|
|
|
|
|
$record_data = [
|
|
@@ -421,7 +436,7 @@ class LivingAllowance extends AdminController {
|
|
|
'bizId' => $result["msgId"],
|
|
|
'type' => 2,
|
|
|
'smsType' => 2,
|
|
|
- 'phone' => $oldInfo["phone"],
|
|
|
+ 'phone' => $ep["agentPhone"],
|
|
|
'name' => $oldInfo["enterpriseName"],
|
|
|
'params' => '硕博人才生活补贴驳回',
|
|
|
'templateCode' => $tpl_content,
|