Changes
parent
6d28b654dd
commit
e0ec31c1bb
|
@ -112,4 +112,17 @@ public class RuleEditionController {
|
|||
eq(RuleEdition::getRuleId, id);
|
||||
}}));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/findByEditionId/{id}")
|
||||
@Operation(summary = "规则详细", description = "规则详细")
|
||||
public Result findByEditionId(@PathVariable("id") Long id) {
|
||||
return Result.success(ruleEditionService.list(new LambdaQueryWrapper<>() {{
|
||||
eq(RuleEdition::getId, id);
|
||||
}}));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.muyu.rule.service.impl;
|
||||
|
||||
import cn.hutool.core.util.DesensitizedUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
@ -54,6 +55,7 @@ public class RuleEditionServiceImpl extends ServiceImpl<RuleEditionMapper, RuleE
|
|||
}
|
||||
if (!SysRuleYesNo.isCode(ruleActivate)) {
|
||||
throw new ServiceException("设置违法");
|
||||
// DesensitizedUtil.desensitized()
|
||||
}
|
||||
LambdaUpdateWrapper<RuleEdition> updateWrapper = new LambdaUpdateWrapper<>();
|
||||
updateWrapper.eq(RuleEdition::getId, id);
|
||||
|
|
Loading…
Reference in New Issue