|
|
@@ -18,7 +18,9 @@ class OrderEffectiveLogLists extends BaseApiDataLists
|
|
|
|
|
|
public function lists():array
|
|
|
{
|
|
|
- return OrderEffectiveLog::where($this->queryWhere())
|
|
|
+ return OrderEffectiveLog::with(['goods'=>function ($query) {
|
|
|
+ $query->field(['id','goods_name','goods_image']);
|
|
|
+ }])->where($this->queryWhere())
|
|
|
->limit($this->limitOffset, $this->limitLength)
|
|
|
->field(['id','goods_id','sn','effective_unit','effective_num','remark','end_effective_time'])
|
|
|
->append(['effective_unit_text'])
|