riku
2022-06-09 9867f6d5c5bccfe52b878c344c536905dd6b309e
src/main/kotlin/cn/flightfeather/supervision/lightshare/web/HazardousWasteController.kt
@@ -3,6 +3,7 @@
import cn.flightfeather.supervision.lightshare.service.HazardousWasteService
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import io.swagger.annotations.ApiParam
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestParam
@@ -15,12 +16,12 @@
    @ApiOperation(value = "获取用户所属企业的危废备案信息")
    @GetMapping("/file")
    fun getFile(@RequestParam("userId") userId: String) = hazardousWasteService.getFile(userId)
    fun getFile(@ApiParam(value = "用户id") @RequestParam("userId") userId: String) = hazardousWasteService.getFile(userId)
    @ApiOperation(value = "获取用户所属企业的危废处置记录")
    @GetMapping("/record")
    fun getRecord(
            @RequestParam("userId") userId: String,
            @RequestParam(value = "year", required = false) year: String?
        @ApiParam(value = "用户id") @RequestParam("userId") userId: String,
        @ApiParam(value = "年份") @RequestParam(value = "year", required = false) year: String?
    ) = hazardousWasteService.getRecord(userId, year)
}