find(); //var_dump($row_t); $str_no_err = []; ?> {eyou:sql sql="$sql" cachetime='3600' empty='' id="field"} {/eyou:sql} {eyou:if condition='(!empty($is_list_empty))'} {eyou:volist name='$list_data' id='field'}
字段信息 | 实际要求 | 填写资料 | 匹配结果 |
---|---|---|---|
学历 | 符合"; echo '√'; $num++; }else{ echo 'x'; //echo "不符合"; $str_no_err[$field['id']][$field2['id']]['xlyq'] = '学历不符'; } ?> | ||
年龄 | {$detail.nl}岁 | √'; $num++; }else{ if((int)$detail['nl'] <= (int)$field2['ega_1'] && (int)$detail['nl'] >= (int)$field2['ega_0']){ //echo "符合"; echo '√'; $num++; }else{ echo 'x'; //echo "不符合"; $str_no_err[$field['id']][$field2['id']]['nl'] = '年龄不符'; } } ?> | |
毕业专业 |
{eyou:if condition='((int)$field2.byzy === 0)'}
不限制
{eyou:else /}
$v){
if((int)$v > 0) {
$zhengshu2_str .= ',' . $v;
}
}
$sql3 = "select id,title from ey_zczy_position where id IN(".$zhengshu2_str.") and is_del=0 and status=1";
?>
{eyou:if condition='($zhengshu2_str != "0")'}
{eyou:sql sql="$sql3" cachetime='3600' empty='' id="field3"}
{$field3.title} {/eyou:sql} {eyou:else /} 不限制 {/eyou:if} {/eyou:if} |
$v){
if ((int)$v > 0) {
$zhengshu_str .= ',' . $v;
}
}
$sql3 = "select id,title from ey_zczy_position where id IN(".$zhengshu_str.") and is_del=0 and status=1";
?>
{eyou:if condition='($zhengshu_str != "0")'}
{eyou:sql sql="$sql3" cachetime='3600' empty='' id="field3"}
{$field3.title} {/eyou:sql} {eyou:else /} 无 {/eyou:if} |
符合";
echo '√';
$num++;
}else{
if(empty($zhengshu)){
echo 'x';
//echo "不符合";
$str_no_err[$field['id']][$field2['id']]['byzy'] = '专业不符';
}else{
//$run = "不符合";
$run = 'x';
$str_no_err[$field['id']][$field2['id']]['byzy'] = '专业不符';
$ik = 1;
foreach ($zhengshu as $k => $v){
if(in_array($v,$zhengshu2)){
//$run = '符合 '.$ik.'项'; //$run = '符合 '; $run = '√'; $str_no_err[$field['id']][$field2['id']]['byzy'] = ''; $ik++; } } echo $run; if($ik>1){ $num++; //符合+1 } } } ?> |
学校类型 | {eyou:if condition='((int)$field2.xxlx === 0)'} 不限制 {eyou:else /} {/eyou:if} | {eyou:if condition='((int)$detail.xxlx === 1)'} 全日制 {eyou:else /} 非全日制 {/eyou:if} | {eyou:if condition='((int)$field2.xxlx === 0)'} √'; $num++; ?> {eyou:else /} 符合"; echo '√'; $num++; }else{ //echo "不符合"; echo 'x'; $str_no_err[$field['id']][$field2['id']]['xxlx'] = '学校类型不符'; } ?> {/eyou:if} |
毕业时间 | {eyou:if condition='((int)$field2.bysj === 0)'} 不要求 {eyou:else /} 要求>={$field2.bysj_time}年 {/eyou:if} | y . ' years'; if($interval->y > 0){ echo '已毕业'.$interval->y . '年'; }else{ echo '刚毕业不足1年'; } ?> | 符合"; echo '√'; $num++; }else{ if((int)$field2['bysj_time'] <= $interval->y){ //echo "符合"; echo '√'; $num++; }else{ //echo "不符合"; echo 'x'; $str_no_err[$field['id']][$field2['id']]['bysj'] = '毕业时间不符'; } } ?> |
前置证书 |
{eyou:sql sql="$sql5" cachetime='3600' empty='不限制' id="field3"}
1){
echo "或 "; } ?> $zhengshu3, 'b' => $sjnx ]; //var_dump($sjnx); $zhengshu3_str = '0'; foreach ($zhengshu3 as $k => $v){ if((int)$v > 0) { $zhengshu3_str .= ',' . $v; } } $sql3 = "select id,title from ey_zczs_position where id IN(".$zhengshu3_str.") and is_del=0 and status=1"; ?> {eyou:if condition='($zhengshu3_str != "0")'} {eyou:sql sql="$sql3" cachetime='3600' empty='' id="field4"} {$field4.title} (需要{$year_s}年) {/eyou:sql} {eyou:else /} {/eyou:if} {/eyou:sql} |
$v){
if((int)$v > 0){
$zhengshu_str .= ','.$v;
}
}
$sql3 = "select id,title from ey_zczs_position where id IN(".$zhengshu_str.") and is_del=0 and status=1";
?>
{eyou:if condition='($zhengshu_str != "0")'}
{eyou:sql sql="$sql3" cachetime='3600' empty='' id="field3"}
{$field3.title} (拥有{$year_s}年) {/eyou:sql} {eyou:else /} 无 {/eyou:if} |
符合";
echo '√';
$num++;
}else{
if(empty($zhengshu)){
//用户没有证书
//echo "不符合";
echo 'x';
$str_no_err[$field['id']][$field2['id']]['xxlx'] = '未拥有证书';
}else{
//判断是否包含
//第一轮 循环 或
$ik = 1;
$ik2 = 1;
$ik3 = 1;
foreach ($zs_all as $k => $v){
if($k > 0){
//echo "或 "; } //第二轮 循环 且 //var_dump($v['a']); $ik4 = 0; //真实有效数量 foreach ($v['a'] as $k2 => $v2){ //var_dump($v2); //var_dump($zhengshu); //第三轮 循环 每一项要求是否在 用户拥有的证书 里面 //必须完全满足 $run_1 = ''; $run_2 = ''; $run_3 = ''; if((int)$v2 > 0) { if (in_array($v2, $zhengshu)) { //判断年限是否符合要求 $key_i = array_search($v2, $zhengshu); //var_dump($zsnx[$key_i]); if ((int)$zsnx[$key_i] >= (int)$v['b'][$k2]) { $run_1 = '符合 ' . $ik . '项'; $ik++; } else { $run_2 = '年限不符合 ' . $ik2 . '项'; $ik2++; } } else { $run_3 = '未拥有 ' . $ik3 . '项'; $ik3++; } $ik4++; } //具体情况 循环且 //if(!empty($run_1)) echo $run_1.' '; //if(!empty($run_2)) echo $run_2.' '; //if(!empty($run_3)) echo $run_3.' '; } ////echo count($v['a']); //var_dump($ik); //var_dump(count($v['a'])); if(($ik-1) === $ik4){ ////echo "符合1"; //$res = "符合"; $res = '√'; $num++; //跳出循环 已经符合其中 一个 且了 break; }else{ ////echo "不符合2"; //$res = "不符合"; $res = 'x'; $str_no_err[$field['id']][$field2['id']]['xxlx'] = '证书要求不符'; } } echo $res; } } ?> |
综合评估 |
= 6){
//多次循环可能大于6
echo "完全符合要求!";
if(!empty($bname)){
$bname_str = '/'.$bname;
}
$result_map .= $aname.$bname_str.'地区 '; $str_no_err[$field['id']][$field2['id']]['zhpg'] = 2; $str_no_err[$field['id']][$field2['id']]['diqu'] = $aname.'/'.$bname_str; }else if($num === 0){ echo "完全不符合要求!"; $str_no_err[$field['id']][$field2['id']]['zhpg'] = 0; }else{ echo "未完全符合要求!"; $str_no_err[$field['id']][$field2['id']]['zhpg'] = 1; } $num = 0; ?> |