| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.text.ParseException; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | @Api(tags = "放电计划临时表") |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "放电时间互换") |
| | | @PutMapping("exchangeDischargeTime") |
| | | @PostMapping("exchangeDischargeTime") |
| | | public Response updateExchangeDischargeTime(@RequestParam int numOriginal,@RequestParam int numReplaced){ |
| | | return service.exchangeDischargeTime(numOriginal,numReplaced); |
| | | } |
| | |
| | | * @throws ParseException |
| | | */ |
| | | @ApiOperation("取消正在创建的放电计划审批清单|取消某一年度放电计划审批清单") |
| | | @DeleteMapping("cancelDischargePlanTemp") |
| | | @PostMapping("cancelDischargePlanTemp") |
| | | @Deprecated |
| | | public Response deleteCancelDischargePlanTemp(@RequestParam String startTime) throws ParseException { |
| | | return service.deleteDischargePlanTemp(startTime); |
| | |
| | | * @throws ParseException |
| | | */ |
| | | @ApiOperation("删除尚未提交的放电计划记录-组长") |
| | | @DeleteMapping("cancelDischargePlanTemp2") |
| | | @PostMapping("cancelDischargePlanTemp2") |
| | | public Response deleteCancelDischargePlanTemp2(@RequestParam String startTime) throws ParseException { |
| | | return service.deleteDischargePlanTemp2(startTime); |
| | | } |
| | |
| | | * @throws ParseException |
| | | */ |
| | | @ApiOperation(value="确定|更新放电计划临时表",notes = "数组内只需要传id,dischargeStartTime") |
| | | @PutMapping("listAndSubmit") |
| | | @PostMapping("listAndSubmit") |
| | | public Response updateListAndSubmit(@RequestBody List<BattDischargePlanTemp> list,@RequestParam String taskDesc) { |
| | | return service.updateListAndSubmit(list,taskDesc); |
| | | } |
| | | |
| | | /** |
| | | * 提交放电计划临时表,更新临时表参数; |
| | | * 同时,提交给专员审批 |
| | | * 同时,提交给管理专责 |
| | | * @return |
| | | * @throws ParseException |
| | | */ |
| | | @ApiOperation(value="确定|更新放电计划临时表",notes = "数组内只需要传id,dischargeStartTime") |
| | | @PutMapping("listAndSubmit2") |
| | | @PostMapping("listAndSubmit2") |
| | | public Response updateListAndSubmit2(@RequestBody List<BattDischargePlanTemp> list,@RequestParam String taskDesc) { |
| | | return service.updateListAndSubmit(list,taskDesc); |
| | | return service.updateListAndSubmit2(list,taskDesc); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | @ApiOperation("删除当前用户之前未提交的所有记录") |
| | | @DeleteMapping("deleteNotSubmitted") |
| | | @PostMapping("deleteNotSubmitted") |
| | | public Response deleteNotSubmitted(){ |
| | | return service.deleteNotSubmitted(); |
| | | } |
| | | |
| | | @ApiOperation("查询占用的时间") |
| | | @GetMapping("occupiedTime") |
| | | public Response getOccupiedTime(){ |
| | | List<Date> occupiedTime = service.getOccupiedTime(); |
| | | return new Response().set(1,occupiedTime); |
| | | } |
| | | |
| | | } |