setter
parent
c1fad50fc1
commit
2d71d9e498
|
@ -74,7 +74,7 @@ class SpuRepository extends Repository
|
||||||
// $whereMap[] = ['is_activity', '=', Spu::COMMON_OFF];
|
// $whereMap[] = ['is_activity', '=', Spu::COMMON_OFF];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($params['saleable']) &&!empty( $params['saleable'])) {
|
if (isset($params['saleable']) && !empty( $params['saleable'])) {
|
||||||
$whereMap[] = ['saleable', '=', $params['saleable']];
|
$whereMap[] = ['saleable', '=', $params['saleable']];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<label class="layui-form-label">商品状态</label>
|
<label class="layui-form-label">商品状态</label>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
<select name="searchParams[saleable]">
|
<select name="saleable">
|
||||||
<option value=""></option>
|
<option value=""></option>
|
||||||
{foreach $statusList as $key => $val}
|
{foreach $statusList as $key => $val}
|
||||||
<option value="{$key ?? ''}">{$val ?? ''}</option>
|
<option value="{$key ?? ''}">{$val ?? ''}</option>
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
<div class="layui-inline layui-hide">
|
<div class="layui-inline layui-hide">
|
||||||
<label class="layui-form-label">商品属性</label>
|
<label class="layui-form-label">商品属性</label>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
<select name="searchParams[spu_type]">
|
<select name="spu_type">
|
||||||
<option value=""></option>
|
<option value=""></option>
|
||||||
{foreach $spuTypeList as $key => $val}
|
{foreach $spuTypeList as $key => $val}
|
||||||
<option value="{$key ?? ''}">{$val ?? ''}</option>
|
<option value="{$key ?? ''}">{$val ?? ''}</option>
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<label class="layui-form-label">商品关键词</label>
|
<label class="layui-form-label">商品关键词</label>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
<input class="layui-input" name="searchParams[keyword]" placeholder="支持模糊查询">
|
<input class="layui-input" name="keyword" placeholder="支持模糊查询">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue