whycxzp
2025-05-27 22c2a663c059ac237b4dca14a126a9a65145ec96
src/main/java/com/whyc/controller/BattInfController.java
@@ -8,6 +8,10 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
 * 弃用,整合到电源信息表了
 */
@Deprecated
@RestController
@Api(tags = "电池信息")
@RequestMapping("battInf")
@@ -43,7 +47,8 @@
    @ApiOperation("查询-根据id")
    @GetMapping("getById")
    public Response getById(@RequestParam int battGroupId){
        return service.getById(battGroupId);
        BattInf battInf = service.getById(battGroupId);
        return new Response().set(1,battInf);
    }