| 
					
				 | 
			
			
				@@ -1197,6 +1197,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		String pushsno005=org.jeecg.modules.system.util.oConvertUtils.addOne(redisUtil.get("pushsno005").toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		String pushsno006=org.jeecg.modules.system.util.oConvertUtils.addOne(redisUtil.get("pushsno006").toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		String pushsno007=org.jeecg.modules.system.util.oConvertUtils.addOne(pushsno001); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		boolean ycIsPush=true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		if (main!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			Map<String, Order> mapSort=new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			String date2 = main.getLatestDateOfShipment2().substring(0,10);//装柜日期 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1314,6 +1315,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			JSONArray mapItems6=new JSONArray(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			JSONArray mapItems7=new JSONArray(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			Map<String,Object> orderData=null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			if(main.getSupplierCode()!=null){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1493,11 +1495,15 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						moDetailsIds.add(item.getOmpoIdItem());//同一个id只会进来一次 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						Map<String,Object> mapStr1=syPackingListFabricMapper.getOM_MOMain(item.getOmpoIdItem(),item.getInventoryCode());//供应商编码,存货编码 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						//System.out.println("mapStr1\n"+mapStr1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						if(mapStr1==null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							throw new JeecgBootException(mapt.get("account")+"账套,委外订单子表行id"+item.getOmpoIdItem()+"未找到对应的染厂物料"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						}else if(!mapStr1.containsKey("isosid")||mapStr1.get("isosid")==null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							throw new JeecgBootException(mapt.get("account")+"账套,委外订单子表行id"+mapStr1.get("MODetailsID")+"的isosid为空"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						}else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						if(mapStr1==null||!mapStr1.containsKey("isosid")||mapStr1.get("isosid")==null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							ycIsPush=false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//						if(mapStr1==null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//							throw new JeecgBootException(mapt.get("account")+"账套,委外订单子表行id"+item.getOmpoIdItem()+"未找到对应的染厂物料"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//						}else if(!mapStr1.containsKey("isosid")||mapStr1.get("isosid")==null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//							throw new JeecgBootException(mapt.get("account")+"账套,委外订单子表行id"+mapStr1.get("MODetailsID")+"的isosid为空"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							JSONObject mapItem7=new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							getcFree(mapItem7,mapStr1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							mapItem7.put("POAUTOIDCOL","MODetailsID");//订单明细ID对应字段名(固定MOMaterialsID) MOMaterialsID 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1507,23 +1513,24 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							mapItem7.put("CBATCH",item.getDyelotNumber());//批号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							mapItem7.put("CDEFINE26",item.getKaoClothWeight()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							mapItems7.add(mapItem7); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							String cSOCode=syPackingListFabricMapper.getSO_SOMain(mapStr1.get("isosid").toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							map7.put("CWHCODE",mapStr1.get("cVenDefine2")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							map2.put("CWHCODE",mapStr1.get("cVenDefine2"));//仓库编码 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							map7.put("CVENCODE",mapStr1.get("cVenCode")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							map7.put("cOrderCode",cSOCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							for (Map<String,Object> stringObjectMap : orderDataItem3){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								JSONObject mapItem2=new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								getcFree(mapItem2,stringObjectMap); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								mapItem2.put("ALLCAUTOIDCOL","MOMaterialsID");//订单明细ID对应字段名(固定MOMaterialsID) MOMaterialsID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								mapItem2.put("AUTOID_ALL",stringObjectMap.get("MOMaterialsID"));//关联明细ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								mapItem2.put("CINVCODE",stringObjectMap.get("cInvCode"));//存货编码(如果来源单据是委外订单,此字段需要传该订单的子件编码) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								mapItem2.put("IQUANTITY",item.getAfterHeavy());//数量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								mapItem2.put("CBATCH",item.getDyelotNumber());//批号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								mapItem2.put("CBATCHPROPERTY2",item.getWidth());//门幅 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								mapItems2.add(mapItem2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						String cSOCode=syPackingListFabricMapper.getSO_SOMain(mapStr1.get("isosid").toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						map7.put("CWHCODE",mapStr1.get("cVenDefine2")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						map2.put("CWHCODE",mapStr1.get("cVenDefine2"));//仓库编码 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						map7.put("CVENCODE",mapStr1.get("cVenCode")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						map7.put("cOrderCode",cSOCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						for (Map<String,Object> stringObjectMap : orderDataItem3){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							JSONObject mapItem2=new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							getcFree(mapItem2,stringObjectMap); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							mapItem2.put("ALLCAUTOIDCOL","MOMaterialsID");//订单明细ID对应字段名(固定MOMaterialsID) MOMaterialsID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							mapItem2.put("AUTOID_ALL",stringObjectMap.get("MOMaterialsID"));//关联明细ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							mapItem2.put("CINVCODE",stringObjectMap.get("cInvCode"));//存货编码(如果来源单据是委外订单,此字段需要传该订单的子件编码) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							mapItem2.put("IQUANTITY",item.getAfterHeavy());//数量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							mapItem2.put("CBATCH",item.getDyelotNumber());//批号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							mapItem2.put("CBATCHPROPERTY2",item.getWidth());//门幅 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							mapItems2.add(mapItem2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					mapItem5.put("POAUTOIDCOL","Autoid");//明细ID对应字段名(关联单据类型为采购订单传ID,委外订单传MODetailsID,入库单为Autoid) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1727,7 +1734,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		String isSucceed=null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		//try{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			if(mapList2!=null&&mapList2.size()>0&&main.getIsSucceed()!=null&&main.getIsSucceed().indexOf("-7-")>0){//印花 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			if(mapList2!=null&&mapList2.size()>0&&main.getIsSucceed()!=null&&main.getIsSucceed().indexOf("-7-")>0&&ycIsPush){//印花 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				JSONArray resturn2 = InterfaceConnUtils.doPost(mapList2,"materialout_import");//材料出库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				isSucceed=result(main,resturn2,"材料出库单",((Map) mapList2.get(0)).get("CACCID").toString(),"2");//材料出库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				redisUtil.set("pushsno006", pushsno006);//材料出库单 
			 |