| | |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.GregorianCalendar; |
| | | import java.util.List; |
| | | |
| | | import static org.reflections.Reflections.log; |
| | |
| | | private String action = ""; |
| | | private String orderName = ""; |
| | | private Long userId = 9999L; |
| | | private boolean signDanger = true; |
| | | private String groupGoodsNo = ""; |
| | | |
| | | |
| | | public OrderOutBatchUtil() { |
| | |
| | | this.cstmrName = cstmrName; |
| | | } |
| | | |
| | | public OrderOutBatchUtil(String orderOneNo, String cstmrName, String ip, String action,String orderName) { |
| | | public OrderOutBatchUtil(String orderOneNo, String cstmrName, String ip, String action,String orderName,boolean signDanger) { |
| | | this.errorMsgOrderLoc = ""; |
| | | this.sign = true; |
| | | this.orderOneNo = orderOneNo; |
| | |
| | | this.action = action; |
| | | this.orderName = orderName; |
| | | this.userId = 9999L; |
| | | this.signDanger = signDanger; |
| | | } |
| | | |
| | | public OrderOutBatchUtil(String orderOneNo, String cstmrName, String ip, String action,String orderName,boolean signDanger,String groupGoodsNo ) { |
| | | this.errorMsgOrderLoc = ""; |
| | | this.sign = true; |
| | | this.orderOneNo = orderOneNo; |
| | | this.cstmrName = cstmrName; |
| | | this.ip = ip; |
| | | this.action = action; |
| | | this.orderName = orderName; |
| | | this.userId = 9999L; |
| | | this.signDanger = signDanger; |
| | | this.groupGoodsNo = groupGoodsNo; |
| | | } |
| | | |
| | | public R setOrderOutBatch() { |
| | |
| | | continue; |
| | | // throw new CoolException("箱号:"+outLocBoxC[0]+" 未查询到数据!!!"); |
| | | } |
| | | // if (!locDetlSou.getDanger$().equals(outLocBoxC[4])) { |
| | | // sign = false; |
| | | // errorMsgOrderLoc = errorMsgOrderLoc + "[===》" + "箱号:" + outLocBoxC[0] + " ==》出库输入待判状态:" + outLocBoxC[4] + "、库存状态:" + locDetlSou.getDanger$() + "。状态不匹配《===]"; |
| | | // continue; |
| | | // } |
| | | if (signDanger){ |
| | | if (!locDetlSou.getDanger$().equals(outLocBoxC[4])) { |
| | | sign = false; |
| | | errorMsgOrderLoc = errorMsgOrderLoc + "[===》" + "箱号:" + outLocBoxC[0] + " ==》出库输入待判状态:" + outLocBoxC[4] + "、库存状态:" + locDetlSou.getDanger$() + "。状态不匹配《===]"; |
| | | continue; |
| | | } |
| | | } |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", locDetlSou.getLocNo())); |
| | | if (Cools.isEmpty(locMast)) { |
| | | sign = false; |
| | |
| | | param.setOrderNo(orderOneNo); |
| | | param.setCstmrName(cstmrName); |
| | | param.setOrderName(orderName); |
| | | param.setGroupGoodsNo(groupGoodsNo); |
| | | |
| | | if (sign && total > 0) { |
| | | workService.startupFullTakeStoreOrder(param, 9999L); |