Преглед изворни кода

更新招考系统准考证规则

sandm пре 2 година
родитељ
комит
f29c9be1b8

+ 1 - 1
app/Http/Controllers/Web/Recruit/IndexController.php

@@ -108,7 +108,7 @@ class IndexController extends WebBaseController
             $pen_ticket = RecruitTicket::where('appoint_id',$appoint_info->id)->where('ex_type',1)->first();
             if($pen_ticket){
                 $pen_health = RecruitSupplement::where("appoint_id",$appoint_info->id)->where("type","pen")->where('h_status',1)->first();
-                if(!$pen_health){
+                if(!$pen_health && $recruit->pen_epidemic){
                     $appoint_info->pen_ticket = -2;
                 }else{
                     $time = time();

+ 32 - 62
app/Http/Controllers/Web/Talent/JjhcController.php

@@ -72,77 +72,47 @@ class JjhcController extends WebBaseController
         error_reporting(E_ALL);
         $guid = $this->getGuid();
         $index = 0;
-        for ($i = 1;$i<=5;$i++){
-            $list = DB::connection('report_system')->table("un_talent_info")->offset($index)->limit(500)->get();
+        for ($i = 71;$i<=100;$i++){
+            $list = DB::table("recruit_appoint_info")->distinct('card')->offset($index)->limit(500)->get();
             if($list && count($list) > 0){
                 $str = '<?xml version="1.0" encoding="UTF-8"?><table>';
                 $template = '<row type="add">
     <id name="主键" isattachment="false"><![CDATA[%s]]></id>
-    <enterpriseid name="企业id" isattachment="false"><![CDATA[%s]]></enterpriseid>
-    <year name="申报年度" isattachment="false"><![CDATA[%s]]></year>
-    <type name="人才类型" isattachment="false"><![CDATA[%s]]></type>
-    <source name="来源" isattachment="false"><![CDATA[%s]]></source>
-    <ourcitysource name="是否我市" isattachment="false"><![CDATA[%s]]></ourcitysource>
-    <talenttype name="申报人才类型" isattachment="false"><![CDATA[%s]]></talenttype>
-    <cardtype name="证件类型" isattachment="false"><![CDATA[%s]]></cardtype>
-    <idcard name="证件号码" isattachment="false"><![CDATA[%s]]></idcard>
-    <name name="姓名" isattachment="false"><![CDATA[%s]]></name>
-    <photo name="头像" isattachment="false"><![CDATA[%s]]></photo>
+    <uid name="用户id" isattachment="false"><![CDATA[%s]]></uid>
+    <realname name="姓名" isattachment="false"><![CDATA[%s]]></realname>
     <sex name="性别" isattachment="false"><![CDATA[%s]]></sex>
+    <birthday name="生日" isattachment="false"><![CDATA[%s]]></birthday>
     <nation name="民族" isattachment="false"><![CDATA[%s]]></nation>
-    <nationality name="国籍" isattachment="false"><![CDATA[%s]]></nationality>
-    <provincename name="籍贯省名称" isattachment="false"><![CDATA[%s]]></provincename>
-    <cityname name="籍贯市名称" isattachment="false"><![CDATA[%s]]></cityname>
-    <countyname name="籍贯县名称" isattachment="false"><![CDATA[%s]]></countyname>
-    <birthday name="出生日期" isattachment="false"><![CDATA[%s]]></birthday>
-    <address name="现居地址" isattachment="false"><![CDATA[%s]]></address>
-    <politics name="政治面貌" isattachment="false"><![CDATA[%s]]></politics>
-    <higheducation name="最高学历" isattachment="false"><![CDATA[%s]]></higheducation>
-    <graduateschool name="毕业学校" isattachment="false"><![CDATA[%s]]></graduateschool>
-    <major name="专业" isattachment="false"><![CDATA[%s]]></major>
-    <post name="职务" isattachment="false"><![CDATA[%s]]></post>
-    <phone name="手机号码" isattachment="false"><![CDATA[%s]]></phone>
+    <native_place name="籍贯" isattachment="false"><![CDATA[%s]]></native_place>
+    <political_attitudes name="政治面貌" isattachment="false"><![CDATA[%s]]></political_attitudes>
+    <join_time name="入党时间" isattachment="false"><![CDATA[%s]]></join_time>
+    <titles name="职称或职业资格" isattachment="false"><![CDATA[%s]]></titles>
+    <work name="现工作单位及职务" isattachment="false"><![CDATA[%s]]></work>
+    <house_register name="户籍所在地" isattachment="false"><![CDATA[%s]]></house_register>
+    <edu_type name="教育类型" isattachment="false"><![CDATA[%s]]></edu_type>
+    <education name="学历" isattachment="false"><![CDATA[%s]]></education>
+    <school name="学校" isattachment="false"><![CDATA[%s]]></school>
+    <degree name="学位" isattachment="false"><![CDATA[%s]]></degree>
+    <pro name="所学专业" isattachment="false"><![CDATA[%s]]></pro>
+    <address name="通信地址" isattachment="false"><![CDATA[%s]]></address>
+    <card name="身份证号码" isattachment="false"><![CDATA[%s]]></card>
+    <mobile name="联系电话" isattachment="false"><![CDATA[%s]]></mobile>
     <email name="电子邮箱" isattachment="false"><![CDATA[%s]]></email>
-    <bank name="开户银行" isattachment="false"><![CDATA[%s]]></bank>
-    <banknetwork name="开户银行网点" isattachment="false"><![CDATA[%s]]></banknetwork>
-    <bankaccount name="银行账号" isattachment="false"><![CDATA[%s]]></bankaccount>
-    <banknumber name="银行行号" isattachment="false"><![CDATA[%s]]></banknumber>
-    <entrytime name="入职时间" isattachment="false"><![CDATA[%s]]></entrytime>
-    <starttime name="工作合同开始时间" isattachment="false"><![CDATA[%s]]></starttime>
-    <endtime name="工作合同结束时间" isattachment="false"><![CDATA[%s]]></endtime>
-    <talentarrange name="人才层次" isattachment="false"><![CDATA[%s]]></talentarrange>
-    <identifycondition name="认定条件" isattachment="false"><![CDATA[%s]]></identifycondition>
-    <identifygettime name="认定条件获得时间" isattachment="false"><![CDATA[%s]]></identifygettime>
-    <identifyconditionname name="认定条件名称" isattachment="false"><![CDATA[%s]]></identifyconditionname>
-    <identifymonth name="认定月份" isattachment="false"><![CDATA[%s]]></identifymonth>
-    <certificateno name="证书编号" isattachment="false"><![CDATA[%s]]></certificateno>
-    <lettertime name="行政介绍信时间" isattachment="false"><![CDATA[%s]]></lettertime>
-    <gygb name="是否为我市本级国有股比超过50%%" isattachment="false"><![CDATA[%s]]></gygb>
-    <certificatestarttime name="人才证书开始时间" isattachment="false"><![CDATA[%s]]></certificatestarttime>
-    <qzgccrcactivetime name="人才证书的有效期" isattachment="false"><![CDATA[%s]]></qzgccrcactivetime>
-    <mainhonours name="主要业绩及取得的荣誉" isattachment="false"><![CDATA[%s]]></mainhonours>
-    <educationandresume name="教育背景及工作简历" isattachment="false"><![CDATA[%s]]></educationandresume>
-    <firstinjjtime name="首次来晋工作时间" isattachment="false"><![CDATA[%s]]></firstinjjtime>
-    <isintroduction name="是否引进" isattachment="false"><![CDATA[%s]]></isintroduction>
-    <introductionmode name="引进方式" isattachment="false"><![CDATA[%s]]></introductionmode>
-    <industryfield name="行业领域" isattachment="false"><![CDATA[%s]]></industryfield>
-    <title name="职称" isattachment="false"><![CDATA[%s]]></title>
-    <professionalqualifications name="国家职业资格" isattachment="false"><![CDATA[%s]]></professionalqualifications>
-    <studyabroad name="是否有留学经历" isattachment="false"><![CDATA[%s]]></studyabroad>
-    <studyabroadcountry name="留学国家" isattachment="false"><![CDATA[%s]]></studyabroadcountry>
-    <fromcity name="来源县市" isattachment="false"><![CDATA[%s]]></fromcity>
-    <qzbatch name="入选泉州高层次人才批次" isattachment="false"><![CDATA[%s]]></qzbatch>
-    <breakfaith name="曾被相关部门列为失信人员" isattachment="false"><![CDATA[%s]]></breakfaith>
+    <concat_name name="联系人姓名" isattachment="false"><![CDATA[%s]]></concat_name>
+    <concat_mobile name="联系人手机号码" isattachment="false"><![CDATA[%s]]></concat_mobile>
+    <resume name="个人简历" isattachment="false"><![CDATA[%s]]></resume>
+    <training name="培训学习经历" isattachment="false"><![CDATA[%s]]></training>
+    <rewards_and_punishments name="奖惩情况" isattachment="false"><![CDATA[%s]]></rewards_and_punishments>
+    <introduce name="个人情况介绍" isattachment="false"><![CDATA[%s]]></introduce>
+    <status name="状态" isattachment="false"><![CDATA[%s]]></status>
+    <createtime name="提交时间" isattachment="false"><![CDATA[%s]]></createtime>
   </row>';
 
                 foreach ($list as $k => $v){
-                    $item_str = sprintf($template,$v->id,$v->enterpriseId,$v->year,$v->type,$v->source,$v->ourCitySource,$v->talentType,$v->cardType,$v->idCard
-                        ,$v->name,$v->photo,$v->sex,$v->nation,$v->nationality,$v->provinceName,$v->cityName,$v->countyName,$v->birthday
-                        ,$v->address,$v->politics,$v->highEducation,$v->graduateSchool,$v->major,$v->post,$v->phone,$v->email,$v->bank
-                        ,$v->bankNetwork,$v->bankAccount,$v->bankNumber,$v->entryTime,$v->startTime,$v->endTime,$v->talentArrange,$v->identifyCondition,$v->identifyGetTime
-                        ,$v->identifyConditionName,$v->identifyMonth,$v->certificateNO,$v->letterTime,$v->gygb,$v->certificateStartTime,$v->qzgccrcActiveTime,$v->mainHonours,$v->educationAndResume
-                        ,$v->firstInJJTime,$v->isIntroduction,$v->introductionMode,$v->industryField,$v->title,$v->professionalQualifications,$v->studyAbroad,$v->studyAbroadCountry,$v->fromCity
-                        ,$v->qzBatch,$v->breakFaith);
+                    $item_str = sprintf($template,$v->id,$v->uid,$v->realname,$v->sex,$v->birthday,$v->nation,$v->native_place,$v->political_affiliation,$v->join_time
+                        ,$v->titles,$v->work,$v->house_register,$v->edu_type,$v->education,$v->school,$v->degree,$v->pro,$v->address
+                        ,$v->card,$v->mobile,$v->email,$v->concat_name,$v->concat_mobile,$v->resume,'','',''
+                        ,$v->audit,$v->created_at);
 //                    dd($item_str);
                     $str .= $item_str;
                 }
@@ -153,7 +123,7 @@ class JjhcController extends WebBaseController
                     // 组织参数  根据接口具体提供参数组织对应参数
                     $param = [
                         'guid'=>$guid,
-                        'catalogid'=>'WEB2448',
+                        'catalogid'=>'WEB2445',
                         'xmlstr' => $str
                     ];
 

+ 54 - 55
public/themes/default/views/app/recruit/show.blade.php

@@ -591,10 +591,10 @@
                 var pen_audit = "{{$appoint_info->pen_audit}}";
                 var pen_ticket = "{{$appoint_info->pen_ticket}}"
                 if ((isVisitor > 0)) {
-                    if (isApply != 1) {
-                        disapperTooltip("remind", "抱歉,您没有报名!");
-                        return false;
-                    }
+                    // if (isApply != 1) {
+                    //     disapperTooltip("remind", "抱歉,您没有报名!");
+                    //     return false;
+                    // }
                     if (pen_audit == 3) {
                         disapperTooltip("remind", "您本次报名招考目前没有笔试项目!");
                         return false;
@@ -633,57 +633,56 @@
                         {{--    }--}}
                         {{--});--}}
                         {{--qsDialog.setContent($('#commit0').html());--}}
-
-
-                        var qsDialog = $(this).dialog({
-                            loading: true,
-                            header: false,
-                            border: false,
-                            btns: ['下一份','取消'],
-                            yes: function(){
-                                qsDialog.setCloseDialog(false);
-                                if(!$($(".agree_commit")[1]).prop('checked')){
-                                    disapperTooltip("remind", "请阅读并承诺遵守《考生健康申明卡及安全考试承诺书》!");
-                                    //alert('请阅读并承诺遵守《考生健康申明卡及安全考试承诺书》');
-                                    return false;
-                                }
-                                qsDialog.setCloseDialog(true);
-                                var dialog_1 = $(this).dialog({
-                                    loading: true,
-                                    header: false,
-                                    border: false,
-                                    btns: ['打印准考证','取消'],
-                                    yes: function(){
-                                        dialog_1.setCloseDialog(false);
-                                        var must = 1,total = 0;
-                                        $.each($($(".commit_step_2")[1]).find("input"),function(){
-                                            if(this.checked){
-                                                if($(this).val() == 1){
-                                                    must = 0;
-                                                }
-                                                total++;
-                                            }
-                                        });
-                                        if(total != 6){
-                                            disapperTooltip("remind", "请勾选以上项目!");
-                                            return false;
-                                        }
-                                        if(!must){
-                                            disapperTooltip("remind", "不符合参加考试条件,请检查!");
-                                            return false;
-                                        }
-                                        if(!$($(".agree_commit1")[1]).prop('checked')){
-                                            disapperTooltip("remind", "请阅读并承诺遵守《考生报考承诺书》!");
-                                            return false;
-                                        }
-                                        dialog_1.setCloseDialog(true);
-                                        window.location.href = "{!! route('recruit.pen_ticket',['recruit_id'=>$recruit->id,'uid'=>$uid]) !!}";
-                                    }
-                                });
-                                dialog_1.setContent($('#commit1').html())
-                            }
-                        });
-                        qsDialog.setContent($('#commit').html());
+                            window.location.href = "{!! route('recruit.pen_ticket',['recruit_id'=>$recruit->id,'uid'=>$uid]) !!}";
+                        {{--var qsDialog = $(this).dialog({--}}
+                        {{--    loading: true,--}}
+                        {{--    header: false,--}}
+                        {{--    border: false,--}}
+                        {{--    btns: ['下一份','取消'],--}}
+                        {{--    yes: function(){--}}
+                        {{--        qsDialog.setCloseDialog(false);--}}
+                        {{--        if(!$($(".agree_commit")[1]).prop('checked')){--}}
+                        {{--            disapperTooltip("remind", "请阅读并承诺遵守《考生健康申明卡及安全考试承诺书》!");--}}
+                        {{--            //alert('请阅读并承诺遵守《考生健康申明卡及安全考试承诺书》');--}}
+                        {{--            return false;--}}
+                        {{--        }--}}
+                        {{--        qsDialog.setCloseDialog(true);--}}
+                        {{--        var dialog_1 = $(this).dialog({--}}
+                        {{--            loading: true,--}}
+                        {{--            header: false,--}}
+                        {{--            border: false,--}}
+                        {{--            btns: ['打印准考证','取消'],--}}
+                        {{--            yes: function(){--}}
+                        {{--                dialog_1.setCloseDialog(false);--}}
+                        {{--                var must = 1,total = 0;--}}
+                        {{--                $.each($($(".commit_step_2")[1]).find("input"),function(){--}}
+                        {{--                    if(this.checked){--}}
+                        {{--                        if($(this).val() == 1){--}}
+                        {{--                            must = 0;--}}
+                        {{--                        }--}}
+                        {{--                        total++;--}}
+                        {{--                    }--}}
+                        {{--                });--}}
+                        {{--                if(total != 6){--}}
+                        {{--                    disapperTooltip("remind", "请勾选以上项目!");--}}
+                        {{--                    return false;--}}
+                        {{--                }--}}
+                        {{--                if(!must){--}}
+                        {{--                    disapperTooltip("remind", "不符合参加考试条件,请检查!");--}}
+                        {{--                    return false;--}}
+                        {{--                }--}}
+                        {{--                if(!$($(".agree_commit1")[1]).prop('checked')){--}}
+                        {{--                    disapperTooltip("remind", "请阅读并承诺遵守《考生报考承诺书》!");--}}
+                        {{--                    return false;--}}
+                        {{--                }--}}
+                        {{--                dialog_1.setCloseDialog(true);--}}
+                        {{--                window.location.href = "{!! route('recruit.pen_ticket',['recruit_id'=>$recruit->id,'uid'=>$uid]) !!}";--}}
+                        {{--            }--}}
+                        {{--        });--}}
+                        {{--        dialog_1.setContent($('#commit1').html())--}}
+                        {{--    }--}}
+                        {{--});--}}
+                        {{--qsDialog.setContent($('#commit').html());--}}
                     }
                 } else {
                     var qsDialog = $(this).dialog({