| | |
| | | package com.fgkj.controller.ram; |
| | | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.dto.ram.Fbs9100s_fod_state; |
| | | import com.fgkj.dto.ram.Fbs9100s_nibian_state; |
| | | import com.fgkj.services.ram.Fbs9100s_nibian_stateService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | private Fbs9100s_nibian_stateService service; |
| | | |
| | | //根据设备 |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="设备ID查询") |
| | | public ServiceModel serchByCondition(@RequestBody Fbs9100s_nibian_state fstate) { |
| | | public ServiceModel serchByCondition(@RequestParam Integer dev_id) { |
| | | Fbs9100s_nibian_state fstate = new Fbs9100s_nibian_state(); |
| | | fstate.setDev_id(dev_id); |
| | | ServiceModel model=service.serchByCondition(fstate); |
| | | |
| | | return model; |