新增用户推送
This commit is contained in:
parent
f2c63d168a
commit
ff812e298d
|
|
@ -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.common.utils.MqUtil;
|
||||||
import com.bonus.canteen.core.pay.constants.PayChannelEnum;
|
import com.bonus.canteen.core.pay.constants.PayChannelEnum;
|
||||||
import com.bonus.canteen.core.pay.constants.PayTypeEnum;
|
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.exception.ServiceException;
|
||||||
import com.bonus.common.core.utils.DateUtils;
|
import com.bonus.common.core.utils.DateUtils;
|
||||||
import com.bonus.common.houqin.constant.LeCodeUseSceneEnum;
|
import com.bonus.common.houqin.constant.LeCodeUseSceneEnum;
|
||||||
|
|
@ -184,6 +185,8 @@ public class AccInfoServiceImpl implements IAccInfoService {
|
||||||
Long userId = users.get(i).getUserId();
|
Long userId = users.get(i).getUserId();
|
||||||
accWalletInfoService.deleteAccWalletInfoByUserId(userId);
|
accWalletInfoService.deleteAccWalletInfoByUserId(userId);
|
||||||
MqUtil.sendDataChange(userId, LeMqConstant.DataChangeType.REMOVE, LeMqConstant.Topic.DATA_CHANGE_CUSTOMER);
|
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);
|
count += accInfoMapper.deleteAccInfoByUserId(userId);
|
||||||
}
|
}
|
||||||
return count;
|
return count;
|
||||||
|
|
@ -210,6 +213,8 @@ public class AccInfoServiceImpl implements IAccInfoService {
|
||||||
}
|
}
|
||||||
|
|
||||||
MqUtil.sendDataChange(sysUser.getUserId(), LeMqConstant.DataChangeType.ADD, LeMqConstant.Topic.DATA_CHANGE_CUSTOMER);
|
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);
|
return this.accWalletInfoService.batchInsertAccWalletInfo(accWalletInfos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue