src/main/kotlin/cn/flightfeather/supervision/lightshare/web/EvaluationsubruleController.kt
@@ -32,12 +32,6 @@
    @DeleteMapping("/{id}")
    fun delete(@PathVariable id: String) = evaluationsubruleService.delete(id)
    @ApiOperation("根据评估总规则查询下属的子规则")
    @GetMapping("/byRule")
    fun getByBaseRule(
        @ApiParam("评估总规则主键id") @RequestParam id: String
    ) = resPack { evaluationsubruleService.findByRuleId(id) }
    @IgnoreResponseAdvice
    @ApiOperation("根据区县和场景类型查询评分子规则")
    @GetMapping("/search")
@@ -47,9 +41,16 @@
            @ApiParam(value = "评分表版本, 格式 yyyy-MM, 默认获取最新版本") @RequestParam("version") version: String?
    ) = evaluationsubruleService.search(districtCode, sceneTypeId, version)
    @ApiOperation("根据评估总规则查询下属的子规则")
    @GetMapping("/byRule")
    fun getByBaseRule(
        @ApiParam("评估总规则主键id") @RequestParam id: String
    ) = evaluationsubruleService.findByRuleId(id)
    @ApiOperation(value = "查找巡查任务自动评估的评分细节")
    @GetMapping("/score")
    fun getAutoScore(
        @ApiParam(value = "巡查任务id") @RequestParam subTaskId: String,
    ) = resPack { evaluationsubruleService.getAutoScore(subTaskId) }
    ) = evaluationsubruleService.getAutoScore(subTaskId)
}