|
|
@@ -7,7 +7,7 @@ import com.uas.eis.sdk.dto.ProductReq;
|
|
|
import com.uas.eis.service.STKService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@@ -27,17 +27,17 @@ public class STKController {
|
|
|
/**
|
|
|
*
|
|
|
*/
|
|
|
- @GetMapping("/api/getProduct")
|
|
|
+ @PostMapping("/api/getProduct")
|
|
|
public Result getProduct(HttpServletRequest request, @RequestBody ProductReq productReq){
|
|
|
return stkService.getProduct(request, productReq);
|
|
|
}
|
|
|
|
|
|
- @GetMapping("/api/getBom")
|
|
|
+ @PostMapping("/api/getBom")
|
|
|
public Result getBom(HttpServletRequest request, @RequestBody BomReq bomReq){
|
|
|
return stkService.getBom(bomReq);
|
|
|
}
|
|
|
|
|
|
- @GetMapping("/api/getProject")
|
|
|
+ @PostMapping("/api/getProject")
|
|
|
public Result getProject(HttpServletRequest request, @RequestBody ProductPageDTO productPageDTO){
|
|
|
return stkService.getProject(productPageDTO);
|
|
|
}
|