| | |
| | | |
| | | @GetMapping("/record/all") |
| | | fun getRecord( |
| | | @RequestParam(value = "cityCode", required = false) cityCode: String?, |
| | | @RequestParam("districtCode") districtCode: String, |
| | | @RequestParam("page") page: Int, |
| | | @RequestParam("perPage") perPage: Int |
| | | @RequestParam(value = "cityCode", required = false) cityCode: String?, |
| | | @RequestParam("districtCode") districtCode: String, |
| | | @RequestParam("page") page: Int, |
| | | @RequestParam("perPage") perPage: Int, |
| | | ) = nightConstructionService.getRecord(cityCode, districtCode, page, perPage) |
| | | |
| | | @GetMapping("/record") |
| | | fun getNightWorkFile( |
| | | @RequestParam("userId") userId: String, |
| | | @RequestParam(value = "isRead", required = false) isRead: Boolean?, |
| | | @RequestParam("page") page: Int, |
| | | @RequestParam("perPage") perPage: Int |
| | | @RequestParam("userId") userId: String, |
| | | @RequestParam(value = "isRead", required = false) isRead: Boolean?, |
| | | @RequestParam("page") page: Int, |
| | | @RequestParam("perPage") perPage: Int, |
| | | ) = nightConstructionService.getNightWorkFile(userId, isRead, page, perPage) |
| | | |
| | | @PostMapping("/sign") |
| | | fun signFile( |
| | | @RequestParam("userId") userId: String, |
| | | @RequestParam("fileNum") fileNum: String, |
| | | @RequestParam("id") id: Int |
| | | @RequestParam("userId") userId: String, |
| | | @RequestParam("fileNum") fileNum: String, |
| | | @RequestParam("id") id: Int, |
| | | ) = nightConstructionService.signFile(userId, fileNum, id) |
| | | |
| | | @PostMapping("/record") |
| | |
| | | |
| | | @GetMapping("/summary") |
| | | fun getSummary( |
| | | @RequestParam(value = "cityCode", required = false) cityCode: String?, |
| | | @RequestParam("districtCode") districtCode: String |
| | | @RequestParam(value = "cityCode", required = false) cityCode: String?, |
| | | @RequestParam("districtCode") districtCode: String, |
| | | ) = nightConstructionService.getSummary(cityCode, districtCode) |
| | | } |