TP5的模型关联条件查询问题

浏览:4761 发布日期:2017/07/07 分类:求助交流 关键字: TP5 模型关联 查询
一个订单表order 一个接单表receive_order, 使用一对一模型关联 在订单模型中关联接单模型 现在想要筛选过了掉已经接单的订单数据,只保留未接单的数据,怎么样筛选,数据如下 根据r_order 中的字段进行筛选 ["total"] => int(930)
  ["per_page"] => int(10)
  ["current_page"] => string(1) "1"
  ["last_page"] => int(93)
  ["data"] => array(10) {
    [0] => array(39) {
      
      ["orderid"] => string(25) "1707016516649388801441161"
      ["userid"] => int(417)
    
      ["orderstatus"] => int(2)
      ["ordertype"] => string(6) "实时"
     
      ["r_order"] => array(12) {
        ["id"] => int(581)
        ["orderid"] => string(25) "1707016516649388801441161"
        ["courierid"] => int(233)
        ["receive_status"] => int(7)
        ["receive_date"] => string(19) "2017-07-01 14:41:33"
        ["courier_profit"] => string(5) "12.80"
        ["end_date"] => string(19) "2017-07-01 15:33:24"
       
      }
    }
最佳答案
评论( 相关
后面还有条评论,点击查看>>