获取营销推送任务用户列表失败 问题

This commit is contained in:
wangw 2025-10-16 09:18:35 +08:00
parent c3bc743f71
commit 5bd4fd8091
2 changed files with 4 additions and 6 deletions

View File

@ -43,7 +43,7 @@ public interface ShopUserMapper extends BaseMapper<ShopUser> {
* @param shopId 店铺ID
* @return 分页结果
*/
Page<ShopUser> selectPushEventUser(
List<ShopUser> selectPushEventUser(
@Param("mainShopId") Long mainShopId,
@Param("shopId") Long shopId,
SmsPushEventUser smsPushEventUser

View File

@ -102,11 +102,9 @@ public class AShopUserServiceImpl implements AShopUserService {
PageHelper.startPage(smsPushEventUser.getPage(), smsPushEventUser.getSize());
Long mainShopId = shopInfoService.getMainIdByShopId(smsPushEventUser.getShopId());
// 调用Mapper层查询
return shopUserMapper.selectPushEventUser(
mainShopId,
smsPushEventUser.getShopId(),
smsPushEventUser
);
List<ShopUser> shopUsers = shopUserMapper.selectPushEventUser(mainShopId,
smsPushEventUser.getShopId(), smsPushEventUser);
return PageUtil.convert(new PageInfo<>(shopUsers));
}catch (Exception e){
log.info("获取营销推送任务用户列表失败{},{}", smsPushEventUser, e.getMessage());
return new Page<>();