注释多余mq推送
This commit is contained in:
parent
690613e494
commit
b0aba784e1
|
|
@ -184,7 +184,7 @@ public class AccInfoServiceImpl implements IAccInfoService {
|
||||||
for (int i = 0; i < users.size(); i++) {
|
for (int i = 0; i < users.size(); i++) {
|
||||||
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().setUpdatePerson(Math.toIntExact(userId),"del");
|
DeviceMqPersonalUpdateMessageDTO bean = new DeviceMqPersonalUpdateMessageDTO().setUpdatePerson(Math.toIntExact(userId),"del");
|
||||||
MqUtil.pushToTenantAllDevice(bean, LeMqConstant.Topic.DEVICE_UPDATE_PERSONAL_CONFIG_V4);
|
MqUtil.pushToTenantAllDevice(bean, LeMqConstant.Topic.DEVICE_UPDATE_PERSONAL_CONFIG_V4);
|
||||||
count += accInfoMapper.deleteAccInfoByUserId(userId);
|
count += accInfoMapper.deleteAccInfoByUserId(userId);
|
||||||
|
|
@ -212,7 +212,7 @@ public class AccInfoServiceImpl implements IAccInfoService {
|
||||||
accWalletInfos.add(accWalletInfo);
|
accWalletInfos.add(accWalletInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
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().setUpdatePerson(Math.toIntExact(sysUser.getUserId()),"update");
|
DeviceMqPersonalUpdateMessageDTO bean = new DeviceMqPersonalUpdateMessageDTO().setUpdatePerson(Math.toIntExact(sysUser.getUserId()),"update");
|
||||||
MqUtil.pushToTenantAllDevice(bean, LeMqConstant.Topic.DEVICE_UPDATE_PERSONAL_CONFIG_V4);
|
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