| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace app\admin\controller\informational;
- use app\common\model\ShopCategory;
- use app\admin\traits\Curd;
- use app\common\controller\AdminController;
- use EasyAdmin\annotation\ControllerAnnotation;
- use EasyAdmin\annotation\NodeAnotation;
- use think\App;
- use think\facade\Db;
- use think\Model;
- /**
- * (业务已取消)
- * Class Admin
- * @package app\admin\controller\system
- * @ControllerAnnotation(title="商品分类管理")
- */
- class CouponData extends AdminController
- {
- use Curd;
- public function __construct(App $app)
- {
- parent::__construct($app);
- $this->model = new ShopCategory();
- }
- public function index(){
- $score = Db::name('user')->where('id', 'not in', [7493267, 7493266])->where('user_type', 'not in', [4])->sum('score');
- $this->assign('score', $score);
- $chizi = Db::name('coupon_plan_log')->where('state', 1)->where('uid', 'not in', [7493267,7493266])->sum('buy_num');
- $this->assign('chizi', $chizi);
- return $this->fetch();
- }
- }
|