whycrzh
2021-01-28 c8332186836b3dfe1fbd32d7bec7cd29a57e1888
src/main/java/com/fgkj/controller/ram/Fbs9100_stateController.java
@@ -8,6 +8,7 @@
import com.fgkj.services.ram.Fbs9100_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;
@@ -15,13 +16,14 @@
@RequestMapping("fbs9100State")
@RestController
@Api
@Api(tags = "fbs9100State接口")
public class Fbs9100_stateController{
   @Resource
   private Fbs9100_stateService service;
   @PostMapping("/")
   @ApiOperation(notes = "",value="添加")
   public ServiceModel add(@RequestBody Fbs9100_state state) {
      // Fbs9100_state state = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbs9100_state.class);
      ServiceModel model = service.add(state);
@@ -30,6 +32,7 @@
   }
   @PutMapping("/")
   @ApiOperation(notes = "",value="修改")
   public ServiceModel update(@RequestBody Fbs9100_state state) {
      // Fbs9100_state state = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbs9100_state.class);
      ServiceModel model = service.update(state);
@@ -38,6 +41,7 @@
   //fbs9600设备内阻测试
   @PutMapping("/updatePro")
   @ApiOperation(notes = "",value="fbs9600设备内阻测试")
   public ServiceModel updatePro(@RequestBody List<Fbs9100_state> list) {
      // List<Fbs9100_state> list =getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, new TypeToken<List<Fbs9100_state>>(){}.getType());
      ServiceModel model = service.updatePro(list);
@@ -45,6 +49,7 @@
   }
   @DeleteMapping("/")
   @ApiOperation(notes = "",value="删除")
   public ServiceModel delete(@RequestBody Fbs9100_state state) {
      // Fbs9100_state state = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbs9100_state.class);
      ServiceModel model = service.delete(state);
@@ -53,6 +58,7 @@
   //FBS9600设备内阻测试显示全部9600设备的信息
   @GetMapping("byUid")
   @ApiOperation(notes = "",value="FBS9600设备内阻测试显示全部9600设备的信息")
   public ServiceModel searchByUid(){
      User_inf uinf=(User_inf) ActionUtil.getUser();
      ServiceModel model = service.searchByUid(uinf);
@@ -61,6 +67,7 @@
   //11.1FBS9100设备通信状态查询
   @GetMapping("byCondition")
   @ApiOperation(notes = "",value="FBS9100设备通信状态查询")
   public ServiceModel serchByCondition(@RequestBody Fbs9100_state state){
      // Fbs9100_state state = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbs9100_state.class);
      User_inf uinf=(User_inf) ActionUtil.getUser();
@@ -72,6 +79,7 @@
   //实时监测界面根据dev_alarmstate状态判断接触器状态
   @GetMapping("contactorState")
   @ApiOperation(notes = "",value="实时监测界面根据dev_alarmstate状态判断接触器状态")
     public ServiceModel serchContactorState(@RequestBody Fbs9100_state state) {
        // Fbs9100_state state = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbs9100_state.class);
      ServiceModel model = service.serchContactorState(state);
@@ -81,6 +89,7 @@
     //放电测试界面根据设备id查询网络拓扑图
   @GetMapping("byInfo")
   @ApiOperation(notes = "",value="放电测试界面根据设备id查询网络拓扑图")
     public ServiceModel serchByInfo(@RequestBody BattInf binf) {
        // BattInf binf = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class);
      ServiceModel model = service.serchByInfo(binf);
@@ -89,6 +98,7 @@
     }
     @GetMapping("all")
   @ApiOperation(notes = "",value="all")
   public ServiceModel searchAll(){
      ServiceModel model = service.searchAll();
@@ -97,6 +107,7 @@
   //实时界面左侧导航实时查询61850设备是否存在4种告警
   @GetMapping("by61850Alarms")
   @ApiOperation(notes = "",value="实时界面左侧导航实时查询61850设备是否存在4种告警")
     public ServiceModel serchBy61850Alarms(){
      ServiceModel model = service.serchBy61850Alarms();
@@ -105,6 +116,7 @@
   //查询61850设备的6种工作状态
   @GetMapping("devWorkState")
   @ApiOperation(notes = "",value="查询61850设备的6种工作状态")
     public ServiceModel searchDevWorkstate(@RequestBody Fbs9100_state state){
        // Fbs9100_state state = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Fbs9100_state.class);
      User_inf uinf=(User_inf) ActionUtil.getUser();
@@ -117,6 +129,7 @@
   //导航上实时查询61850设备的处于核容测试的数据
   @GetMapping("61850NuclearCap")
   @ApiOperation(notes = "",value="导航上实时查询61850设备的处于核容测试的数据")
     public ServiceModel seach6185Nuclear_cap(){
      User_inf uinf=(User_inf) ActionUtil.getUser();
        ServiceModel model = service.seach6185Nuclear_cap(uinf, FBS9100_ComBase.DEV_NUCLEAR_CAP);
@@ -126,6 +139,7 @@
  //11.1FBS9100设备通信状态查询             <--     跨域    -->
   @GetMapping("byConditionKy")
   @ApiOperation(notes = "跨域",value="FBS9100设备通信状态查询")
     public ServiceModel serchByCondition_ky(){
        //isAllowHeaders();                                    //允许跨域访问
      ServiceModel model = service.serchByCondition_ky();