道路线索应急巡查系统服务后台
feiyu02
2025-09-30 84569abda51ecf6c5549dec4cadee8d043422379
src/main/kotlin/com/flightfeather/grid/web/ClueTaskController.kt
@@ -3,6 +3,7 @@
import com.flightfeather.grid.domain.ds1.entity.ClueTask
import com.flightfeather.grid.service.ClueTaskService
import com.flightfeather.grid.vo.ClueInternalTaskVo
import com.flightfeather.grid.vo.ClueTaskOptions
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import io.swagger.annotations.ApiParam
@@ -37,9 +38,29 @@
        @ApiParam("线索任务") @RequestBody clueTask: ClueTask,
    ) = resPack { clueTaskService.getClueTask(clueTask) }
    @ApiOperation("查询线索任务")
    @PostMapping("/search")
    fun searchClueTask(
        @RequestParam("page", required = false) page: Int?,
        @RequestParam("per_page", required = false) perPage: Int?,
        @ApiParam("线索任务查询条件") @RequestBody clueTaskOptions: ClueTaskOptions,
    ) = resPack { clueTaskService.searchClueTask(clueTaskOptions, page, perPage) }
    @ApiOperation("删除线索任务")
    @DeleteMapping("/delete")
    fun deleteClueTask(
        @ApiParam("线索任务") @RequestBody clueTask: ClueTask,
    ) = resPack { clueTaskService.deleteClueTask(clueTask) }
    @ApiOperation("查询线索任务完成情况统计")
    @PostMapping("/summary")
    fun getClueTaskSummary(
        @ApiParam("线索任务查询条件") @RequestBody clueTaskOptions: ClueTaskOptions,
    ) = resPack { clueTaskService.getClueTaskSummary(clueTaskOptions) }
    @ApiOperation("完成线索任务")
    @PostMapping("/finish")
    fun finishClueTask(
        @ApiParam("线索任务id") @RequestParam clueTaskId: String,
    ) = resPack { clueTaskService.finishClueTask(clueTaskId) }
}