settter
parent
224e8247cd
commit
0ea8988cf5
|
@ -42,7 +42,7 @@ class Business extends Base
|
|||
$whereMap = [["a.state", "=", BusinessModel::state_on]];
|
||||
$orders = ['a.id' => 'desc'];
|
||||
if (!empty($keyword)) {
|
||||
$whereMap[] = ['b.nick_name|a.business_name', 'like', "%$keyword%"];
|
||||
$whereMap[] = ['b.nick_name|a.business_name|a.business_subtitle', 'like', "%$keyword%"];
|
||||
}
|
||||
//如果是渠道商或者工作人员 只查看自己的下级商家
|
||||
if(Member::is_agency($this->auth['roles'])){
|
||||
|
@ -142,7 +142,7 @@ class Business extends Base
|
|||
$whereMap = ["business_code" => $businessCode];
|
||||
|
||||
if (!empty($keyword)) {
|
||||
$whereMap[] = ['reason|business_name', 'like', "%$keyword%"];
|
||||
$whereMap[] = ['reason', 'like', "%$keyword%"];
|
||||
}
|
||||
|
||||
$list = $repo->businessDeductionList($whereMap, $page, $size, ["create_time" => "desc", "id" => "desc"]);
|
||||
|
|
|
@ -128,7 +128,7 @@ class BillRepository extends Repository
|
|||
$q->whereTime("a.update_time", ">=", $startTime);
|
||||
})
|
||||
->when(!empty($keyword), function ($q) use ($keyword) {
|
||||
$q->where("c.business_name|e.business_name", "like", "%$keyword%");
|
||||
$q->where("c.business_name", "like", "%$keyword%");
|
||||
})
|
||||
->when(!empty($endTime), function ($q) use ($endTime) {
|
||||
$q->whereTime("a.update_time", "<=", $endTime);
|
||||
|
|
|
@ -43,7 +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_consumer)
|
||||
->where("b.type","=",Account::type_business)
|
||||
->field(["a.code as business_code",
|
||||
"b.avatar_url",
|
||||
"b.nick_name as account_nick_name",
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
<div class="layui-inline">
|
||||
<label class="layui-form-label">关键词</label>
|
||||
<div class="layui-inline">
|
||||
<input type="text" name="keyword" class="layui-input">
|
||||
<input type="text" name="keyword" class="layui-input" placeholder="商家名称或者优惠券名称">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
<div class="layui-inline">
|
||||
<label class="layui-form-label">关键词</label>
|
||||
<div class="layui-inline">
|
||||
<input type="text" name="keyword" class="layui-input">
|
||||
<input type="text" name="keyword" class="layui-input" placeholder="商家名称,用户昵称,优惠券名称">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
<div class="layui-inline">
|
||||
<label class="layui-form-label">关键词</label>
|
||||
<div class="layui-inline">
|
||||
<input type="text" name="keyword" class="layui-input">
|
||||
<input type="text" name="keyword" class="layui-input" placeholder="商家名称">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">关键词</label>
|
||||
<div class="layui-inline">
|
||||
<input type="text" name="keyword" class="layui-input">
|
||||
<input type="text" name="keyword" class="layui-input" placeholder="优惠券名称">
|
||||
</div>
|
||||
|
||||
<div class="layui-inline">
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">关键词</label>
|
||||
<div class="layui-inline">
|
||||
<input type="text" name="keyword" class="layui-input">
|
||||
<input type="text" name="keyword" class="layui-input" placeholder="原因">
|
||||
</div>
|
||||
|
||||
<div class="layui-inline">
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">关键词</label>
|
||||
<div class="layui-inline">
|
||||
<input type="text" name="keyword" class="layui-input">
|
||||
<input type="text" name="keyword" class="layui-input" placeholder="订单号">
|
||||
</div>
|
||||
|
||||
<div class="layui-inline">
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">关键词</label>
|
||||
<div class="layui-inline">
|
||||
<input type="text" name="keyword" class="layui-input">
|
||||
<input type="text" name="keyword" class="layui-input" placeholder="用户昵称或者商家名称">
|
||||
</div>
|
||||
|
||||
<div class="layui-inline">
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">关键词</label>
|
||||
<div class="layui-inline">
|
||||
<input type="text" name="keyword" class="layui-input">
|
||||
<input type="text" name="keyword" class="layui-input" placeholder="商家名称或简称">
|
||||
</div>
|
||||
|
||||
<div class="layui-inline">
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
<div class="layui-inline">
|
||||
<label class="layui-form-label">关键词</label>
|
||||
<div class="layui-inline">
|
||||
<input type="text" name="keyword" class="layui-input">
|
||||
<input type="text" name="keyword" class="layui-input" placeholder="优惠券名称">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue