| | |
| | | package com.zy.third.lk.task; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.DocType; |
| | | import com.zy.asrs.entity.Mat; |
| | |
| | | List<Order> orders = orderService.selectList(new EntityWrapper<Order>().eq("settle", 4L)); |
| | | DocType docType; |
| | | for (Order order : orders) { |
| | | System.out.println(order); |
| | | |
| | | docType = docTypeService.selectById(order.getDocType()); |
| | | if (docType == null) { |
| | | log.error("该订单类型不存在:" + order.getDocType()); |
| | |
| | | |
| | | private Map<String, Object> getMap(OrderDetl orderDetl) { |
| | | Map<String, Object> content = new HashMap<>(); |
| | | content.put("BillNo", "'" + orderDetl.getOrderNo() + "'"); |
| | | content.put("iNO", "'" + orderDetl.getINO() + "'"); |
| | | content.put("detId", orderDetl.getThreeCode()); |
| | | content.put("ItemId", "'" + orderDetl.getThreeCode() + "'"); |
| | | content.put("ItemCode", "'" + orderDetl.getMatnr() + "'"); |
| | | content.put("ItemBatch", "'" + orderDetl.getBatch() + "'"); |
| | | content.put("proType", "'" + orderDetl.getProType() + "'"); |
| | | content.put("remark", "'" + orderDetl.getMemo() + "'"); |
| | | content.put("OrderNo", "'" + orderDetl.getOutOrderNo() + "'"); |
| | | content.put("MainNum", orderDetl.getQty()); |
| | | content.put("WareId", "'" + orderDetl.getWareId() + "'"); |
| | | content.put("WareName", "'" + orderDetl.getWareName() + "'"); |
| | | content.put("Packing", "'" + orderDetl.getPacking() + "'"); |
| | | content.put("LuHao", "'" + orderDetl.getLuHao() + "'"); |
| | | content.put("sPgNO", "'" + orderDetl.getSPgNO() + "'"); |
| | | content.put("temp1", "'" + orderDetl.getTemp1() + "'"); |
| | | content.put("temp2", "'" + orderDetl.getTemp2() + "'"); |
| | | content.put("temp3", "'" + orderDetl.getTemp3() + "'"); |
| | | content.put("LKName", "'中扬二期'"); |
| | | if (!Cools.isEmpty()) content.put("BillNo", "'" + orderDetl.getOrderNo() + "'"); |
| | | if (!Cools.isEmpty()) content.put("iNO", "'" + orderDetl.getINO() + "'"); |
| | | if (!Cools.isEmpty()) content.put("detId", orderDetl.getThreeCode()); |
| | | if (!Cools.isEmpty()) content.put("ItemId", "'" + orderDetl.getThreeCode() + "'"); |
| | | if (!Cools.isEmpty()) content.put("ItemCode", "'" + orderDetl.getMatnr() + "'"); |
| | | if (!Cools.isEmpty()) content.put("ItemBatch", "'" + orderDetl.getBatch() + "'"); |
| | | if (!Cools.isEmpty()) content.put("proType", "'" + orderDetl.getProType() + "'"); |
| | | if (!Cools.isEmpty()) content.put("remark", "'" + orderDetl.getMemo() + "'"); |
| | | if (!Cools.isEmpty()) content.put("OrderNo", "'" + orderDetl.getOutOrderNo() + "'"); |
| | | if (!Cools.isEmpty()) content.put("MainNum", orderDetl.getQty()); |
| | | if (!Cools.isEmpty()) content.put("WareId", "'" + orderDetl.getWareId() + "'"); |
| | | if (!Cools.isEmpty()) content.put("WareName", "'" + orderDetl.getWareName() + "'"); |
| | | if (!Cools.isEmpty()) content.put("Packing", "'" + orderDetl.getPacking() + "'"); |
| | | if (!Cools.isEmpty()) content.put("LuHao", "'" + orderDetl.getLuHao() + "'"); |
| | | if (!Cools.isEmpty()) content.put("sPgNO", "'" + orderDetl.getSPgNO() + "'"); |
| | | if (!Cools.isEmpty()) content.put("temp1", "'" + orderDetl.getTemp1() + "'"); |
| | | if (!Cools.isEmpty()) content.put("temp2", "'" + orderDetl.getTemp2() + "'"); |
| | | if (!Cools.isEmpty()) content.put("temp3", "'" + orderDetl.getTemp3() + "'"); |
| | | if (!Cools.isEmpty()) content.put("LKName", "'中扬二期'"); |
| | | return content; |
| | | } |
| | | } |