whycrzg
2021-02-23 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4
src/main/java/com/fgkj/controller/BadBatt_mon_flagController.java
@@ -1,30 +1,29 @@
package com.fgkj.controller;
import com.fgkj.util.*;
import com.fgkj.dto.BadBatt_mon_flag;
import com.fgkj.dto.ServiceModel;
import com.fgkj.services.BadBatt_mon_flagService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
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.*;
import org.apache.ibatis.annotations.Property;
import org.springframework.web.bind.annotation.*;
@RequestMapping("BadBattMonFlag")
import javax.annotation.Resource;
@RequestMapping("badBattMonFlag")
@RestController
@Api
@Api(tags = "badBattMonFlag接口")
public class BadBatt_mon_flagController{
   @Autowired
   @Resource
   private BadBatt_mon_flagService service;
   //往标识表中插入一笔数据
   @PostMapping("/")
   public ServiceModel add(@RequestBody BadBatt_mon_flag monflag) {
      // BadBatt_mon_flag monflag = getGson().fromJson(json, BadBatt_mon_flag.class);
      ServiceModel model = service.add(monflag);
   @ApiOperation(notes = "",value="往标识表中插入一笔数据")
   public ServiceModel  add(@ApiParam(value = "计数",required = true) @RequestParam Integer count) {
      BadBatt_mon_flag monFlag =new BadBatt_mon_flag();
      monFlag.setCount(count);
      ServiceModel model = service.add(monFlag);
      return model;
   }