whycrzh
2021-01-28 c8332186836b3dfe1fbd32d7bec7cd29a57e1888
src/main/java/com/fgkj/controller/BattDischarge_paramController.java
@@ -9,6 +9,7 @@
import com.fgkj.services.BattDischarge_paramService;
import com.fgkj.services.User_logService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -16,7 +17,7 @@
@RequestMapping("battDischargeParam")
@RestController
@Api
@Api(tags = "battDischargeParam接口")
public class BattDischarge_paramController{
   @Resource
@@ -28,6 +29,7 @@
   
   //8.1添加新的参数
   @PostMapping("/")
   @ApiOperation(notes = "",value="添加新的参数")
   public ServiceModel add(@RequestBody BattDischarge_param param){
      // BattDischarge_param param = getGson("yyyy-MM-dd").fromJson(json, BattDischarge_param.class);
      ServiceModel model = service.add(param);
@@ -42,6 +44,7 @@
   
   //8.1修改参数信息
   @PutMapping("/")
   @ApiOperation(notes = "",value="修改参数信息")
   public ServiceModel update(@RequestBody BattDischarge_param param){
      // BattDischarge_param param = getGson("yyyy-MM-dd").fromJson(json, BattDischarge_param.class);
      ServiceModel model = service.update(param);
@@ -55,6 +58,7 @@
   }
   @DeleteMapping("/")
   @ApiOperation(notes = "",value="删除")
   public ServiceModel del(@RequestBody BattDischarge_param param){
      // BattDischarge_param param = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattDischarge_param.class);
      ServiceModel model = service.del(param);
@@ -64,6 +68,7 @@
   
   //8.1查询所有的参数
   @GetMapping("all")
   @ApiOperation(notes = "",value="查询所有的参数")
   public ServiceModel searchAll(){
      ServiceModel model = service.searchAll();
@@ -71,6 +76,7 @@
   }
   @GetMapping("byCondition")
   @ApiOperation(notes = "",value="byCondition")
   public ServiceModel serchByCondition(@RequestBody BattDischarge_param param){
      // BattDischarge_param param = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattDischarge_param.class);
      ServiceModel model = service.serchByCondition(param);