ysh 2 年 前
コミット
bd0a1ae2dd

+ 12 - 7
jeecg-boot-module-system/src/main/java/org/jeecg/modules/openApi/controller/SubcontractingOrderController.java

@@ -39,26 +39,31 @@ public class SubcontractingOrderController extends JeecgController<Subcontractin
     /**
      * 根据订单号审核入库单(pda功能) 0000000003
      */
-    @RequestMapping(value = "/toExamine",method = RequestMethod.GET)
+    @RequestMapping(value = "/toExamine",method = RequestMethod.POST)
     @ResponseBody
-    public ResponseEntity<ResHttpStatus> toExamine(String cbSysBarCode,String cHandler,String id) {
+    public ResponseEntity<ResHttpStatus> toExamine(@RequestBody JSONObject json) {
 
         ResHttpStatus res = new ResHttpStatus();
         res.setCode("0");
         res.setSuccess(false);
-        if (!StringUtils.isNotBlank(cbSysBarCode)) {
-            res.setMsg("二维码参数有误");
+        if(json.size() == 0){
+            res.setMsg("参数不能为空");
+            return new ResponseEntity<>(res, HttpStatus.OK);
+        }
+
+        if(json.get("cbSysBarCode") == null){
+            res.setMsg("cbSysBarCode参数不能为空");
             return new ResponseEntity<>(res, HttpStatus.OK);
         }
-        if (!StringUtils.isNotBlank(id)) {
+        if (json.get("id") == null) {
             res.setMsg("主表id不能为空");
             return new ResponseEntity<>(res, HttpStatus.OK);
         }
-        if (!StringUtils.isNotBlank(cHandler)) {
+        if (json.get("cHandler") == null) {
             res.setMsg("审核人姓名不能为空");
             return new ResponseEntity<>(res, HttpStatus.OK);
         }
-        int st = subcontractingOrderService.toExamine(id,cbSysBarCode,cHandler);
+        int st = subcontractingOrderService.toExamine(json.getString("id"),json.getString("cbSysBarCode"),json.getString("cHandler"));
 
         res.setCode("200");
         res.setMsg("成功");