|
@@ -129,13 +129,8 @@
|
|
|
select
|
|
|
a.*
|
|
|
from goods a
|
|
|
- where a.del=0 and a.status=true and a.promotion_group = 0
|
|
|
- and (
|
|
|
- (a.package_user_type=0 and exists (select 1 from goods_package_user_rela where user_id=#{userId}) )
|
|
|
- or a.package_user_type=1
|
|
|
- or (a.package_user_type=2 and #{userType}!='SERVICE')
|
|
|
- or (a.package_user_type=3 and #{userType}='SERVICE')
|
|
|
- )
|
|
|
+ where a.del=0 and a.status=true
|
|
|
+
|
|
|
<if test="keyword != null and keyword != ''">
|
|
|
and a.goods_name like concat('%',#{keyword},'%')
|
|
|
</if>
|