whyclxw
2024-09-09 5c1f15e385ea165ac151290f32d0a8b8e23270e2
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
38
39
40
41
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.service.BattgroupBaojigroupService;
import com.whyc.service.BatttestdataInfService;
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;
 
import java.time.LocalDate;
import java.util.Map;
 
@RestController
@Api(tags = "测试管理")
@RequestMapping("tinf")
public class BatttestdataInfController {
    @Autowired
    private BatttestdataInfService service;
 
 
    @ApiOperation(value = "测试统计本年/本月")
    @GetMapping("getDevTinfByYearMonth")
    public Map<String, Object> getDevTinfByYearMonth(@RequestParam Integer uid){
        return service.getDevTinfByYearMonth(uid);
    }
 
    @ApiOperation(value = "测试统计本周")
    @GetMapping("getDevTinfByWeek")
    public Map<String, Object> getDevTinfByWeek(@RequestParam Integer uid){
        return service.getDevTinfByWeek(uid);
    }
    @ApiOperation(value = "获取设备的充放电记录")
    @GetMapping("getTinfById")
    public Response getTinfById(@RequestParam Integer devId){
        return service.getTinfById(devId);
    }
}