whycxzp
2023-03-17 ab049c643b68186f0ee3895eebc155c81ec7f9de
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
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.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
@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 battGroupId){
        return service.getReplaceBattGroupList(battGroupId);
    }
 
    @ApiOperation(value = "获取不可用的放电计划时间")
    @GetMapping(value = "disabledDischargeTime")
    public Response getDisabledDischargeTime(@RequestParam int battGroupId){
        return service.getDisabledDischargeTime(battGroupId);
    }
 
}