## Opt - 分享商品列表 增加查询条件(商品名/商品类别)
This commit is contained in:
parent
429b6b5ff1
commit
662c99207e
|
@ -1,6 +1,7 @@
|
|||
package com.hzs.member.base.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.lang.Validator;
|
||||
import cn.hutool.core.lang.tree.Tree;
|
||||
|
@ -2464,6 +2465,9 @@ public class CuMemberServiceImpl extends ServiceImpl<CuMemberMapper, CuMember> i
|
|||
Set<Long> pkMemberList = new HashSet<>();
|
||||
|
||||
for (ShowWaresDTO showWaresDTO : showWaresDTOS) {
|
||||
if(CollUtil.isEmpty(showWaresDTO.getWaresAuthorityList())){
|
||||
continue;
|
||||
}
|
||||
for (BdWaresAuthority bw : showWaresDTO.getWaresAuthorityList()) {
|
||||
if (bw.getAuthorityType() == EWaresPermissionType.BLOOD_ALLOW.getValue() || bw.getAuthorityType() == EWaresPermissionType.BLOOD_STOP.getValue()) {
|
||||
// 血缘关系
|
||||
|
@ -2501,6 +2505,9 @@ public class CuMemberServiceImpl extends ServiceImpl<CuMemberMapper, CuMember> i
|
|||
}
|
||||
|
||||
for (ShowWaresDTO showWaresDTO : showWaresDTOS) {
|
||||
if(CollUtil.isEmpty(showWaresDTO.getWaresAuthorityList())){
|
||||
continue;
|
||||
}
|
||||
boolean isShowWares = true;
|
||||
for (BdWaresAuthority bdWaresAuthority : showWaresDTO.getWaresAuthorityList()) {
|
||||
if (bdWaresAuthority.getAuthorityType() == EWaresPermissionType.BLOOD_ALLOW.getValue()) {
|
||||
|
|
|
@ -505,6 +505,13 @@
|
|||
inner join bd_wares_extend be
|
||||
on bw.pk_id = be.pk_wares
|
||||
left join BD_AREA_CLASSIFY bac on bac.pk_id = bw.PK_AREA_CLASSIFY
|
||||
<if test="param.pkAreaClassify != null">
|
||||
right join (select pk_id
|
||||
from BD_AREA_CLASSIFY cm
|
||||
start with cm.pk_id = #{param.pkAreaClassify}
|
||||
connect by prior cm.pk_id = cm.pk_parent
|
||||
order by level) te on te.pk_id = bw.PK_AREA_CLASSIFY
|
||||
</if>
|
||||
where bw.del_flag = 0
|
||||
and be.del_flag = 0
|
||||
and be.is_put_on = 0
|
||||
|
@ -519,9 +526,6 @@
|
|||
<if test="param.pkCountry != null">
|
||||
and bw.pk_country = #{param.pkCountry}
|
||||
</if>
|
||||
<if test="param.pkAreaClassify != null">
|
||||
and bw.PK_AREA_CLASSIFY = #{param.pkAreaClassify} or bac.pk_parent = #{param.pkAreaClassify}
|
||||
</if>
|
||||
<if test="param.waresName != null and param.waresName != ''">
|
||||
and bw.WARES_NAME = '%' || #{param.waresName} || '%'
|
||||
</if>
|
||||
|
|
Loading…
Reference in New Issue