|
|
|
@ -168,7 +168,7 @@ class PromoteLimitRuleController extends ThinkController
|
|
|
|
|
'op_type' => 2,
|
|
|
|
|
'key' => $id,
|
|
|
|
|
'op_name' => '删除会长推广限制',
|
|
|
|
|
'url' => U('PresidentDeposit/records', ['id' => $id]),
|
|
|
|
|
'url' => U('PresidentDeposit/delete', ['id' => $id]),
|
|
|
|
|
'menu' => '推广员-推广员管理-推广限制-删除推广限制'
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
@ -178,6 +178,31 @@ class PromoteLimitRuleController extends ThinkController
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function batchDelete()
|
|
|
|
|
{
|
|
|
|
|
$ids = I('ids', []);
|
|
|
|
|
if (count($ids) == 0) {
|
|
|
|
|
$this->ajaxReturn([
|
|
|
|
|
'status' => 0,
|
|
|
|
|
'message' => '无选中项'
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
M('promote_limit_rules', 'tab_')->where(['id' => ['in', $ids]])->delete();
|
|
|
|
|
|
|
|
|
|
addOperationLog([
|
|
|
|
|
'op_type' => 2,
|
|
|
|
|
'key' => implode(',', $ids),
|
|
|
|
|
'op_name' => '批量删除会长推广限制',
|
|
|
|
|
'url' => U('PresidentDeposit/batchDelete', ['ids' => implode(',', $ids)]),
|
|
|
|
|
'menu' => '推广员-推广员管理-推广限制-批量删除推广限制'
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
$this->ajaxReturn([
|
|
|
|
|
'status' => 1,
|
|
|
|
|
'message' => '删除成功'
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getPromotesByCompany()
|
|
|
|
|
{
|
|
|
|
|
$companyId = I('company_id', 0);
|
|
|
|
|