Your Name 2 years ago
parent
commit
f3c85dc9e2
1 changed files with 8 additions and 1 deletions
  1. 8 1
      tool/stats/lib/Manage.php

+ 8 - 1
tool/stats/lib/Manage.php

@@ -218,11 +218,18 @@ Class Manage
 		                    } else {
 		                    	$money = $v['refund_cash'];
 		                    }
+		                    $refund_cdate = '';
+		                    if ($v['shop_type'] == 1) {
+		                    	$refund = Dever::db('shop/sell_order_refund')->find(array('order_id'=>$v['id']));
+								if ($refund) {
+									$refund_cdate = date('Y-m-d H:i',$refund['cdate']);
+								}
+		                    }
 		                } else {
 		                	$refund_cdate = '';
 		                    $num = '0';
 		                    $refund_cash = '0';
-		                    $refund_status = '有退款';
+		                    $refund_status = '退款';
 		                }
 	                }