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 num){
|
return service.getReplaceBattGroupList(num);
|
}
|
|
@ApiOperation(value = "获取不可用的放电计划时间")
|
@GetMapping(value = "disabledDischargeTime")
|
public Response getDisabledDischargeTime(@RequestParam int num){
|
return service.getDisabledDischargeTime(num);
|
}
|
|
}
|