This commit is contained in:
gaochang
2023-12-28 09:32:38 +08:00
parent fa88f9a88a
commit e74207d372
4 changed files with 14 additions and 3 deletions

View File

@@ -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));
}

View File

@@ -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>