| | |
| | | @PreAuthorize("@ss.hasPermi('sy:syCar:remove')") |
| | | @Log(title = "三一车辆", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation("删除三一车辆") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(ardSyCarService.deleteArdSyCarByIds(ids)); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取全部的三一车辆 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('sy:syCar:getArdSyCarAll')") |
| | | @PostMapping("/getArdSyCarAll") |
| | | @ApiOperation("获取全部的三一车辆") |
| | | public Map<String,Object> getArdSyCarAll(){ |
| | | String userId = SecurityUtils.getUserId(); |
| | | Map<String,Object> result = ardSyCarService.getArdSyCarAll(userId); |
| | | if(((String)result.get("code")).equals("500")){ |
| | | return error((String) result.get("data")); |
| | | }else if(((String)result.get("code")).equals("200")){ |
| | | return success(result.get("data")); |
| | | }else{ |
| | | return error(""); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取全部车辆模型 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('sy:syCar:getAllCarModel')") |
| | |
| | | @PreAuthorize("@ss.hasPermi('sy:syCar:uploadCarPicture')") |
| | | @PostMapping("/uploadCarPicture") |
| | | @ApiOperation("上传车辆图片") |
| | | public Map<String,Object> uploadCarPicture(@RequestParam("id") String id,@RequestParam("carPicture") MultipartFile carPicture){ |
| | | public Map<String,Object> uploadCarPicture(@RequestParam(value = "id",required = false,defaultValue = "") String id,@RequestParam("carPicture") MultipartFile carPicture){ |
| | | try{ |
| | | String result = ardSyCarService.uploadCarPicture(id,carPicture); |
| | | return success(result); |