aa
This commit is contained in:
parent
18d6dfee06
commit
e3519fb693
@ -80,13 +80,13 @@ class LogisticsController extends BaseApiController
|
||||
}
|
||||
)->toArray();
|
||||
$item['product_count'] = count( $item['products']);
|
||||
if($item['status'] == 3){
|
||||
$records = Db::name('logistics_record')->field('status,create_time')->where('lst_id', $item['id'])->order('create_time asc')->select()->toArray();
|
||||
foreach($records as $k=>$v){
|
||||
if($v['status'] == 1) $item['qh_time'] = date('Y-m-d H:i:s', $v['create_time']);
|
||||
if($v['status'] == 2) $item['pc_time'] = date('Y-m-d H:i:s', $v['create_time']);
|
||||
if($v['status'] == 3) $item['sh_time'] = date('Y-m-d H:i:s', $v['create_time']);
|
||||
}
|
||||
$records = Db::name('logistics_record')->field('status,create_time')->where('lst_id', $item['id'])->order('create_time asc')->select()->toArray();
|
||||
foreach($records as $k=>$v){
|
||||
if($v['status'] == 0) $item['xd_time'] = date('Y-m-d H:i:s', $v['create_time']);
|
||||
if($v['status'] == 1) $item['qh_time'] = date('Y-m-d H:i:s', $v['create_time']);
|
||||
if($v['status'] == 2) $item['pc_time'] = date('Y-m-d H:i:s', $v['create_time']);
|
||||
if($v['status'] == 3) $item['sh_time'] = date('Y-m-d H:i:s', $v['create_time']);
|
||||
if($v['status'] == 4) $item['qx_time'] = date('Y-m-d H:i:s', $v['create_time']);
|
||||
}
|
||||
return $item;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user