lxw
2023-03-02 2ebf5324ac4e7dd23f4857e7080d25d40065b86c
src/main/java/com/whyc/controller/Ld9testdataController.java
@@ -1,14 +1,16 @@
package com.whyc.controller;
import com.github.pagehelper.PageInfo;
import com.whyc.dto.Response;
import com.whyc.pojo.Ld9testdataInf;
import com.whyc.service.Ld9testdataService;
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 org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;
@Api(tags = "在线监测-实时监控")
@RestController
@@ -23,4 +25,17 @@
        return  service.serchByCondition(recordNum,testRecordCount,battGroupId,testMonNum);
    }
    @ApiOperation(tags = "在线监测-历史监控",value = "根据电池组id和test_record_count查询出整组的放电记录",notes = "Ld9testdataAction_ld9action_getLD9AllGroupByTestRecordCount:传参battGroupId,testRecordCount")
    @PostMapping("getLD9AllGroupByTestRecordCount")
    public Response getLD9AllGroupByTestRecordCount(@RequestBody Ld9testdataInf ld9inf){
        List list=service.getLD9AllGroupByTestRecordCount(ld9inf);
        Map numMap=service.getLD9AllGroupTimeLong(ld9inf);
        return  new Response().setIII(1,list,numMap,list.size()>0?true:false,"");
    }
    @ApiOperation(tags = "在线监测-历史监控",value = "ld9导入整组放电图片",notes = "Ld9testdataAction_ld9action_filePicUpload:battGroupId,testRecordCount,mapPic{},monNum")
    @PostMapping("filePicUpload")
    public Response filePicUpload(@RequestBody Ld9testdataInf ld9inf){
        return service.filePicUpload(ld9inf);
    }
}