|  |  |  | 
|---|
|  |  |  | elem.setBatch(elem.getItemBatch()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | System.out.println(combParam); | 
|---|
|  |  |  | mobileService.comb(combParam, getUserId()); | 
|---|
|  |  |  | return R.ok("组托成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | @RequestMapping("/pakout/query/auth") | 
|---|
|  |  |  | @ManagerAuth | 
|---|
|  |  |  | @Deprecated | 
|---|
|  |  |  | public R pakoutQuery(@RequestParam(required = false) String barcode, | 
|---|
|  |  |  | @RequestParam(required = false) Integer staNo, | 
|---|
|  |  |  | @RequestParam(required = false) String matnr) { | 
|---|
|  |  |  | if (Cools.isEmpty(barcode) && Cools.isEmpty(matnr)) { | 
|---|
|  |  |  | public R pakoutQuery(@RequestParam String barcode) { | 
|---|
|  |  |  | if (Cools.isEmpty(barcode)) { | 
|---|
|  |  |  | return R.ok(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | System.out.println(barcode); | 
|---|
|  |  |  | if (!Cools.isEmpty(barcode)) { | 
|---|
|  |  |  | List<WrkDetl> wrkDetls = wrkDetlService.selectList(new EntityWrapper<WrkDetl>().eq("zpallet", barcode)); | 
|---|
|  |  |  | return R.ok().add(wrkDetls); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (!Cools.isEmpty(matnr)) { | 
|---|
|  |  |  | if (!Cools.isEmpty(staNo)) { | 
|---|
|  |  |  | List<WrkDetl> wrkDetls = wrkDetlService.selectPakoutQuery(staNo, matnr); | 
|---|
|  |  |  | return R.ok().add(wrkDetls); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //        if (!Cools.isEmpty(matnr)) { | 
|---|
|  |  |  | //            if (!Cools.isEmpty(staNo)) { | 
|---|
|  |  |  | //                List<WrkDetl> wrkDetls = wrkDetlService.selectPakoutQuery(staNo, matnr); | 
|---|
|  |  |  | //                return R.ok().add(wrkDetls); | 
|---|
|  |  |  | //            } | 
|---|
|  |  |  | //        } | 
|---|
|  |  |  | return R.ok(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | @RequestMapping("/bill/query1/auth") | 
|---|
|  |  |  | @ManagerAuth(memo = "根据通知单查询明细") | 
|---|
|  |  |  | public R billQuery1(@RequestParam String billNo, @RequestParam String size) { | 
|---|
|  |  |  | System.out.println("-------------------------"); | 
|---|
|  |  |  | System.out.println(billNo); | 
|---|
|  |  |  | System.out.println(size); | 
|---|
|  |  |  | List<OrderDetl> waitMatins = orderDetlService.selectList(new EntityWrapper<OrderDetl>().eq("pg_no", billNo).like("model", size).last("and anfme > work_qty")); | 
|---|
|  |  |  | //        List<WaitMatin> waitMatins = waitMatinService.selectList(new EntityWrapper<WaitMatin>().eq("bill_no", billNo).last("and qty > in_qty")); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Order temp1 = orderService.selectOne(new EntityWrapper<Order>().eq("temp1", billNo)); | 
|---|
|  |  |  | if (temp1 == null) { | 
|---|
|  |  |  | throw new CoolException("该订单不存在"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | List<OrderDetl> waitMatins = orderDetlService.selectList(new EntityWrapper<OrderDetl>().eq("order_no", temp1.getOrderNo()).like("model", size).last("and anfme > work_qty")); | 
|---|
|  |  |  | if (waitMatins == null || waitMatins.isEmpty()) { | 
|---|
|  |  |  | throw new CoolException("该订单项不存在"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //如果通知单单号为空,则查询调拨单号 | 
|---|
|  |  |  | //        if (Cools.isEmpty(waitMatins) || waitMatins.size() <= 0) { | 
|---|
|  |  |  | //            waitMatins = orderDetlService.selectList(new EntityWrapper<OrderDetl>().eq("temp1", billNo).like("size", size).last("and anfme > work_qty")); | 
|---|
|  |  |  | 
|---|
|  |  |  | vo.setItemBatch(waitMatin.getBatch()); | 
|---|
|  |  |  | //vo.setOveFlag(waitMatin.getOveFlag()); | 
|---|
|  |  |  | vos.add(vo); | 
|---|
|  |  |  | System.out.println(waitMatin.getAnfme()); | 
|---|
|  |  |  | System.out.println(waitMatin.getWorkQty()); | 
|---|
|  |  |  | System.out.println(vo); | 
|---|
|  |  |  | //                10.0 | 
|---|
|  |  |  | //                0.0 | 
|---|
|  |  |  | //                CombBillQueryVo(billNo=ZJFLC2407280005, seqNo=1, matNo=41011659, matName=弹簧盘, specs=null, size=null, color=null, count=10.0, qty=0.0, unit=Pcs, type=null, itemBatch=, oveFlag=null) | 
|---|
|  |  |  | //                10.0 | 
|---|
|  |  |  | //                0.0 | 
|---|
|  |  |  | //                CombBillQueryVo(billNo=ZJFLC2407280005, seqNo=2, matNo=4103020554, matName=支架, specs=null, size=null, color=null, count=10.0, qty=0.0, unit=Pcs, type=null, itemBatch=, oveFlag=null) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return R.ok().add(vos); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|