diff --git a/plugs/think-plugs-points-mall/src/controller/PointLog.php b/plugs/think-plugs-points-mall/src/controller/PointLog.php new file mode 100644 index 0000000..396495e --- /dev/null +++ b/plugs/think-plugs-points-mall/src/controller/PointLog.php @@ -0,0 +1,20 @@ +title = '积分记录'; + PointsMallUserPointLog::mQuery()->layTable(function () { + }, static function (QueryHelper $query) { + $query->with('user'); + $query->dateBetween('create_at'); + }); + } +} \ No newline at end of file diff --git a/plugs/think-plugs-points-mall/src/model/PointsMallUserPointLog.php b/plugs/think-plugs-points-mall/src/model/PointsMallUserPointLog.php index b61b271..765502e 100644 --- a/plugs/think-plugs-points-mall/src/model/PointsMallUserPointLog.php +++ b/plugs/think-plugs-points-mall/src/model/PointsMallUserPointLog.php @@ -2,9 +2,15 @@ namespace plugin\points_mall\model; +use plugin\account\model\PluginAccountBind; use think\admin\Model; class PointsMallUserPointLog extends Model { protected $pk = 'uid'; + + public function user() + { + return $this->belongsTo(PluginAccountBind::class, 'uid'); + } } \ No newline at end of file diff --git a/plugs/think-plugs-points-mall/src/view/point/index_search.html b/plugs/think-plugs-points-mall/src/view/point/index_search.html index bc5a08c..28b4b6c 100644 --- a/plugs/think-plugs-points-mall/src/view/point/index_search.html +++ b/plugs/think-plugs-points-mall/src/view/point/index_search.html @@ -1,13 +1,6 @@
条件搜索