| | |
| | | import com.fgkj.services.User_battgroup_baojigroupService; |
| | | 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("baojiGroup") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "baojiGroup接口") |
| | | public class User_battgroup_baojigroupController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | // 5.3删除包机组 |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除包机组") |
| | | public ServiceModel delete(@RequestBody User_battgroup_baojigroup us) { |
| | | ServiceModel model=service.delete(us); |
| | | // { |
| | |
| | | } |
| | | |
| | | //5.3根据包机组id查对应的机房和电池组 |
| | | @GetMapping("byInfo") |
| | | @PostMapping("byInfo") |
| | | @ApiOperation(notes = "",value="包机组id查对应的机房和电池组") |
| | | public ServiceModel serchByInfo(@RequestBody User_battgroup_baojigroup us){ |
| | | ServiceModel model=service.serchByInfo(us); |
| | | |
| | |
| | | } |
| | | |
| | | //5.3根据包机组id查包机组对应的用户 |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="包机组id查包机组对应的用户") |
| | | public ServiceModel serchByCondition(@RequestBody User_battgroup_baojigroup us){ |
| | | ServiceModel model=service.serchByCondition(us); |
| | | |
| | |
| | | |
| | | //5.3查所有包机组 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查所有包机组") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | |
| | |
| | | |
| | | // 5.3添加新包机组 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加新包机组") |
| | | public ServiceModel add(@RequestBody User_battgroup_baojigroup us) { |
| | | ServiceModel model=service.add(us); |
| | | { |
| | |
| | | |
| | | // 5.3修改包机组名 |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改包机组名") |
| | | public ServiceModel update(@RequestBody User_battgroup_baojigroup us) { |
| | | ServiceModel model=service.update(us); |
| | | { |