| | |
| | | import com.fgkj.services.User_logService; |
| | | import com.fgkj.services.ram.Fbs9100_setparamService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @RequestMapping("fbs9100SetParam") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "fbs9100SetParam接口") |
| | | public class Fbs9100_setparamController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //根据机房编号和维护区查询放电机房的信息和放电参数 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="机房编号和维护区查询放电机房的信息和放电参数") |
| | | public ServiceModel serchByCondition(@RequestBody BattInf binf){ |
| | | // BattInf binf = getGson().fromJson(json, BattInf.class); |
| | | ServiceModel model = service.serchByCondition(binf); |
| | |
| | | |
| | | //根据设备id查询设备的放电参数 |
| | | @GetMapping("devParamById") |
| | | @ApiOperation(notes = "",value="设备id查询设备的放电参数") |
| | | public ServiceModel serchdevParam(@RequestBody BattInf binf){ |
| | | ServiceModel model = service.serchdevParam(binf); |
| | | return model; |
| | |
| | | |
| | | //弹出框的确定操作 |
| | | @PutMapping("update") |
| | | @ApiOperation(notes = "",value="弹出框的确定操作") |
| | | public ServiceModel update(@RequestBody Fbs9100_setparam fbs) { |
| | | ServiceModel model = service.update(fbs); |
| | | { String msg=""; |
| | |
| | | |
| | | //离线养护功能 |
| | | @PutMapping("maintain") |
| | | @ApiOperation(notes = "",value="离线养护功能") |
| | | public ServiceModel updateMaintain(@RequestBody Fbs9100_setparam fbs) { |
| | | ServiceModel model = service.updateMaintain(fbs); |
| | | { String msg=""; |
| | |
| | | |
| | | //点击弹出框的设定按钮,修改ld6测试参数 |
| | | @PutMapping("ld6Param") |
| | | @ApiOperation(notes = "",value="点击弹出框的设定按钮,修改ld6测试参数") |
| | | public ServiceModel updateld6Param(@RequestBody Fbs9100_setparam fbs){ |
| | | ServiceModel model = service.updateld6Param(fbs); |
| | | { String msg=""; |
| | |
| | | |
| | | //点击弹出框的设定按钮,修改61850测试参数 |
| | | @PutMapping("61850Param") |
| | | @ApiOperation(notes = "",value="点击弹出框的设定按钮,修改61850测试参数") |
| | | public ServiceModel update61850Param(@RequestBody Fbs9100_setparam fbs){ |
| | | ServiceModel model = service.update61850Param(fbs); |
| | | { String msg=""; |
| | |
| | | |
| | | //右键查看参数和弹出框的刷新按钮 |
| | | @GetMapping("byDevId") |
| | | @ApiOperation(notes = "",value="右键查看参数和弹出框的刷新按钮") |
| | | public ServiceModel serchbyDev_id(@RequestBody Fbs9100_setparam fsparam) { |
| | | ServiceModel model = service.serchbyDev_id(fsparam); |
| | | return model; |
| | |
| | | |
| | | //实时刷新放电表格的电池组状态(集合) |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="实时刷新放电表格的电池组状态(集合)") |
| | | public ServiceModel serchByInfo(@RequestBody List<BattInf> binf){ |
| | | // List<BattInf> binf = getGson().fromJson(json, new TypeToken<List<BattInf>>(){}.getType()); |
| | | ServiceModel model = service.serchByInfo(binf); |
| | |
| | | |
| | | //根据电池组id查询电池组内前五的内阻数据(修改为前10) |
| | | @GetMapping("byThirdBatt") |
| | | @ApiOperation(notes = "",value="电池组id查询电池组内前五的内阻数据(修改为前10)") |
| | | public ServiceModel serchByThirdBatt(@RequestBody BattInf binf){ |
| | | ServiceModel model = service.serchByThirdBatt(binf); |
| | | return model; |
| | |
| | | |
| | | //-----------跨域实现(启动,停止)设备放电 |
| | | @PutMapping("update_ky") |
| | | @ApiOperation(notes = "",value="跨域实现(启动,停止)设备放电") |
| | | public ServiceModel update_ky(@RequestBody Fbs9100_setparam fbs) { |
| | | { String msg=""; |
| | | if(fbs.getNum()==FBS9100_ComBase.CMD_SetDischargeParm){ |
| | |
| | | |
| | | //-----------跨域根据机房编号和维护区查询放电机房的信息和放电参数 |
| | | @GetMapping("byCondition_ky") |
| | | @ApiOperation(notes = "",value="跨域根据机房编号和维护区查询放电机房的信息和放电参数") |
| | | public ServiceModel serchByCondition_ky(@RequestBody BattInf binf){ |
| | | ServiceModel model = service.serchByCondition(binf); |
| | | return model; |