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;
|
}
|
|
}
|