Commit 22020d8f authored by hujun's avatar hujun

rule

parent ae065bbc
......@@ -38,15 +38,9 @@ class ApplyForCost extends Basic
$agent_data = $redis->getRedisCache(2, $this->agentId);
$check_rule = new VipService();
$is_check = 0;
switch ($this->params['type']) {
case 1 :
$is_ok = $check_rule->checkRule($this->agentId, 'broker/costListDistrict');
if ($is_ok) {
$is_check = 0;
} else {
$is_check = 1;
}
$check_url = 'index/checkCostTwo';
$where['a.status'] = 0;
$m_agent = new AAgents();
......@@ -59,6 +53,8 @@ class ApplyForCost extends Basic
}
break;
case 2 :
$check_url = 'index/checkCostThree';
//总监权限查看
$where['a.status'] = 1;
$m_agent = new AAgents();
......@@ -71,8 +67,10 @@ class ApplyForCost extends Basic
}
break;
case 3 :
$check_url = 'index/checkCostFour';
$where['a.status'] = 2;break; //财务一审
case 4 :
$check_url = 'index/checkCostFive';
$where['a.status'] = 3;break; //财务二审
case 5 :
$where['a.status'] = 4;break; //财务三审
......@@ -80,6 +78,13 @@ class ApplyForCost extends Basic
return $this->response(101, '请求错误');
}
$is_ok = $check_rule->checkRule($this->agentId, $check_url);
if ($is_ok) {
$is_check = 0;
} else {
$is_check = 1;
}
$field = 'a.id,a.count_time,a.source,a.type,a.create_time,a.agent_id,a.total_fee,a.fee_item,a.purpose,';
$field .= 'b.name as agent_name,a.card_name,a.bank,a.card_no,a.source,a.store_id,a.status';
$fee_model = new FApplyForFee();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment