|
|
|
@ -319,8 +319,14 @@ class StatementController extends ThinkController
|
|
|
|
|
"statement_info"=>json_encode($statement_info,JSON_UNESCAPED_UNICODE)
|
|
|
|
|
);
|
|
|
|
|
if($id == 0){
|
|
|
|
|
// var_dump(1);die();
|
|
|
|
|
addOperationLog(['op_type'=>0,'key'=>$company['partner'].getNowDate(),'op_name'=>'新增上游对账单','url'=>U('StatementMangement/lists'),'menu'=>'推广员-结算管理-结算单管理-新增上游对账单']);
|
|
|
|
|
|
|
|
|
|
$res = M("statement","tab_")->add($adddata);
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
addOperationLog(['op_type'=>1,'key'=>$company['partner'].getNowDate(),'op_name'=>'编辑上游对账单','url'=>U('StatementMangement/lists'),'menu'=>'推广员-结算管理-结算单管理-编辑上游对账单']);
|
|
|
|
|
|
|
|
|
|
$res = M("statement","tab_")->where("id = '{$id}'")->save($adddata);
|
|
|
|
|
}
|
|
|
|
|
if($res !== false){
|
|
|
|
|