|  |  |  | 
|---|
|  |  |  | @PreventRepeat | 
|---|
|  |  |  | @ApiOperation("企业新建商品") | 
|---|
|  |  |  | @PostMapping("/companyCreate") | 
|---|
|  |  |  | //    @RequiresPermissions("business:goods:create") | 
|---|
|  |  |  | @RequiresPermissions("business:goods:create") | 
|---|
|  |  |  | public ApiResponse companyCreate(@RequestBody Goods goods) { | 
|---|
|  |  |  | goodsService.companyCreate(goods); | 
|---|
|  |  |  | cateParamSelectService.dealCateParamSelect(); | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiImplicitParams({ | 
|---|
|  |  |  | @ApiImplicitParam(name = "file", value = "file", required = true, paramType = "query", dataType = "file", dataTypeClass = File.class), | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | //    @RequiresPermissions("business:goods:create") | 
|---|
|  |  |  | @RequiresPermissions("business:goods:create") | 
|---|
|  |  |  | public ApiResponse<Integer> importExcel (@ApiParam(value = "file") MultipartFile file) { | 
|---|
|  |  |  | Integer val = goodsService.importBatch(file); | 
|---|
|  |  |  | cateParamSelectService.dealCateParamSelect(); | 
|---|