Commit 47fe0858 authored by hujun's avatar hujun

status

parent 5595b8f1
......@@ -40,18 +40,13 @@ class ApplyForCost extends Basic
$is_check = 0;
switch ($this->params['type']) {
case 1 :
$is_ok = $check_rule->checkRule($this->agentId, 'broker/costListStore');
$is_ok = $check_rule->checkRule($this->agentId, 'broker/costListDistrict');
if ($is_ok) {
$is_check = 1;
}
$where['a.status'] = 0;
$where['a.agent_id'] = $this->agentId;break;//店长查看提交
$where[] = ['EXP', 'b.store_id = '.$agent_data['store_id']. ' or b.district_id ='.$agent_data['district_id']];break;
case 2 :
$is_ok = $check_rule->checkRule($this->agentId, 'broker/costListDistrict');
if ($is_ok) {
$is_check = 1;
}
//总监权限查看
$where['a.status'] = 1;
$where[] = ['EXP', 'b.store_id = '.$agent_data['store_id']. ' or b.district_id ='.$agent_data['district_id']];break;
......
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