Commit a39b8ecb authored by hujun's avatar hujun

修改关联

parent ee77cc65
......@@ -408,7 +408,7 @@ class OMarchInModel extends Model
public function getMaxMarchInAgent($field, $where) {
return $this->alias('a')
->field($field)
->join('o_order b', 'a.id = b.f_id', 'left')
->join('o_order b', 'a.order_id = b.id', 'left')
->where($where)
->group('a.reception_id ')
->find();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment