|
@@ -3,9 +3,13 @@ package org.ajnb.controller;
|
|
import org.ajnb.service.SuppliersService;
|
|
import org.ajnb.service.SuppliersService;
|
|
import org.ajnb.vo.SuppliersVO;
|
|
import org.ajnb.vo.SuppliersVO;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("Suppliers")
|
|
@RequestMapping("Suppliers")
|
|
public class SuppliersController {
|
|
public class SuppliersController {
|
|
@@ -17,4 +21,19 @@ public class SuppliersController {
|
|
public void addSuppliers(SuppliersVO suppliersVO){
|
|
public void addSuppliers(SuppliersVO suppliersVO){
|
|
suppliersService.addSuppliers(suppliersVO);
|
|
suppliersService.addSuppliers(suppliersVO);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @RequestMapping("querySuppliers")
|
|
|
|
+ public List<SuppliersVO> querySuppliers(SuppliersVO suppliersVO){
|
|
|
|
+ return suppliersService.querySuppliers(suppliersVO);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @RequestMapping("updateSuppliers")
|
|
|
|
+ public void updateSuppliers(SuppliersVO suppliersVO){
|
|
|
|
+ suppliersService.updateSuppliers(suppliersVO);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @RequestMapping("deleteSuppliers")
|
|
|
|
+ public void deleteSuppliers(SuppliersVO suppliersVO){
|
|
|
|
+ suppliersService.deleteSuppliers(suppliersVO);
|
|
|
|
+ }
|
|
}
|
|
}
|