lxw
2023-03-21 218e304c33faa8c9367b9fcc56e9c389ffbb43af
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.whyc.controller;
 
 
import com.whyc.dto.Response;
import com.whyc.service.BattDischargePlanTempService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@Api(tags = "放电计划临时表")
@RequestMapping("battDischargePlanTemp")
@RestController
public class BattDischargePlanTempController {
 
    @Autowired
    private BattDischargePlanTempService service;
 
    @ApiOperation(value = "获取可替换放电电池组信息列表",notes = "替换的推荐同班组:data,其他班组data2")
    @GetMapping(value = "replaceBattGroupList")
    public Response getReplaceBattGroupList(@RequestParam int num){
        return service.getReplaceBattGroupList(num);
    }
 
    @ApiOperation(value = "获取不可用的放电计划时间")
    @GetMapping(value = "disabledDischargeTime")
    public Response getDisabledDischargeTime(@RequestParam int num){
        return service.getDisabledDischargeTime(num);
    }
 
    @ApiOperation(value = "放电时间互换")
    @PutMapping("exchangeDischargeTime")
    public Response updateExchangeDischargeTime(@RequestParam int numOriginal,@RequestParam int numReplaced){
        return service.exchangeDischargeTime(numOriginal,numReplaced);
    }
 
}