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