|
@@ -66,9 +66,24 @@ class Report extends BaseController
|
|
|
*
|
|
|
* @return \think\Response
|
|
|
*/
|
|
|
- public function create()
|
|
|
+ public function info()
|
|
|
{
|
|
|
- //
|
|
|
+ $id = isset($this->post['id'])&&$this->post['id']!=""?intval($this->post['id']) :"";
|
|
|
+ if($id==''){
|
|
|
+ return error_show(1004,"参数 id 不能为空");
|
|
|
+ }
|
|
|
+ $report =Db::name("report_code")->where(["id"=>$id])->find();
|
|
|
+ if($report==false){
|
|
|
+ return error_show(1004,"未找到报表数据");
|
|
|
+ }
|
|
|
+ $report['DzNo'] =$report['DzNo']==""?[]:explode(",",$report['DzNo']);
|
|
|
+ $report['hpNo'] =$report['hpNo']==""?[]:explode(",",$report['hpNo']);
|
|
|
+ $report['invNo'] =$report['invNo']==""?[]:explode(",",$report['invNo']);
|
|
|
+ $report['tradNo'] =$report['tradNo']==""?[]:explode(",",$report['tradNo']);
|
|
|
+ $report['logNo'] =$report['logNo']==""?[]:explode(",",$report['logNo']);
|
|
|
+ $report['returnInv'] =$report['returnInv']==""?[]:explode(",",$report['returnInv']);
|
|
|
+ $report['returnTrad'] =$report['returnTrad']==""?[]:explode(",",$report['returnTrad']);
|
|
|
+ return app_show(0,"获取成功",$report);
|
|
|
}
|
|
|
|
|
|
/**
|