| | |
| | | } |
| | | |
| | | /** |
| | | * 更新临时表中 |
| | | * 提交放电计划临时表,更新临时表参数; |
| | | * 同时,自动提交给包含的班组的组长会签 |
| | | * @return |
| | | * @throws ParseException |
| | | */ |
| | | @ApiOperation(value="确定|更新放电计划临时表",notes = "数组内只需要传id,dischargeStartTime") |
| | | @PutMapping("list") |
| | | public Response updateList(@RequestBody List<BattDischargePlanTemp> list) { |
| | | return service.updateList(list); |
| | | @PutMapping("listAndSubmit") |
| | | public Response updateListAndSubmit(@RequestBody List<BattDischargePlanTemp> list,@RequestParam String taskDesc) { |
| | | return service.updateListAndSubmit(list,taskDesc); |
| | | } |
| | | |
| | | /** |
| | | * 临时表中计划经过审核后,提交到正式的放电计划表中 |
| | | * 临时表中计划经过审核后,提交到正式的放电计划表中 已被弃用,新的审核流程更严格 {@link com.whyc.controller.WorkflowMainController} |
| | | * @param tempList 临时表中的计划 |
| | | * @return |
| | | * @throws ParseException |
| | | */ |
| | | @ApiOperation(value = "审核放电计划",notes = "approveStatus 1:审核通过,-1:审核拒绝") |
| | | @PutMapping("approveDischargePlan") |
| | | public Response updateApproveDischargePlan(@RequestParam int approveStatus,@RequestBody List<BattDischargePlanTemp> tempList){ |
| | | return service.updateApproveDischargePlan(approveStatus,tempList); |
| | | //@ApiOperation(value = "审核放电计划",notes = "approveStatus 1:审核通过,-1:审核拒绝") |
| | | //@PutMapping("approveDischargePlan") |
| | | @Deprecated |
| | | public Response updateApproveDischargePlan(@RequestParam int approveStatus,@RequestParam(required = false) String approveReason,@RequestBody List<BattDischargePlanTemp> tempList){ |
| | | return service.updateApproveDischargePlan(approveStatus,approveReason,tempList); |
| | | } |
| | | |
| | | /** |
| | | * 查询临时表 |
| | | * @return |
| | | * @throws ParseException |
| | | */ |
| | | @ApiOperation("查询自己生成的放电计划临时表") |
| | | @GetMapping("ownedListMapByStatus") |
| | | public Response getOwnedListMapByStatus(){ |
| | | return service.getOwnedListMapByStatus(); |
| | | } |
| | | |
| | | /** |
| | | * 领导层查看放电临时表 |
| | | * @return |
| | | * @throws ParseException |
| | | */ |
| | | @ApiOperation("领导层查询放电计划临时表") |
| | | @GetMapping("listMapByStatus") |
| | | public Response getListMapByStatus(){ |
| | | return service.getListMapByStatus(); |
| | | @ApiOperation("删除当前用户之前未提交的所有记录") |
| | | @DeleteMapping("deleteNotSubmitted") |
| | | public Response deleteNotSubmitted(){ |
| | | return service.deleteNotSubmitted(); |
| | | } |
| | | |
| | | } |