| | |
| | | package com.fgkj.controller.ram; |
| | | |
| | | import com.fgkj.controller.ActionUtil; |
| | | 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 org.springframework.beans.factory.annotation.Autowired; |
| | | 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 io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RequestMapping("fbs9100sNibianState") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "fbs9100sNibianState接口") |
| | | public class Fbs9100s_nibian_stateController{ |
| | | |
| | | @Autowired |
| | | @Resource |
| | | private Fbs9100s_nibian_stateService service; |
| | | |
| | | //根据设备 |
| | | @GetMapping("byCondition") |
| | | public ServiceModel serchByCondition(@RequestBody Fbs9100s_nibian_state fstate) { |
| | | // Fbs9100s_nibian_state fstate=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbs9100s_nibian_state.class); |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="设备ID查询") |
| | | 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; |