|
@@ -1399,9 +1399,11 @@ class OrderInv extends BaseController{
|
|
|
$condition[]=["inv_number","=",$num];
|
|
|
$invNo = isset($this->post['invNo'])&&$this->post['invNo']!=''?trim($this->post['invNo']):"";
|
|
|
if($invNo!=='')$condition[]=["invNo","=",$invNo];
|
|
|
- $info =Db::name("invoice_ticket")->where($condition)->findOrEmpty();
|
|
|
+ $info =Db::name("invoice_ticket")->json(['item'])->where($condition)->findOrEmpty();
|
|
|
if(!empty($info)){
|
|
|
- $info['item']=json_decode($info['item'],true);
|
|
|
+ array_walk($info['item'],function (&$value){
|
|
|
+ $value['SL'] = ($value['SL']*100)."%";
|
|
|
+ });
|
|
|
}
|
|
|
return empty($info)?error_show(1005,"为找到数据"):app_show(0,"获取成功",$info);
|
|
|
}
|