| | |
| | | import com.fgkj.services.ram.Fbs9600_stateService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @RequestMapping("fbs9600State") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "fbs9600State接口") |
| | | public class Fbs9600_stateController{ |
| | | |
| | | @Resource |
| | |
| | | private User_logService uservice; |
| | | |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加") |
| | | public ServiceModel add(@RequestBody Fbs9600_state state) { |
| | | ServiceModel model = service.add(state); |
| | | |
| | |
| | | |
| | | //bts显示屏启动放电 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="bts显示屏启动放电") |
| | | public ServiceModel update(@RequestBody Fbs9600_state state) { |
| | | ServiceModel model = service.update(state); |
| | | { String msg=""; |
| | |
| | | |
| | | //fbs9600设备内阻测试 |
| | | @PutMapping("updatePro") |
| | | @ApiOperation(notes = "",value="fbs9600设备内阻测试") |
| | | public ServiceModel updatePro(@RequestBody List<Fbs9600_state> list) { |
| | | ServiceModel model = service.updatePro(list); |
| | | |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel delete(@RequestBody Fbs9600_state state) { |
| | | ServiceModel model = service.delete(state); |
| | | |
| | |
| | | |
| | | //11.1FBS9600设备通信状态查询 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="FBS9600设备通信状态查询") |
| | | public ServiceModel serchByCondition(@RequestBody Fbs9600_state state){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | state.setNum(uinf.getuId());//将用户id存放在Fbs9100_state的num中用于处理用户管理的机房问题 |
| | |
| | | |
| | | //放电测试添加fbs9600设备的添加电池组的操作 |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="放电测试添加fbs9600设备的添加电池组的操作") |
| | | public ServiceModel serchByInfo(@RequestBody BattInf binf){ |
| | | ServiceModel model= service.serchByInfo(binf); |
| | | |
| | |
| | | |
| | | //FBS9600设备内阻测试显示全部9600设备的信息(改为将9600内阻数据放在9100state表中) |
| | | @GetMapping("byUid") |
| | | @ApiOperation(notes = "",value="FBS9600设备内阻测试显示全部9600设备的信息(改为将9600内阻数据放在9100state表中)") |
| | | public ServiceModel searchByUid(){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.searchByUid(uinf); |