fix bug: EntityView, otaPackage
This commit is contained in:
parent
3d3d29e905
commit
d80452ef40
@ -147,7 +147,8 @@ public class DefaultTbEntityViewService extends AbstractTbEntityService implemen
|
||||
try {
|
||||
EntityView savedEntityView = checkNotNull(entityViewService.assignEntityViewToCustomer(tenantId, entityViewId, customerId));
|
||||
notificationEntityService.notifyAssignOrUnassignEntityToCustomer(tenantId, entityViewId, customerId, savedEntityView,
|
||||
actionType, edgeTypeByActionType(actionType), user, true, customerId.toString(), customer.getName());
|
||||
actionType, edgeTypeByActionType(actionType), user, true, entityViewId.toString(), customerId.toString(),
|
||||
customer.getName());
|
||||
return savedEntityView;
|
||||
} catch (Exception e) {
|
||||
notificationEntityService.notifyEntity(tenantId, emptyId(EntityType.ENTITY_VIEW), null, null,
|
||||
|
||||
@ -63,8 +63,6 @@ public class DefaultTbOtaPackageService extends AbstractTbEntityService implemen
|
||||
OtaPackageId otaPackageId = otaPackageInfo.getId();
|
||||
try {
|
||||
otaPackageService.deleteOtaPackage(tenantId, otaPackageId);
|
||||
// notificationEntityService.notifyEntity(tenantId, otaPackageId, otaPackageInfo, null,
|
||||
// ActionType.DELETED, user, null, otaPackageInfo.getId().toString());
|
||||
|
||||
notificationEntityService.notifyCreateOrUpdateOrDelete(tenantId, null, otaPackageId, otaPackageInfo,
|
||||
user, ActionType.DELETED, true, null, otaPackageInfo.getId().toString());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user