From 5027b947383a3ec988b432477e776864e4ecf4f5 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Wed, 22 Dec 2021 15:09:53 +0800 Subject: [PATCH] settter --- app/repository/BusinessRepository.php | 2 ++ public/static/manager/js/coupon/index.js | 2 +- view/manager/coupon/index.html | 6 +++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/repository/BusinessRepository.php b/app/repository/BusinessRepository.php index fe99e85..1ccabb2 100644 --- a/app/repository/BusinessRepository.php +++ b/app/repository/BusinessRepository.php @@ -3,6 +3,7 @@ namespace app\repository; use app\exception\RepositoryException; +use app\model\Account; use app\model\Business; use app\model\CouponMain; use app\model\Deduction; @@ -42,6 +43,7 @@ class BusinessRepository extends Repository $q = $this->model->alias("a") ->join("account b", "a.code = b.business_code") ->join("category c", "a.type = c.id","left") + ->where("b.type","=",Account::type_business) ->field(["a.code as business_code", "b.avatar_url", "b.nick_name as account_nick_name", diff --git a/public/static/manager/js/coupon/index.js b/public/static/manager/js/coupon/index.js index 200405d..197134a 100644 --- a/public/static/manager/js/coupon/index.js +++ b/public/static/manager/js/coupon/index.js @@ -63,7 +63,7 @@ layui.use(['laytpl', 'table', 'jquery', 'form', 'miniTab', 'xmSelect','laydate'] {field: 'deduction_money', title: '扣费'}, {field: 'start_time', title: '开始时间'}, {field: 'end_time', title: '结束时间'}, - {templet: '#row-on_shelf', title: '上架状态'}, + {templet: '#row-on_shelf', title: '上下架'}, {field: 'state_text', title: '状态'}, {field: 'create_time', title: '创建时间'}, {templet: '#row-operate', field: 'right', align: 'center', title: '操作'} diff --git a/view/manager/coupon/index.html b/view/manager/coupon/index.html index cfea550..90dec17 100644 --- a/view/manager/coupon/index.html +++ b/view/manager/coupon/index.html @@ -56,7 +56,7 @@
- +