| | |
| | | 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 io.swagger.annotations.ApiOperation; |
| | | 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.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | //往标识表中插入一笔数据 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="往标识表中插入一笔数据") |
| | | public ServiceModel add(@RequestBody BadBatt_mon_flag monFlag) { |
| | | // BadBatt_mon_flag monflag = getGson().fromJson(json, BadBatt_mon_flag.class); |
| | | 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; |
| | | } |