|
@@ -11,10 +11,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.Objects;
|
|
|
|
|
@@ -44,4 +41,10 @@ public class SupplierMgrController {
|
|
|
return AjaxResult.success(supplierService.save(supplier));
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("/detail/{id}")
|
|
|
+ @ApiOperation("供应商详情")
|
|
|
+ public AjaxResult detail(@PathVariable("id") Long id) {
|
|
|
+ return AjaxResult.success(supplierService.getById(id));
|
|
|
+ }
|
|
|
+
|
|
|
}
|