Merge branch 'hcy_pcb_20181221-r' into development

parents 41f7d9a8 fd6cf622
Showing with 7 additions and 3 deletions
......@@ -113,10 +113,14 @@ class WebController extends Controller
//拼接采购信息
if ($purchase){
$purchase= objectToArray($purchase);
if ( $purchase['purchase_amount'] > 0 && $purchase['purchase_amount'] != $purchase['order_amount']){
$orderBase['tiaojia'] = "";
if($purchase['purchase_amount'] == 0){
$orderBase['tiaojia'] = "";
}else{
$orderBase['tiaojia'] = "否";
if ( $purchase['purchase_amount'] > 0 && $purchase['purchase_amount'] != $purchase['order_amount']){
$orderBase['tiaojia'] = "是";
}else{
$orderBase['tiaojia'] = "否";
}
}
$purchase['shipping_time'] = $purchase['shipping_time'] > 0 ? date('Y-m-d H:i:s',$purchase['shipping_time']) : "";
$purchase['finish_time'] = $purchase['finish_time'] > 0 ? date('Y-m-d H:i:s',$purchase['finish_time']) : "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment