whycrzh
2021-01-28 c8332186836b3dfe1fbd32d7bec7cd29a57e1888
src/main/java/com/fgkj/controller/Batt_DevdischargeController.java
@@ -8,13 +8,14 @@
import com.fgkj.services.Batt_DevdischargeService;
import com.fgkj.services.User_logService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@RequestMapping("battDevDischarge")
@RestController
@Api
@Api(tags = "battDevDischarge接口")
public class Batt_DevdischargeController{
   @Resource
@@ -23,6 +24,7 @@
   private User_logService uservice;
   @PostMapping("/")
   @ApiOperation(notes = "",value="新增")
   public ServiceModel add(@RequestBody Batt_Devdischarge bd){
      // Batt_Devdischarge bd = getGson("yyyy-MM-dd").fromJson(json, Batt_Devdischarge.class);
      ServiceModel model = service.add(bd);
@@ -36,6 +38,7 @@
   }
   @PutMapping("/")
   @ApiOperation(notes = "",value="修改")
   public ServiceModel update(@RequestBody Batt_Devdischarge bd){
      // Batt_Devdischarge bd = getGson("yyyy-MM-dd").fromJson(json, Batt_Devdischarge.class);
      ServiceModel model = service.update(bd);
@@ -44,6 +47,7 @@
   }
   @DeleteMapping("/")
   @ApiOperation(notes = "",value="删除")
   public ServiceModel del(@RequestBody Batt_Devdischarge bd){
//       Batt_Devdischarge bd = getGson("yyyy-MM-dd").fromJson(json, Batt_Devdischarge.class);
      ServiceModel model = service.del(bd);
@@ -52,6 +56,7 @@
   }
   @GetMapping("all")
   @ApiOperation(notes = "",value="all")
   public ServiceModel searchAll(){
      ServiceModel model = service.searchAll();