whycrzg
2021-02-23 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4
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.fgkj.controller;
 
import com.fgkj.util.*;
 
import com.fgkj.dto.ServiceModel;
import com.fgkj.dto.Task_Batt_Test;
import com.fgkj.services.User_task_batt_testService;
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.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.List;
 
import javax.annotation.Resource;
 
@RequestMapping("userTaskBattTest")
@RestController
@Api(tags = "userTaskBattTest接口")
public class User_task_batt_testrController{
    @Resource
    private User_task_batt_testService service;
    
    //4.6作业报表(根据电池组信息以及统计方式查询user_task_batt_test信息)
    @GetMapping("byInfo")
    @ApiOperation(notes = "根据电池组信息以及统计方式查询user_task_batt_test信息",value="作业报表")
    public ServiceModel serchByInfo(@RequestBody Task_Batt_Test tbt){
        ServiceModel model=new ServiceModel();
        List list=service.serchByInfo(tbt);
        if(list!=null && list.size()>0){
            model.setCode(1);
            model.setData(list);
        }
        
        return model;
    }
 
}