| | |
| | | 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.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("battDischargeParam") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battDischargeParam接口") |
| | | public class BattDischarge_paramController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //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); |
| | |
| | | |
| | | //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); |
| | |
| | | } |
| | | |
| | | @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); |
| | |
| | | |
| | | //8.1查询所有的参数 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有的参数") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model = service.searchAll(); |
| | | |
| | |
| | | } |
| | | |
| | | @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); |