| | |
| | | import com.fgkj.dto.*; |
| | | import com.fgkj.services.Batt_maint_infService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @RequestMapping("battMaintInf") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battMaintInf接口") |
| | | public class Batt_maint_infController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //2.1电池故障维护记录查询 |
| | | @GetMapping("maint") |
| | | @ApiOperation(notes = "",value="电池故障维护记录查询") |
| | | public ServiceModel serchMaint(@RequestBody Batt_Maint_Dealarm bd){ |
| | | //System.out.println(bd); |
| | | // bd = ActionUtil.getGson("yyyy-MM-dd").fromJson(result, Batt_Maint_Dealarm.class); |
| | |
| | | * remark存放品牌 |
| | | */ |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="电池故障处理统计查询") |
| | | public List serchByCondition(@RequestBody Batt_User_Permit bup){ |
| | | // bup= ActionUtil.getGson("yyyy-MM-dd").fromJson(result, Batt_User_Permit.class); |
| | | List list=service.serchByCondition(bup); |
| | |
| | | |
| | | //0.3查询所有的维护记录(只传page对象) |
| | | @GetMapping("/") |
| | | @ApiOperation(notes = "",value="查询所有的维护记录(只传page对象)") |
| | | public ServiceModel search(){ |
| | | ServiceModel model=service.search(); |
| | | return model; |
| | |
| | | |
| | | //0.4电池组故障率 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="电池组故障率") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | return model; |
| | |
| | | |
| | | //0.4/0.8电池组故障率/维护率(最新) |
| | | @GetMapping("byStationName") |
| | | @ApiOperation(notes = "",value="电池组故障率/维护率(最新)") |
| | | public ServiceModel searchByStationName(@RequestBody Batt_Maint_Dealarm bd) { |
| | | ServiceModel model=service.searchByStationName(bd); |
| | | |
| | |
| | | |
| | | //根据电池组id查询电池的故障信息 |
| | | @GetMapping("byBattGroupId") |
| | | @ApiOperation(notes = "",value="电池组id查询电池的故障信息") |
| | | public ServiceModel searchByBattgroupId(@RequestBody Batt_maint_inf bmi){ |
| | | // bmi=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batt_maint_inf.class); |
| | | ServiceModel model=service.searchByBattgroupId(bmi); |
| | |
| | | |
| | | //2.1 电池维护记录查询(编辑记录) |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="电池维护记录查询(编辑记录)") |
| | | public ServiceModel update(@RequestBody Batt_maint_inf bmi,@RequestBody List<Batt_maint_process> process) { |
| | | // bmi=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batt_maint_inf.class); |
| | | // List<Batt_maint_process> process = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, new TypeToken<List<Batt_maint_process>>(){}.getType()); |
| | |
| | | } |
| | | //2.1 电池维护记录查询(删除记录) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="电池维护记录查询(删除记录)") |
| | | public ServiceModel delete(@RequestBody Batt_maint_inf bmi) { |
| | | // bmi=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batt_maint_inf.class); |
| | | ServiceModel model=service.delete(bmi); |