whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
src/main/java/com/whyc/controller/BattDischargePlanTempController.java
@@ -10,6 +10,7 @@
import org.springframework.web.bind.annotation.*;
import java.text.ParseException;
import java.util.Date;
import java.util.List;
@Api(tags = "放电计划临时表")
@@ -33,7 +34,7 @@
    }
    @ApiOperation(value = "放电时间互换")
    @PutMapping("exchangeDischargeTime")
    @PostMapping("exchangeDischargeTime")
    public Response updateExchangeDischargeTime(@RequestParam int numOriginal,@RequestParam int numReplaced){
        return service.exchangeDischargeTime(numOriginal,numReplaced);
    }
@@ -71,7 +72,7 @@
     * @throws ParseException
     */
    @ApiOperation("取消正在创建的放电计划审批清单|取消某一年度放电计划审批清单")
    @DeleteMapping("cancelDischargePlanTemp")
    @PostMapping("cancelDischargePlanTemp")
    @Deprecated
    public Response deleteCancelDischargePlanTemp(@RequestParam String startTime) throws ParseException {
        return service.deleteDischargePlanTemp(startTime);
@@ -84,7 +85,7 @@
     * @throws ParseException
     */
    @ApiOperation("删除尚未提交的放电计划记录-组长")
    @DeleteMapping("cancelDischargePlanTemp2")
    @PostMapping("cancelDischargePlanTemp2")
    public Response deleteCancelDischargePlanTemp2(@RequestParam String startTime) throws ParseException {
        return service.deleteDischargePlanTemp2(startTime);
    }
@@ -96,21 +97,21 @@
     * @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);
    }
    /**
@@ -127,9 +128,16 @@
    }
    @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);
    }
}