| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Batttestdata_infService; |
| | | 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; |
| | |
| | | |
| | | @RequestMapping("battTestDataInf") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battTestDataInf接口") |
| | | public class Batttestdata_infController{ |
| | | |
| | | ServiceModel model = new ServiceModel(); |
| | |
| | | // private Batt_Maint_Dealarm bmd; |
| | | |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="历史数据查询") |
| | | public ServiceModel findByInfo(@RequestBody Batttestdata_inf bti){ |
| | | model=service.serchByCondition(bti); |
| | | |
| | |
| | | * 根据电池组id查询电池组的inf表中的放电信息 |
| | | */ |
| | | @GetMapping("battTestInfDataById") |
| | | @ApiOperation(notes = "",value="电池组id查询电池组的inf表中的放电信息") |
| | | public ServiceModel searchBattTestInfDataById(@RequestBody Batttestdata_inf bti){ |
| | | // Batttestdata_inf bti = ActionUtil.getGson().fromJson(json, Batttestdata_inf.class); |
| | | model=service.serchByCondition(bti); |
| | |
| | | |
| | | //0.7电测放电测试比例 |
| | | @GetMapping("testScale") |
| | | @ApiOperation(notes = "",value="电测放电测试比例") |
| | | public ServiceModel searchTestsCale(@RequestBody Batt_Maint_Dealarm bmd){ |
| | | try { |
| | | model=service.serchByInfo(bmd); |
| | |
| | | |
| | | //0.10电池健康率 |
| | | @GetMapping("healthRate") |
| | | @ApiOperation(notes = "",value="电池健康率") |
| | | public ServiceModel searchGood(){ |
| | | model=service.serchGood(); |
| | | |
| | |
| | | |
| | | //6.4.2根据条件查询符合条件的测试完成的电池组(蓄电池放电测试完成率) |
| | | @GetMapping("completeRate") |
| | | @ApiOperation(notes = "",value="条件查询符合条件的测试完成的电池组(蓄电池放电测试完成率)") |
| | | public ServiceModel serchComplete(@RequestBody Batttestdata_inf b){ |
| | | // Batttestdata_inf b=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batttestdata_inf.class); |
| | | ServiceModel model=service.serchComplete(b); |
| | |
| | | |
| | | //6.4.4根据条件查询符合条件的测试完成的电池组(蓄电池容量预警) |
| | | @GetMapping("capWarning") |
| | | @ApiOperation(notes = "",value="条件查询符合条件的测试完成的电池组(蓄电池容量预警)") |
| | | public ServiceModel serchCap(@RequestBody Batttestdata_inf b){ |
| | | // Batttestdata_inf b=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batttestdata_inf.class); |
| | | ServiceModel model=service.serchCap(b); |
| | |
| | | |
| | | //电池组历史放电数据续航能力查询 |
| | | @GetMapping("battLife") |
| | | @ApiOperation(notes = "",value="电池组历史放电数据续航能力查询") |
| | | public ServiceModel serchBattLife(@RequestBody BattInf binf){ |
| | | // BattInf binf = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, BattInf.class); |
| | | ServiceModel model = new ServiceModel(); |
| | |
| | | /* 根据电池组id查询电池组的inf表中的放电信息 <!------ 跨域访问 ---------> |
| | | */ |
| | | @GetMapping("battTestInfDataById_ky") |
| | | @ApiOperation(notes = "跨域访问",value="根据电池组id查询电池组的inf表中的放电信息") |
| | | public ServiceModel searchBattTestInfDataById_ky(@RequestBody Batttestdata_inf bti){ |
| | | // Batttestdata_inf bti = ActionUtil.getGson().fromJson(json, Batttestdata_inf.class); |
| | | model=service.serchByCondition_ky(bti); |