| | |
| | | @ResponseBody |
| | | public Object addCarriers(@RequestBody TCarriers tCarriers) { |
| | | tCarriers.setCreateTime(new Date()); |
| | | carriersService.insert(tCarriers); |
| | | return new SuccessTip(); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "卡车公司-承运商详情",notes="卡车公司-承运商详情") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "用户token(Bearer +token)", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."), |
| | | @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "int",paramType = "query"), |
| | | }) |
| | | @PostMapping(value = "/carriersInfo") |
| | | @ResponseBody |
| | | public Object carriersInfo( int id) { |
| | | TCarriers tCarriers = carriersService.selectById(id); |
| | | return new SuccessTip(tCarriers); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "卡车公司-编辑承运商",notes="卡车公司-编辑承运商") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "用户token(Bearer +token)", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."), |