update
This commit is contained in:
@@ -156,10 +156,11 @@ public class CheckRuleController extends BaseController {
|
||||
|
||||
|
||||
|
||||
@GetMapping("/listSourceIdBytable/{id}")
|
||||
public R listSourceIdBytable(@PathVariable String id) {
|
||||
@GetMapping("/listSourceIdBytable/{id}/ruleId/{ruleId}")
|
||||
public R listSourceIdBytable(@PathVariable String id,@PathVariable String ruleId) {
|
||||
QueryWrapper<CheckRuleEntity> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("rule_source_id",id);
|
||||
queryWrapper.eq("rule_item_id",ruleId);
|
||||
List<CheckRuleEntity> checkRuleList = checkRuleService.list(queryWrapper);
|
||||
return R.ok().setData(checkRuleMapper.toVO(checkRuleList));
|
||||
}
|
||||
|
||||
@@ -12,13 +12,14 @@
|
||||
<result column="method_name" property="methodName" />
|
||||
<result column="method_params" property="methodParams" />
|
||||
<result column="cron_expression" property="cronExpression" />
|
||||
<result column="after_date" property="afterDate" />
|
||||
</resultMap>
|
||||
|
||||
<!-- 通用查询结果列 -->
|
||||
<sql id="Base_Column_List">
|
||||
id,
|
||||
status,
|
||||
job_name, job_type, bean_name, method_name, method_params, cron_expression
|
||||
job_name, job_type, bean_name, method_name, method_params, cron_expression, after_date
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user