|
@@ -176,9 +176,9 @@ class Diyajax extends Base
|
176
|
176
|
public function getZcDjList(){
|
177
|
177
|
|
178
|
178
|
$name = [
|
179
|
|
- '技术员职称',
|
180
|
|
- '助理职称',
|
181
|
|
- '中级职称',
|
|
179
|
+ '技术员',
|
|
180
|
+ '助理工程师',
|
|
181
|
+ '中级工程师',
|
182
|
182
|
'副高级职称',
|
183
|
183
|
'正高级职称'
|
184
|
184
|
];
|
|
@@ -273,12 +273,52 @@ class Diyajax extends Base
|
273
|
273
|
$param = request()->param();
|
274
|
274
|
$param['id'] = (int)$param['id']; //职称ID
|
275
|
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
|
282
|
if(!empty($param['id'])){
|
278
|
|
- $map_ids = Db::name('zc_zs')
|
|
283
|
+
|
|
284
|
+ //查找专业绑定的证书
|
|
285
|
+ /*$map_ids = Db::name('zc_zs')
|
279
|
286
|
->where('zc_id', $param['id'])
|
280
|
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
|
324
|
$list = Db::name('zczs_position')
|
|
@@ -432,9 +472,9 @@ class Diyajax extends Base
|
432
|
472
|
|
433
|
473
|
|
434
|
474
|
$name = [
|
435
|
|
- 1000000001=>'技术员职称',
|
436
|
|
- 1000000002=>'助理职称',
|
437
|
|
- 1000000003=>'中级职称',
|
|
475
|
+ 1000000001=>'技术员',
|
|
476
|
+ 1000000002=>'助理工程师',
|
|
477
|
+ 1000000003=>'中级工程师',
|
438
|
478
|
1000000004=>'副高级职称',
|
439
|
479
|
1000000005=>'正高级职称'
|
440
|
480
|
];
|