| | |
| | | |
| | | @ApiOperation(value = "设置a200均衡仪参数") |
| | | @PostMapping("setA200Param") |
| | | public Object setA200Param(@RequestBody A200ResDto param,@RequestParam int devId){ |
| | | return service.setA200Param(param,devId); |
| | | public Object setA200Param(@RequestBody A200ResDto param){ |
| | | return service.setA200Param(param); |
| | | } |
| | | |
| | | @ApiOperation(value = "启动a200均衡仪放电/充电") |
| | |
| | | import java.io.Serializable; |
| | | public class A200ResDto implements Serializable { |
| | | |
| | | private int devId; |
| | | |
| | | @ApiModelProperty(value = "pack/模组号") |
| | | private String batteryName; |
| | |
| | | public void setBatteryTemperatureProtect(Integer batteryTemperatureProtect) { |
| | | this.batteryTemperatureProtect = batteryTemperatureProtect; |
| | | } |
| | | |
| | | public int getDevId() { |
| | | return devId; |
| | | } |
| | | |
| | | public void setDevId(int devId) { |
| | | this.devId = devId; |
| | | } |
| | | } |
| | |
| | | |
| | | |
| | | //设置a200均衡仪参数 |
| | | public Object setA200Param(A200ResDto param,int devId) { |
| | | public Object setA200Param(A200ResDto param) { |
| | | QueryWrapper wrapper=new QueryWrapper(); |
| | | wrapper.eq("dev_id",devId); |
| | | wrapper.eq("dev_id",param.getDevId()); |
| | | wrapper.last("limit 1"); |
| | | DevInf dinf=dinfMapper.selectOne(wrapper); |
| | | String url="http://"+dinf.getDevIp()+":8080/webService/setTestParameter"; |