| | |
| | | |
| | | return model; |
| | | } |
| | | |
| | | |
| | | //8.1修改参数信息 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改参数信息") |
| | | @ApiOperation(notes = "{ \"num\": 15, \"param_name\": \"\", \"preset_time\": 0, \"preset_cap\": 0.0, \"preset_monvol\": 0.0, \"preset_groupvol\": 0.0, \"preset_curr\": 0.0, \"preset_mon\": 0, \"dcvolhighlimit\": 0.0, \"chargecurrset\": 0.0, \"note\": \"CC\", \"plan_circle\": 0, \"plan_rate\": 0 }",value="修改参数信息") |
| | | public ServiceModel update(@RequestBody BattDischarge_param param){ |
| | | // BattDischarge_param param = getGson("yyyy-MM-dd").fromJson(json, BattDischarge_param.class); |
| | | ServiceModel model = service.update(param); |
| | |
| | | |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel del(@RequestBody BattDischarge_param param){ |
| | | // BattDischarge_param param = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattDischarge_param.class); |
| | | public ServiceModel del(@RequestParam Integer num) { |
| | | BattDischarge_param param = new BattDischarge_param(); |
| | | param.setNum(num); |
| | | ServiceModel model = service.del(param); |
| | | |
| | | return model; |
| | |
| | | return model; |
| | | } |
| | | |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="byCondition") |
| | | public ServiceModel serchByCondition(@RequestBody BattDischarge_param param){ |
| | | // BattDischarge_param param = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattDischarge_param.class); |
| | | public ServiceModel serchByCondition(@RequestParam Integer num){ |
| | | BattDischarge_param param = new BattDischarge_param(); |
| | | param.setNum(num); |
| | | ServiceModel model = service.serchByCondition(param); |
| | | return model; |
| | | } |