浏览代码

更新高校学历信息查询

sandm 2 年之前
父节点
当前提交
6bd740452c
共有 2 个文件被更改,包括 32 次插入1 次删除
  1. 17 0
      app/admin/controller/Talent.php
  2. 15 1
      app/admin/view/talent/talentInfo_common_check.html

+ 17 - 0
app/admin/controller/Talent.php

@@ -99,6 +99,7 @@ class Talent extends AdminController {
                 unset($tmp_time);
                 unset($tmp_item);
                 /*************************处理养老缴费判断结束****************/
+                /*************************处理职业资格证书开始****************/
                 if(!empty($info['pro_qua'])){
                     $content['SBJ0007'] = $rsapi->SBJ0007($info['name'],$info['card_number']);
                     if($content['SBJ0007']['data']['totalCount'] > 0){
@@ -112,6 +113,22 @@ class Talent extends AdminController {
                     }
                     $info['rs']['SBJ0007'] = $content['SBJ0007'];
                 }
+                /*************************处理职业资格证书结束****************/
+                /*************************处理高校教育信息开始****************/
+                if(!empty($info['pro_qua'])){
+                    $content['SBJ0004'] = $rsapi->SBJ0004($info['name'],$info['card_number']);
+                    if($content['SBJ0004']['data']['totalCount'] > 0){
+                        $tmp_str = '';
+                        foreach ($content['SBJ0004']['data']['list'] as $tmp_item) {
+                            $tmp_str .=  "层次:{$tmp_item['cc']};毕业学校名称:{$tmp_item['yxmc']}({$tmp_item['rxrq']}-{$tmp_item['byrq']});专业名称:{$tmp_item['zymc']};学习形式:{$tmp_item['xxxs']};编号:{$tmp_item['zsbh']}<br />";
+                        }
+                        $content['SBJ0004']['content'] = "该人员共有{$content['SBJ0004']['data']['totalCount']}条高校教育,分别为:<br />{$tmp_str}";
+                    }else{
+                        $content['SBJ0004']['content'] = "该人员查不到高校教育信息";
+                    }
+                    $info['rs']['SBJ0004'] = $content['SBJ0004'];
+                }
+                /*************************处理高校教育信息结束****************/
 
                 $api_model_data = [
                     'uid' => $info['card_number'],

+ 15 - 1
app/admin/view/talent/talentInfo_common_check.html

@@ -491,7 +491,21 @@
                                         <tr>
                                             <td>
                                                 <div class="rowGroup">
-                                                    <label class="control-label spacing td-label">最高学历</label>
+                                                    <label class="control-label spacing td-label">
+                                                        最高学历
+                                                        {notempty name="info.pro_qua"}
+                                                            {switch name="info.rs.SBJ0007.code"}
+                                                                {case value="403"}<i class="fa fa-times" style="color: red" data-msg="{$info.rs.SBJ0004.message}"></i>{/case}
+                                                                {case value="200"}
+                                                                <i class="fa fa-exclamation" style="color: #e6a23c" data-id="highest_degree_text"></i>
+                                                                {/case}
+                                                                {default /}<i class="fa fa-exclamation" style="color: #e6a23c" data-msg="接口返回消息:{$info.rs.SBJ0004.message},请自行审核"></i>
+                                                            {/switch}
+                                                            <div id="highest_degree_text"  style="display: none">
+                                                                {$info.rs.SBJ0004.content|raw}
+                                                            </div>
+                                                        {/notempty}
+                                                    </label>
                                                     <select class="form-control" id="highest_degree" name="highest_degree" value="{$info.highest_degree}">
                                                         <option value="" selected="true">{$info.highestDegreeName}</option>
                                                     </select>