| | |
| | | import com.stylefeng.guns.modular.system.model.TPowerUnits; |
| | | import com.stylefeng.guns.modular.system.model.TPowerUnitsVo; |
| | | import com.stylefeng.guns.modular.system.service.TPowerUnitsService; |
| | | import com.stylefeng.guns.modular.system.utils.UserInfoUtil; |
| | | import com.stylefeng.guns.modular.system.utils.tips.SuccessTip; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | |
| | | @PostMapping(value = "/addPowerUnitOrChassiss") |
| | | @ResponseBody |
| | | public Object addPowerUnitOrChassiss(@RequestBody TPowerUnits tPowerUnits) { |
| | | tPowerUnits.setCompanyId(UserInfoUtil.getId()); |
| | | tPowerUnits.setCreateTime(new Date()); |
| | | powerUnitsService.insert(tPowerUnits); |
| | | 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"), |
| | | }) |
| | | @GetMapping(value = "/infoPowerUnitOrChassiss") |
| | | @ResponseBody |
| | | public Object infoPowerUnitOrChassiss( int id) { |
| | | TPowerUnits tPowerUnits = powerUnitsService.selectById(id); |
| | | |
| | | return new SuccessTip(tPowerUnits); |
| | | } |
| | | |
| | | @ApiOperation(value = "卡车公司-编辑车架或者车头",notes="卡车公司-编辑车架或者车头") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "用户token(Bearer +token)", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."), |