作者 sgj

协议时间添加

@@ -865,7 +865,7 @@ class Index extends Api @@ -865,7 +865,7 @@ class Index extends Api
865 ->page($params['pages'], $params['rows']) 865 ->page($params['pages'], $params['rows'])
866 ->where('a.pay', 'NEQ', 0) 866 ->where('a.pay', 'NEQ', 0)
867 ->order('id desc') 867 ->order('id desc')
868 - ->field('a.id,a.OrderSn,a.UpMoney,a.Money,a.status,a.refind_status,s.CompanyName') 868 + ->field('a.id,a.OrderSn,a.UpMoney,a.Money,a.status,a.refind_status,s.CompanyName,a.createtime,a.EXP_time')
869 ->select(); 869 ->select();
870 $Count = Db::name('agreement') 870 $Count = Db::name('agreement')
871 ->alias('a') 871 ->alias('a')
@@ -889,6 +889,8 @@ class Index extends Api @@ -889,6 +889,8 @@ class Index extends Api
889 $List[$k]['status'] = $v['status']; 889 $List[$k]['status'] = $v['status'];
890 $List[$k]['refind_status'] = $v['refind_status']; 890 $List[$k]['refind_status'] = $v['refind_status'];
891 $List[$k]['CompanyName'] = $v['CompanyName']; 891 $List[$k]['CompanyName'] = $v['CompanyName'];
  892 + $List[$k]['create_time'] = date('Y-m-d H:i',$v['createtime']);
  893 + $List[$k]['EXP_time'] = date('Y-m-d H:i',$v['EXP_time']);
892 } 894 }
893 $data = [ 895 $data = [
894 'Count' => count($Count), 896 'Count' => count($Count),