Skip to content

Commit

Permalink
[fix]: fix device event trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
lgt1126 committed Dec 20, 2021
1 parent fa2626b commit ccaf451
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public ResponseData deleteProductEventRule(@RequestBody @Validated(value = BaseE
ProductEventRelation productEventRelation = new QProductEventRelation().relationId.eq(eventRule.getDeviceId())
.eventRuleId.eq(eventRule.getEventRuleId()).findOne();

if (productEventRelation != null && productEventRelation.getInherit().equals(InheritStatus.YES.getCode())) {
if (productEventRelation != null && InheritStatus.YES.getCode().equals(productEventRelation.getInherit())) {
throw new ServiceException(BizExceptionEnum.EVENT_PRODUCT_CANNOT_DELETE);
}

Expand Down

0 comments on commit ccaf451

Please sign in to comment.