| | |
| | | throw new CoolException("保存订单明细档失败"); |
| | | } |
| | | // 流水 -- 新增订单明细 |
| | | FlowLog flowLog = new FlowLog(); |
| | | flowLog.setFid(String.valueOf(flowId)); |
| | | flowLog.setOpType(2L); |
| | | flowLog.setOrderNo(param.getOrderNo()); |
| | | flowLog.setThreeCode(orderDetl.getThreeCode().trim()); |
| | | flowLog.setMatnr(orderDetl.getMatnr()); |
| | | flowLog.setMaktx(orderDetl.getMaktx()); |
| | | flowLog.setOrderPrevious(anfme); |
| | | flowLog.setOrderCurrent(anfme + orderDetl.getAnfme()); |
| | | flowLog.setOrderChanged(orderDetl.getAnfme()); |
| | | flowLog.setQtyPrevious(orderDetl.getQty()); |
| | | flowLog.setQtyCurrent(orderDetl.getQty()); |
| | | flowLog.setQtyChanged(0.0D); |
| | | flowLog.setUserId(getUserId()); |
| | | flowLog.setAppeTime(now); |
| | | if (!flowLogService.insert(flowLog)) { |
| | | throw new CoolException("同步半成品调拨单流水记录失败"); |
| | | } |
| | | // FlowLog flowLog = new FlowLog(); |
| | | // flowLog.setFid(String.valueOf(flowId)); |
| | | // flowLog.setOpType(2L); |
| | | // flowLog.setOrderNo(param.getOrderNo()); |
| | | // flowLog.setThreeCode(orderDetl.getThreeCode().trim()); |
| | | // flowLog.setMatnr(orderDetl.getMatnr()); |
| | | // flowLog.setMaktx(orderDetl.getMaktx()); |
| | | // flowLog.setOrderPrevious(anfme); |
| | | // flowLog.setOrderCurrent(anfme + orderDetl.getAnfme()); |
| | | // flowLog.setOrderChanged(orderDetl.getAnfme()); |
| | | // flowLog.setQtyPrevious(orderDetl.getQty()); |
| | | // flowLog.setQtyCurrent(orderDetl.getQty()); |
| | | // flowLog.setQtyChanged(0.0D); |
| | | // flowLog.setUserId(getUserId()); |
| | | // flowLog.setAppeTime(now); |
| | | // if (!flowLogService.insert(flowLog)) { |
| | | // throw new CoolException("同步半成品调拨单流水记录失败"); |
| | | // } |
| | | } else { |
| | | list.add(dto); |
| | | orderDetl.setOrderId(order.getId()); |
| | |
| | | throw new CoolException("保存订单明细档失败"); |
| | | } |
| | | // // 流水 -- 新增订单明细 |
| | | FlowLog flowLog = new FlowLog(); |
| | | flowLog.setFid(String.valueOf(flowId)); |
| | | flowLog.setOpType(1L); |
| | | flowLog.setOrderNo(param.getOrderNo()); |
| | | flowLog.setThreeCode(orderDetl.getThreeCode().trim()); |
| | | flowLog.setMatnr(orderDetl.getMatnr()); |
| | | flowLog.setMaktx(orderDetl.getMaktx()); |
| | | flowLog.setOrderPrevious(0.0D); |
| | | flowLog.setOrderCurrent(orderDetl.getAnfme()); |
| | | flowLog.setOrderChanged(orderDetl.getAnfme()); |
| | | flowLog.setQtyPrevious(0.0D); |
| | | flowLog.setQtyCurrent(0.0D); |
| | | flowLog.setQtyChanged(0.0D); |
| | | flowLog.setUserId(getUserId()); |
| | | flowLog.setAppeTime(now); |
| | | if (!flowLogService.insert(flowLog)) { |
| | | throw new CoolException("同步半成品调拨单流水记录失败"); |
| | | } |
| | | // FlowLog flowLog = new FlowLog(); |
| | | // flowLog.setFid(String.valueOf(flowId)); |
| | | // flowLog.setOpType(1L); |
| | | // flowLog.setOrderNo(param.getOrderNo()); |
| | | // flowLog.setThreeCode(orderDetl.getThreeCode().trim()); |
| | | // flowLog.setMatnr(orderDetl.getMatnr()); |
| | | // flowLog.setMaktx(orderDetl.getMaktx()); |
| | | // flowLog.setOrderPrevious(0.0D); |
| | | // flowLog.setOrderCurrent(orderDetl.getAnfme()); |
| | | // flowLog.setOrderChanged(orderDetl.getAnfme()); |
| | | // flowLog.setQtyPrevious(0.0D); |
| | | // flowLog.setQtyCurrent(0.0D); |
| | | // flowLog.setQtyChanged(0.0D); |
| | | // flowLog.setUserId(getUserId()); |
| | | // flowLog.setAppeTime(now); |
| | | // if (!flowLogService.insert(flowLog)) { |
| | | // throw new CoolException("同步半成品调拨单流水记录失败"); |
| | | // } |
| | | } |
| | | } |
| | | if (param.getDocType().intValue() == 32) { |
| | |
| | | throw new CoolException("生成半成品调拨单明细档失败"); |
| | | } |
| | | // // 流水 -- 新增订单明细 |
| | | FlowLog flowLog = new FlowLog(); |
| | | flowLog.setFid(String.valueOf(flowId)); |
| | | flowLog.setOpType(1L); |
| | | flowLog.setOrderNo(param.getOrderNo()); |
| | | flowLog.setThreeCode(orderDetl.getThreeCode().trim()); |
| | | flowLog.setMatnr(orderDetl.getMatnr()); |
| | | flowLog.setMaktx(orderDetl.getMaktx()); |
| | | flowLog.setOrderPrevious(0.0D); |
| | | flowLog.setOrderCurrent(orderDetl.getAnfme()); |
| | | flowLog.setOrderChanged(orderDetl.getAnfme()); |
| | | flowLog.setQtyPrevious(0.0D); |
| | | flowLog.setQtyCurrent(0.0D); |
| | | flowLog.setQtyChanged(0.0D); |
| | | flowLog.setUserId(getUserId()); |
| | | flowLog.setAppeTime(now); |
| | | if (!flowLogService.insert(flowLog)) { |
| | | throw new CoolException("同步半成品调拨单流水记录失败"); |
| | | } |
| | | // FlowLog flowLog = new FlowLog(); |
| | | // flowLog.setFid(String.valueOf(flowId)); |
| | | // flowLog.setOpType(1L); |
| | | // flowLog.setOrderNo(param.getOrderNo()); |
| | | // flowLog.setThreeCode(orderDetl.getThreeCode().trim()); |
| | | // flowLog.setMatnr(orderDetl.getMatnr()); |
| | | // flowLog.setMaktx(orderDetl.getMaktx()); |
| | | // flowLog.setOrderPrevious(0.0D); |
| | | // flowLog.setOrderCurrent(orderDetl.getAnfme()); |
| | | // flowLog.setOrderChanged(orderDetl.getAnfme()); |
| | | // flowLog.setQtyPrevious(0.0D); |
| | | // flowLog.setQtyCurrent(0.0D); |
| | | // flowLog.setQtyChanged(0.0D); |
| | | // flowLog.setUserId(getUserId()); |
| | | // flowLog.setAppeTime(now); |
| | | // if (!flowLogService.insert(flowLog)) { |
| | | // throw new CoolException("同步半成品调拨单流水记录失败"); |
| | | // } |
| | | |
| | | } |
| | | |
| | |
| | | throw new CoolException("保存订单明细档失败"); |
| | | } |
| | | // // 流水 -- 新增订单明细 |
| | | FlowLog flowLog = new FlowLog(); |
| | | flowLog.setFid(String.valueOf(flowId)); |
| | | flowLog.setOpType(2L); |
| | | flowLog.setOrderNo(param.getOrderNo()); |
| | | flowLog.setThreeCode(orderDetl.getThreeCode().trim()); |
| | | flowLog.setMatnr(orderDetl.getMatnr()); |
| | | flowLog.setMaktx(orderDetl.getMaktx()); |
| | | flowLog.setOrderPrevious(anfme); |
| | | flowLog.setOrderCurrent(anfme + orderDetl.getAnfme()); |
| | | flowLog.setOrderChanged(orderDetl.getAnfme()); |
| | | flowLog.setQtyPrevious(orderDetl.getQty()); |
| | | flowLog.setQtyCurrent(orderDetl.getQty()); |
| | | flowLog.setQtyChanged(0.0D); |
| | | flowLog.setUserId(getUserId()); |
| | | flowLog.setAppeTime(now); |
| | | if (!flowLogService.insert(flowLog)) { |
| | | throw new CoolException("同步半成品调拨单流水记录失败"); |
| | | } |
| | | // FlowLog flowLog = new FlowLog(); |
| | | // flowLog.setFid(String.valueOf(flowId)); |
| | | // flowLog.setOpType(2L); |
| | | // flowLog.setOrderNo(param.getOrderNo()); |
| | | // flowLog.setThreeCode(orderDetl.getThreeCode().trim()); |
| | | // flowLog.setMatnr(orderDetl.getMatnr()); |
| | | // flowLog.setMaktx(orderDetl.getMaktx()); |
| | | // flowLog.setOrderPrevious(anfme); |
| | | // flowLog.setOrderCurrent(anfme + orderDetl.getAnfme()); |
| | | // flowLog.setOrderChanged(orderDetl.getAnfme()); |
| | | // flowLog.setQtyPrevious(orderDetl.getQty()); |
| | | // flowLog.setQtyCurrent(orderDetl.getQty()); |
| | | // flowLog.setQtyChanged(0.0D); |
| | | // flowLog.setUserId(getUserId()); |
| | | // flowLog.setAppeTime(now); |
| | | // if (!flowLogService.insert(flowLog)) { |
| | | // throw new CoolException("同步半成品调拨单流水记录失败"); |
| | | // } |
| | | } else { |
| | | if (docType == 35 && orderDetl.getProcessSts() == 1) { |
| | | List<AgvLocDetl> agvLocDetls = agvLocDetlService.selectList(new EntityWrapper<AgvLocDetl>() |
| | |
| | | throw new CoolException("保存订单明细档失败"); |
| | | } |
| | | // 流水 -- 新增订单明细 |
| | | FlowLog flowLog = new FlowLog(); |
| | | flowLog.setFid(String.valueOf(flowId)); |
| | | flowLog.setOpType(2L); |
| | | flowLog.setOrderNo(param.getOrderNo()); |
| | | flowLog.setThreeCode(orderDetl.getThreeCode().trim()); |
| | | flowLog.setMatnr(orderDetl.getMatnr()); |
| | | flowLog.setMaktx(orderDetl.getMaktx()); |
| | | flowLog.setOrderPrevious(0.0D); |
| | | flowLog.setOrderCurrent(orderDetl.getAnfme()); |
| | | flowLog.setOrderChanged(orderDetl.getAnfme()); |
| | | flowLog.setQtyPrevious(orderDetl.getQty()); |
| | | flowLog.setQtyCurrent(orderDetl.getQty()); |
| | | flowLog.setQtyChanged(0.0D); |
| | | flowLog.setUserId(getUserId()); |
| | | flowLog.setAppeTime(now); |
| | | if (!flowLogService.insert(flowLog)) { |
| | | throw new CoolException("同步半成品调拨单流水记录失败"); |
| | | } |
| | | // FlowLog flowLog = new FlowLog(); |
| | | // flowLog.setFid(String.valueOf(flowId)); |
| | | // flowLog.setOpType(2L); |
| | | // flowLog.setOrderNo(param.getOrderNo()); |
| | | // flowLog.setThreeCode(orderDetl.getThreeCode().trim()); |
| | | // flowLog.setMatnr(orderDetl.getMatnr()); |
| | | // flowLog.setMaktx(orderDetl.getMaktx()); |
| | | // flowLog.setOrderPrevious(0.0D); |
| | | // flowLog.setOrderCurrent(orderDetl.getAnfme()); |
| | | // flowLog.setOrderChanged(orderDetl.getAnfme()); |
| | | // flowLog.setQtyPrevious(orderDetl.getQty()); |
| | | // flowLog.setQtyCurrent(orderDetl.getQty()); |
| | | // flowLog.setQtyChanged(0.0D); |
| | | // flowLog.setUserId(getUserId()); |
| | | // flowLog.setAppeTime(now); |
| | | // if (!flowLogService.insert(flowLog)) { |
| | | // throw new CoolException("同步半成品调拨单流水记录失败"); |
| | | // } |
| | | } |
| | | } |
| | | return R.ok("订单修改成功"); |