Skip to content

Commit

Permalink
fix IT
Browse files Browse the repository at this point in the history
  • Loading branch information
saimu.msm committed Mar 27, 2024
1 parent 246a775 commit 010faee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class AlarmRuleFacadeImpl extends BaseFacade {
@PostMapping("/create")
@ResponseBody
@MonitorScopeAuth(targetType = AuthTargetType.TENANT, needPower = PowerConstants.EDIT)
public JsonResult<Long> save(@RequestBody AlarmRuleDTO alarmRuleDTO) {
public JsonResult<Long> create(@RequestBody AlarmRuleDTO alarmRuleDTO) {
final JsonResult<Long> result = new JsonResult<>();
facadeTemplate.manage(result, new ManageCallback() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ private boolean checkUniqueId(String uniqueId, String tenant, String workspace)
QueryWrapper<AlarmRule> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("rule_type", arr[0]);
queryWrapper.eq("id", Long.parseLong(arr[1]));
queryWrapper.eq("tenant", tenant);
queryWrapper.eq("workspace", workspace);
requestContextAdapter.queryWrapperTenantAdapt(queryWrapper, tenant, workspace);
List<AlarmRule> rules = this.alarmRuleMapper.selectList(queryWrapper);
if (CollectionUtils.isEmpty(rules)) {
return false;
Expand Down

0 comments on commit 010faee

Please sign in to comment.