fix:铺位推送bug
This commit is contained in:
@@ -366,7 +366,7 @@
|
||||
b.mobile as mobile,
|
||||
b.investment_manager as investmentManager
|
||||
from xfsg_shop_info a left join xfsg_line_info b on a.line_id = b.id
|
||||
where a.deleted = 0 and a.development_manager = #{request.developmentManager} and shop_status in (0, 1)
|
||||
where a.deleted = 0 and a.development_manager = #{request.developmentManager} and shop_status in (0, 1) and point_id is null
|
||||
<if test="request.keyword != null and request.keyword!=''">
|
||||
and (b.username like concat('%', #{request.keyword}, '%') or b.mobile like concat('%', #{request.keyword}, '%'))
|
||||
</if>
|
||||
|
||||
@@ -661,7 +661,7 @@ public class PointServiceImpl implements PointService {
|
||||
if(CollectionUtils.isNotEmpty(recommendList)){
|
||||
throw new ServiceException(ErrorCodeEnum.ERROR_MESSAGE, "推送失败,铺位已被选");
|
||||
}
|
||||
List<Long> shopIds = recommendPointList.stream().filter(o -> PointRecommendStatusEnum.POINT_RECOMMEND_STATUS_1.getCode().equals(o.getStatus())).filter(o->request.getShopIds().contains(o.getLineId())).map(PointRecommendDO::getLineId).collect(Collectors.toList());
|
||||
List<Long> shopIds = recommendPointList.stream().filter(o -> PointRecommendStatusEnum.POINT_RECOMMEND_STATUS_1.getCode().equals(o.getStatus())).filter(o->request.getShopIds().contains(o.getShopId())).map(PointRecommendDO::getShopId).collect(Collectors.toList());
|
||||
if(CollectionUtils.isNotEmpty(shopIds)){
|
||||
shopIds.retainAll(request.getShopIds());
|
||||
if(CollectionUtils.isNotEmpty(shopIds)){
|
||||
|
||||
Reference in New Issue
Block a user