|
@@ -36,12 +36,13 @@ class GoodOfflineLog extends Base
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- $count = Db::name('good_offline_log')->alias("a")->leftJoin("good_basic b","a.spuCode=b.spuCode")->where($where)->count('id');
|
|
|
+ $count = Db::name('good_offline_log')->alias("a")->leftJoin("good_basic b","a.spuCode=b.spuCode")->where
|
|
|
+ ($where)->count('a.id');
|
|
|
$list = Db::name('good_offline_log')->alias("a")
|
|
|
->field('a.id,a.spuCode,a.good_name,a.creater,a.addtime,a.createrid,b.companyNo,b.supplierNo')
|
|
|
->leftJoin("good_basic b","a.spuCode=b.spuCode")
|
|
|
->where($where)
|
|
|
- ->order('addtime', 'desc')
|
|
|
+ ->order('a.addtime', 'desc')
|
|
|
->page($param['page'], $param['size'])
|
|
|
// ->append(['is_allow_update'])
|
|
|
// ->withAttr('is_allow_update', function ($val, $data) use ($role) {
|