|
|
@@ -640,6 +640,17 @@ class MachineProductionReport extends Api
|
|
|
if(!$this->request->isGet()){
|
|
|
$this->error('请求方式错误');
|
|
|
}
|
|
|
+ $req = $this->request->param();
|
|
|
+ if (!isset($req['sczl_jtbh'])){
|
|
|
+ $this->error('参数错误');
|
|
|
+ }
|
|
|
+ if(!empty($req['sczl_jtbh'])){
|
|
|
+ $row = db('dic_lzde')
|
|
|
+ ->field('sys_bh')
|
|
|
+ ->where('适用机型',$req['sczl_jtbh'])
|
|
|
+ ->find();
|
|
|
+ $this->success('成功',$row);
|
|
|
+ }
|
|
|
|
|
|
$row = db('dic_lzde')
|
|
|
->field('Key_, sys_bh, rtrim(sys_mc) as sys_mc')
|