| | |
| | | @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( |
| | |
| | | @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>() {}) |