|
|
@ -230,13 +230,12 @@ class StatementMangementController extends ThinkController
|
|
|
|
if (!$id) {
|
|
|
|
if (!$id) {
|
|
|
|
$this->ajaxReturn(['code'=>2000,'error'=>'no']);
|
|
|
|
$this->ajaxReturn(['code'=>2000,'error'=>'no']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$statementData = M('statement','tab_')->where(['id'=>$id])->find();
|
|
|
|
|
|
|
|
|
|
|
|
$is_del = M('statement','tab_')->where(['id'=>$id])->delete();
|
|
|
|
$is_del = M('statement','tab_')->where(['id'=>$id])->delete();
|
|
|
|
|
|
|
|
|
|
|
|
if ($is_del) {
|
|
|
|
if ($is_del) {
|
|
|
|
|
|
|
|
|
|
|
|
$statementData = M('statement','tab_')->where(['id'=>$id])->find();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addOperationLog(['op_type'=>2,'key'=>$statementData['company_name'].'/'.date('YmdHis',$statementData['statement_begin_time']).'/'.date('YmdHis',$statementData['statement_end_time']),'op_name'=>'删除下游对账单','url'=>U('StatementMangement/lists'),'menu'=>'推广员-结算管理-结算单管理-删除下游对账单']);
|
|
|
|
addOperationLog(['op_type'=>2,'key'=>$statementData['company_name'].'/'.date('YmdHis',$statementData['statement_begin_time']).'/'.date('YmdHis',$statementData['statement_end_time']),'op_name'=>'删除下游对账单','url'=>U('StatementMangement/lists'),'menu'=>'推广员-结算管理-结算单管理-删除下游对账单']);
|
|
|
|
|
|
|
|
|
|
|
|
$this->ajaxReturn(['code'=>0,'success'=>'ok']);
|
|
|
|
$this->ajaxReturn(['code'=>0,'success'=>'ok']);
|
|
|
|