Files
OMS/app/ome/lib/exportextracolumn/gift/createtime.php
2025-12-28 23:13:25 +08:00

23 lines
754 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
class ome_exportextracolumn_gift_createtime extends ome_exportextracolumn_abstract implements ome_exportextracolumn_interface{
protected $__pkey = 'order_id';
protected $__extra_column = 'column_createtime';
public function associatedData($ids){
$mdl_ome_orders = app::get('ome')->model('orders');
$orderData = $mdl_ome_orders->getList("order_id,createtime",array("order_id"=>$ids));
$tmp_array = array();
foreach ($orderData as $key => $row){
$tmp_array[$row[$this->__pkey]] = date("Y-m-d H:i:s",$row["createtime"]);
}
return $tmp_array;
}
}