| | |
| | | package cn.flightfeather.supervision.lightshare.web |
| | | |
| | | import cn.flightfeather.supervision.lightshare.service.LedgerService |
| | | import cn.flightfeather.supervision.lightshare.vo.CopyLedgerVo |
| | | import cn.flightfeather.supervision.lightshare.vo.LedgerCheckVo |
| | | import cn.flightfeather.supervision.lightshare.vo.LedgerVo |
| | | import io.swagger.annotations.Api |
| | | import io.swagger.annotations.ApiOperation |
| | |
| | | @ApiParam("用户id") @PathVariable userId: String, |
| | | @ApiParam(value = "台账子类型id, 如果不传,则默认根据场景类型获取所有台账", required = false) @RequestParam(value = "ledgerSubTypeId", required = false) ledgerSubTypeId: Int?, |
| | | @ApiParam("场景类型id") @RequestParam(value = "sceneType") sceneType: Int, |
| | | @ApiParam(value = "时间", example = "yyyy-MM-dd") @RequestParam(value = "time") time: String |
| | | @ApiParam(value = "时间", example = "yyyy-MM-dd") @RequestParam(value = "time", required = false) time: String? |
| | | ) = ledgerService.getLedgerDetail2(userId, ledgerSubTypeId, sceneType, time) |
| | | |
| | | @ApiOperation(value = "上传台账信息") |
| | |
| | | @ApiParam("台账信息json") @RequestParam("params") ledgerVoList: String, |
| | | @ApiParam("台账图片") @RequestPart("images") files:Array<MultipartFile> |
| | | ) = ledgerService.uploadLedger(userId, ledgerVoList, files) |
| | | |
| | | @ApiOperation("上传不涉及台账") |
| | | @PostMapping("/upload/noLedger") |
| | | fun uploadNoLedger( |
| | | @RequestParam("userId") userId: String, |
| | | @RequestParam("time") time: String, |
| | | @RequestParam(required = false) remark: String?, |
| | | @RequestBody ledgerIdList: List<Int> |
| | | ) = ledgerService.uploadNoLedger(userId, time, remark, ledgerIdList) |
| | | |
| | | @ApiOperation(value = "获取某个台账显示图标url") |
| | | @GetMapping("/{userId}/img") |
| | |
| | | @ApiParam("用户id") @PathVariable userId: String, |
| | | @ApiParam("台账类型id数组") @RequestParam("ledgerTypes") ledgerTypes: List<Int> |
| | | ) = ledgerService.getLedgerImgs(userId, ledgerTypes) |
| | | |
| | | @ApiOperation("复制场景的台账") |
| | | @PostMapping("/copy") |
| | | fun copyLedger( |
| | | @RequestParam("userId") userId: String, |
| | | @RequestParam("time") time: String, |
| | | @RequestBody copyLedgerList: List<CopyLedgerVo> |
| | | ) = ledgerService.copyLedger(userId, time, copyLedgerList) |
| | | |
| | | @ApiOperation("审核台账") |
| | | @PostMapping("/check") |
| | | fun checkLedger( |
| | | @RequestParam("verifierId") verifierId: String, |
| | | @RequestParam(value = "remark", required = false) remark: String?, |
| | | @RequestBody recordList: List<LedgerCheckVo> |
| | | ) = ledgerService.checkLedger(verifierId, remark, recordList) |
| | | } |