feiyu02
9 天以前 85ef942e7195abeb71466b7159c3ee30161e1e54
src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt
@@ -92,6 +92,13 @@
        @RequestParam date: String,
    ): List<ProblemListVo> = problemlistService.getProblemByScene(sceneId, date)
    @GetMapping("/getBySceneMonth")
    fun getBySceneMonth(
        @RequestParam(value = "sceneId", required = true) sceneId: String,
        @RequestParam(required = false) year: Int?,
        @RequestParam(required = false) month: Int?,
    ) = problemlistService.getBySceneMonth(sceneId, year, month)
    @IgnoreResponseAdvice
    @GetMapping("/month_anlysis")
    fun getMonthProblemsById(
@@ -120,7 +127,7 @@
    @PostMapping("/updateProblem")
    fun updateProblem(
        @ApiParam("问题信息json") @RequestParam("problem") problem: String,
        @ApiParam("删除的问题图片id") @RequestParam("deleteImg") deleteImg: List<String>,
        @ApiParam("删除的问题图片id") @RequestParam("deleteImg", required = false) deleteImg: List<String>?,
        @ApiParam("问题图片") @RequestPart("images") images: Array<MultipartFile>,
    ): String {
        val problemVo = ObjectMapper().readValue(problem, object : TypeReference<ProblemListVo>() {})