| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Api(tags = "在线监测-实时监控") |
| | | @RestController |
| | | @RequestMapping("Ld9testdataAction") |
| | | public class Ld9testdataController { |
| | | public class Ld9testdataController extends BaseController{ |
| | | @Autowired |
| | | private Ld9testdataService service; |
| | | |
| | |
| | | return service.serchByCondition(recordNum,testRecordCount,battGroupId,testMonNum); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-历史监控",value = "根据电池组id和test_record_count查询出整组的放电记录",notes = "Ld9testdataAction_ld9action_getLD9AllGroupByTestRecordCount:传参BattGroupId,testRecordCount") |
| | | @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") |
| | | @ApiOperation(tags = "在线监测-历史监控",value = "ld9导入整组放电图片",notes = "Ld9testdataAction_ld9action_filePicUpload:battGroupId,testRecordCount,mapPic{},monNum") |
| | | @PostMapping("filePicUpload") |
| | | public Response filePicUpload(@RequestBody Ld9testdataInf ld9inf){ |
| | | return service.filePicUpload(ld9inf); |
| | | public Response filePicUpload(@RequestBody Ld9testdataInf ld9inf, HttpServletRequest request){ |
| | | return service.filePicUpload(ld9inf,request); |
| | | } |
| | | |
| | | } |