소스 검색

Merge branch 'develop' of zhengxifeng/zc100 into master

zhengxifeng 5 달 전
부모
커밋
4d914075b8
4개의 변경된 파일53개의 추가작업 그리고 11개의 파일을 삭제
  1. 48
    8
      application/api/controller/Diyajax.php
  2. 2
    2
      application/api/model/v1/Zc.php
  3. 1
    1
      template/pc/components/index/step.htm
  4. 2
    0
      template/pc/js/botstrap-step/scripts.js

+ 48
- 8
application/api/controller/Diyajax.php 파일 보기

176
     public function getZcDjList(){
176
     public function getZcDjList(){
177
 
177
 
178
          $name = [
178
          $name = [
179
-             '技术员职称',
180
-             '助理职称',
181
-             '中级职称',
179
+             '技术员',
180
+             '助理工程师',
181
+             '中级工程师',
182
              '副高级职称',
182
              '副高级职称',
183
              '正高级职称'
183
              '正高级职称'
184
          ];
184
          ];
273
         $param = request()->param();
273
         $param = request()->param();
274
         $param['id'] = (int)$param['id']; //职称ID
274
         $param['id'] = (int)$param['id']; //职称ID
275
         $param['xl'] = (int)$param['xl']; //学历
275
         $param['xl'] = (int)$param['xl']; //学历
276
+        $param['dj'] = (int)$param['dj']; //等级
277
+
278
+/*        $param['id'] = 18; //职称ID
279
+        $param['xl'] = 3; //学历
280
+        $param['dj'] = 18; //等级*/
276
 
281
 
277
         if(!empty($param['id'])){
282
         if(!empty($param['id'])){
278
-            $map_ids = Db::name('zc_zs')
283
+
284
+            //查找专业绑定的证书
285
+            /*$map_ids = Db::name('zc_zs')
279
                 ->where('zc_id', $param['id'])
286
                 ->where('zc_id', $param['id'])
280
                 ->where('is_del', 0)
287
                 ->where('is_del', 0)
281
-                ->column('map_id');
288
+                ->column('map_id');*/
289
+
290
+            //查找规则 是否有相关证书要求
291
+            $zc_list_ids = Db::name('zcwd_position')
292
+                ->where('type', $param['id'])  //职称id
293
+                ->where('sbdj', $param['dj'])   //等级id
294
+                ->column('id');
295
+
296
+            //var_dump($zc_list_ids);
297
+
298
+            $xl_list_ids = Db::name('zcwe_position')
299
+                ->where('type','in',$zc_list_ids) //注规则
300
+                ->where('xlyq', $param['xl'])  //学历要求符合的
301
+                ->column('id');
302
+
303
+            //var_dump($xl_list_ids);
304
+
305
+
306
+            $map_list = Db::name('zcwf_position')
307
+                ->field('id,zhengshu')
308
+                ->where('type_son', 'in',$xl_list_ids)
309
+                ->select();
310
+
311
+            //var_dump($map_list);
312
+
313
+            $map_ids = [];
314
+            foreach ($map_list as $k=>$v){
315
+                if(!empty($v['zhengshu'])){
316
+                    $zhengshu = json_decode($v['zhengshu'],true);
317
+                    foreach ($zhengshu as $k1=>$v1){
318
+                        $map_ids[] = (int)$v1;
319
+                    }
320
+                }
321
+            }
282
 
322
 
283
             //调用等级
323
             //调用等级
284
             $list = Db::name('zczs_position')
324
             $list = Db::name('zczs_position')
432
 
472
 
433
 
473
 
434
         $name = [
474
         $name = [
435
-            1000000001=>'技术员职称',
436
-            1000000002=>'助理职称',
437
-            1000000003=>'中级职称',
475
+            1000000001=>'技术员',
476
+            1000000002=>'助理工程师',
477
+            1000000003=>'中级工程师',
438
             1000000004=>'副高级职称',
478
             1000000004=>'副高级职称',
439
             1000000005=>'正高级职称'
479
             1000000005=>'正高级职称'
440
         ];
480
         ];

+ 2
- 2
application/api/model/v1/Zc.php 파일 보기

472
                 'type'        => $gid, //所属职称主规则id
472
                 'type'        => $gid, //所属职称主规则id
473
                 'type_son'        => $xid, //所属上级学历id
473
                 'type_son'        => $xid, //所属上级学历id
474
                 'is_zs' => 1,
474
                 'is_zs' => 1,
475
-                'zhengshu' => json_encode([$sid]),
475
+                'zhengshu' => json_encode([(int)$sid]),
476
                 'sjnx' => json_encode([$rowData[0][9]]),
476
                 'sjnx' => json_encode([$rowData[0][9]]),
477
             ])->find();
477
             ])->find();
478
         if($oen){
478
         if($oen){
503
                 'bysj' =>0,
503
                 'bysj' =>0,
504
                 'bysj_time' => 0,
504
                 'bysj_time' => 0,
505
                 'is_zs' => 1,
505
                 'is_zs' => 1,
506
-                'zhengshu' => json_encode([$sid]),
506
+                'zhengshu' => json_encode([(int)$sid]),
507
                 'sjnx' => json_encode([$rowData[0][9]]),
507
                 'sjnx' => json_encode([$rowData[0][9]]),
508
                 'gzyq' => json_encode([]),
508
                 'gzyq' => json_encode([]),
509
                 'qttj' => '',
509
                 'qttj' => '',

+ 1
- 1
template/pc/components/index/step.htm 파일 보기

545
 
545
 
546
                                 <?php
546
                                 <?php
547
                                 //下载文件地址
547
                                 //下载文件地址
548
-                                if(strpos($extend_info['sbdj'],'级') !== false){
548
+                                if(strpos($extend_info['sbdj'],'级') !== false){
549
                                     $base_url = './uploads/pdf/2/';
549
                                     $base_url = './uploads/pdf/2/';
550
                                     $map_area = ['吉林','内蒙古','新疆','天津','陕西','山东'];
550
                                     $map_area = ['吉林','内蒙古','新疆','天津','陕西','山东'];
551
                                     $map_file = [
551
                                     $map_file = [

+ 2
- 0
template/pc/js/botstrap-step/scripts.js 파일 보기

176
             }
176
             }
177
 
177
 
178
             var xl = $('#choose5').val();
178
             var xl = $('#choose5').val();
179
+            var dj = $('#choose3').val();
179
 
180
 
180
             //调用证书
181
             //调用证书
181
             $('#loadingModal').modal('show');
182
             $('#loadingModal').modal('show');
185
                 dataType: 'json', // 指定响应数据为JSON
186
                 dataType: 'json', // 指定响应数据为JSON
186
                 data: {
187
                 data: {
187
                     id: a,
188
                     id: a,
189
+                    dj: dj,
188
                     xl: xl,
190
                     xl: xl,
189
                 },
191
                 },
190
                 success: function (data) {
192
                 success: function (data) {

Loading…
취소
저장