|  |  | 
 |  |  |         return R.ok(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 添加入库单 | 
 |  |  |      */ | 
 |  |  |     @PostMapping("/order/pakmove/default/v1") | 
 |  |  |     @AppAuth(memo = "添加调拨单") | 
 |  |  |     public synchronized R pakmoveOrderCreate(@RequestHeader(required = false) String appkey, | 
 |  |  |                                            @RequestBody OpenOrderPakinJDParam param1, | 
 |  |  |                                            HttpServletRequest request) { | 
 |  |  |         auth(appkey, param1, request); | 
 |  |  |         if (Cools.isEmpty(param1)) { | 
 |  |  |             return R.parse(BaseRes.PARAM); | 
 |  |  |         } | 
 |  |  |         if (Cools.isEmpty(param1.getOrderNo())) { | 
 |  |  |             return R.error("单据编号[orderNo]不能为空"); | 
 |  |  |         } | 
 |  |  |         if (Cools.isEmpty(param1.getId())) { | 
 |  |  |             return R.error("单据唯一值[id]不能为空"); | 
 |  |  |         } | 
 |  |  |         if (Cools.isEmpty(param1.getFormId())) { | 
 |  |  |             return R.error("单据类型[orderType]不能为空"); | 
 |  |  |         } | 
 |  |  |         if (Cools.isEmpty(param1.getMatList())) { | 
 |  |  |             return R.error("单据明细[orderDetails]不能为空"); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         List<Map<String, Object>> result = new ArrayList<>(); | 
 |  |  |  | 
 |  |  |         for (OpenOrderPakinJDParam.DetlDto2 detlDto2:param1.getMatList()){ | 
 |  |  |             Mat mat = matService.selectByMatnr(detlDto2.getMatnr()); | 
 |  |  |             if (Cools.isEmpty(mat)){ | 
 |  |  |                 Map<String, Object> map = new HashMap<>(); | 
 |  |  |                 map.put("matnr", detlDto2.getMatnr()); | 
 |  |  |                 map.put("maktx", detlDto2.getMaktx()); | 
 |  |  | //                map.put("owner", detlDto2.getOwner()); | 
 |  |  | //                map.put("batch", detlDto2.getBatch()); | 
 |  |  |                 result.add(map); | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         if (!Cools.isEmpty(result) && result.size()!=0){ | 
 |  |  |             return R.error("请先下发以下商品信息:").add(result); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         OpenOrderPakinParam param = new OpenOrderPakinParam(param1); | 
 |  |  |         openService.pakinOrderCreate(param); | 
 |  |  |         return R.ok(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /* | 
 |  |  |      * 速腾数字孪生调用接口 | 
 |  |  |      * */ |