新增用户推送

This commit is contained in:
sxu 2025-04-11 13:20:27 +08:00
parent f2c63d168a
commit ff812e298d
1 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,7 @@ import com.bonus.canteen.core.account.utils.AccRedisUtils;
import com.bonus.canteen.core.common.utils.MqUtil;
import com.bonus.canteen.core.pay.constants.PayChannelEnum;
import com.bonus.canteen.core.pay.constants.PayTypeEnum;
import com.bonus.canteen.core.user.domain.DeviceMqPersonalUpdateMessageDTO;
import com.bonus.common.core.exception.ServiceException;
import com.bonus.common.core.utils.DateUtils;
import com.bonus.common.houqin.constant.LeCodeUseSceneEnum;
@ -184,6 +185,8 @@ public class AccInfoServiceImpl implements IAccInfoService {
Long userId = users.get(i).getUserId();
accWalletInfoService.deleteAccWalletInfoByUserId(userId);
MqUtil.sendDataChange(userId, LeMqConstant.DataChangeType.REMOVE, LeMqConstant.Topic.DATA_CHANGE_CUSTOMER);
DeviceMqPersonalUpdateMessageDTO bean = new DeviceMqPersonalUpdateMessageDTO().setUpdatePersonPhoto(Math.toIntExact(userId));
MqUtil.pushToTenantAllDevice(bean, LeMqConstant.Topic.DEVICE_UPDATE_PERSONAL_CONFIG_V4);
count += accInfoMapper.deleteAccInfoByUserId(userId);
}
return count;
@ -210,6 +213,8 @@ public class AccInfoServiceImpl implements IAccInfoService {
}
MqUtil.sendDataChange(sysUser.getUserId(), LeMqConstant.DataChangeType.ADD, LeMqConstant.Topic.DATA_CHANGE_CUSTOMER);
DeviceMqPersonalUpdateMessageDTO bean = new DeviceMqPersonalUpdateMessageDTO().setUpdatePersonPhoto(Math.toIntExact(sysUser.getUserId()));
MqUtil.pushToTenantAllDevice(bean, LeMqConstant.Topic.DEVICE_UPDATE_PERSONAL_CONFIG_V4);
return this.accWalletInfoService.batchInsertAccWalletInfo(accWalletInfos);
}