perryhsu
2020-10-14 f803c2a9296bcf3d2dba97b32f40276aa8b83d56
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
package com.fgkj.controller;
 
import java.util.List;
 
import com.fgkj.dto.ServiceModel;
import com.fgkj.dto.Task_Batt_Test;
import com.fgkj.services.User_task_batt_testService;
import com.opensymphony.xwork2.ActionSupport;
import io.swagger.annotations.Api;
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;
 
@RequestMapping("userTaskBattTest")
@RestController
@Api
public class User_task_batt_testrController{
    @Autowired
    private User_task_batt_testService service;
    
    //4.6作业报表(根据电池组信息以及统计方式查询user_task_batt_test信息)
    @GetMapping("byInfo")
    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;
    }
 
}