| 
														
															@@ -6,19 +6,12 @@ import com.baomidou.dynamic.datasource.annotation.DS; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; 
														 | 
														
														 | 
														
															 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; 
														 | 
														
														 | 
														
															 import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.baomidou.mybatisplus.core.metadata.IPage; 
														 | 
														
														 | 
														
															 import com.baomidou.mybatisplus.core.metadata.IPage; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import com.google.gson.JsonArray; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import com.google.gson.JsonObject; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.common.exception.JeecgBootException; 
														 | 
														
														 | 
														
															 import org.jeecg.common.exception.JeecgBootException; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.common.util.oConvertUtils; 
														 | 
														
														 | 
														
															 import org.jeecg.common.util.oConvertUtils; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.config.InterfaceConnUtils; 
														 | 
														
														 | 
														
															 import org.jeecg.config.InterfaceConnUtils; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import org.jeecg.modules.documents.letterDeposit.entity.SyLetterDepositItem; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import org.jeecg.modules.documents.shippingDetails.entity.SyShippingDetails; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import org.jeecg.modules.documents.shippingDetails.entity.SyShippingDetailsItem; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import org.jeecg.modules.documents.syShippingOrder.entity.SyShippingOrder; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.modules.documents.syShippingOrder.entity.SyShippingOrderItem; 
														 | 
														
														 | 
														
															 import org.jeecg.modules.documents.syShippingOrder.entity.SyShippingOrderItem; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.modules.documents.syShippingOrder.mapper.SyShippingOrderItemMapper; 
														 | 
														
														 | 
														
															 import org.jeecg.modules.documents.syShippingOrder.mapper.SyShippingOrderItemMapper; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.modules.documents.syShippingOrder.mapper.SyShippingOrderMapper; 
														 | 
														
														 | 
														
															 import org.jeecg.modules.documents.syShippingOrder.mapper.SyShippingOrderMapper; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import org.jeecg.modules.documents.syShippingOrder.service.ISyShippingOrderService; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.modules.openApi.mapper.PurchaseWarehousingMapper; 
														 | 
														
														 | 
														
															 import org.jeecg.modules.openApi.mapper.PurchaseWarehousingMapper; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.modules.spapl.entity.SizeTable; 
														 | 
														
														 | 
														
															 import org.jeecg.modules.spapl.entity.SizeTable; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.modules.spapl.entity.SyPreAssembledPackingList; 
														 | 
														
														 | 
														
															 import org.jeecg.modules.spapl.entity.SyPreAssembledPackingList; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -31,19 +24,15 @@ import org.jeecg.modules.splt.mapper.SyPackingListTailoringItemMapper; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.modules.splt.mapper.SyPackingListTailoringMapper; 
														 | 
														
														 | 
														
															 import org.jeecg.modules.splt.mapper.SyPackingListTailoringMapper; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.modules.splt.service.ISyPackingListTailoringService; 
														 | 
														
														 | 
														
															 import org.jeecg.modules.splt.service.ISyPackingListTailoringService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.jeecg.modules.splt.vo.SyPackingListTailoringVo; 
														 | 
														
														 | 
														
															 import org.jeecg.modules.splt.vo.SyPackingListTailoringVo; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import org.springframework.beans.BeanUtils; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.springframework.stereotype.Service; 
														 | 
														
														 | 
														
															 import org.springframework.stereotype.Service; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 
														 | 
														
														 | 
														
															 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.springframework.beans.factory.annotation.Autowired; 
														 | 
														
														 | 
														
															 import org.springframework.beans.factory.annotation.Autowired; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.springframework.transaction.annotation.Transactional; 
														 | 
														
														 | 
														
															 import org.springframework.transaction.annotation.Transactional; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.springframework.transaction.interceptor.TransactionAspectSupport; 
														 | 
														
														 | 
														
															 import org.springframework.transaction.interceptor.TransactionAspectSupport; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import java.io.File; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import java.io.FileOutputStream; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import java.io.FileWriter; 
														 | 
														
														 | 
														
															 import java.io.FileWriter; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import java.io.Serializable; 
														 | 
														
														 | 
														
															 import java.io.Serializable; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import java.math.BigDecimal; 
														 | 
														
														 | 
														
															 import java.math.BigDecimal; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import java.text.ParseException; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import java.text.SimpleDateFormat; 
														 | 
														
														 | 
														
															 import java.text.SimpleDateFormat; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import java.util.*; 
														 | 
														
														 | 
														
															 import java.util.*; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -892,6 +881,11 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						map3.put("CBUSTYPE",order.get("cBusType"));//业务类型(普通销售、分期付款)(如果传空,取来源单据) 
														 | 
														
														 | 
														
															 						map3.put("CBUSTYPE",order.get("cBusType"));//业务类型(普通销售、分期付款)(如果传空,取来源单据) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						map4.put("CEXCH_NAME",order.get("cexch_name"));//币种名称(如果传空,传来源单据;无来源单据,默认人民币) 
														 | 
														
														 | 
														
															 						map4.put("CEXCH_NAME",order.get("cexch_name"));//币种名称(如果传空,传来源单据;无来源单据,默认人民币) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						map6.put("CBUSTYPE",order.get("cBusType"));//业务类型 
														 | 
														
														 | 
														
															 						map6.put("CBUSTYPE",order.get("cBusType"));//业务类型 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						map6.put("CCUSCODE",order.get("cCusCode"));//客户编码 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						map6.put("CDEPCODE",order.get("cDepCode"));//部门编码(如果传空,取来源单据) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						map6.put("SALETPYECODE",order.get("cSTCode"));//销售类型编码 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						map6.put("IEXCHRATE",order.get("iExchRate"));//IEXCHRATE 汇率 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						map6.put("CEXCH_NAME",order.get("cexch_name"));//CEXCH_NAME 币种名称 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					} 
														 | 
														
														 | 
														
															 					} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				} 
														 | 
														
														 | 
														
															 				} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -911,6 +905,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				mapItem4.put("CINVCODE",item.getInventoryCode());//存货编码 
														 | 
														
														 | 
														
															 				mapItem4.put("CINVCODE",item.getInventoryCode());//存货编码 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				mapItem4.put("IQUANTITY",item.getTotal());//数量 
														 | 
														
														 | 
														
															 				mapItem4.put("IQUANTITY",item.getTotal());//数量 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				mapItem4.put("size",item.getSize());//根据尺码判断 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				mapItem4.put("SOAUTOIDCOL","IDLSID");//订单明细ID对应字段名(关联单据类型为发货单IDLSID) 
														 | 
														
														 | 
														
															 				mapItem4.put("SOAUTOIDCOL","IDLSID");//订单明细ID对应字段名(关联单据类型为发货单IDLSID) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				//mapItem4.put("AUTOID_SO","10300001");//关联明细ID 测试用先写 
														 | 
														
														 | 
														
															 				//mapItem4.put("AUTOID_SO","10300001");//关联明细ID 测试用先写 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -919,6 +914,8 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				mapItem6.put("CINVCODE",item.getInventoryCode());//存货编码 
														 | 
														
														 | 
														
															 				mapItem6.put("CINVCODE",item.getInventoryCode());//存货编码 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				mapItem6.put("IQUANTITY",item.getTotal());//数量 
														 | 
														
														 | 
														
															 				mapItem6.put("IQUANTITY",item.getTotal());//数量 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				mapItem6.put("size",item.getSize());//根据尺码判断 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				mapItems.add(mapItem); 
														 | 
														
														 | 
														
															 				mapItems.add(mapItem); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				//mapItems2.add(mapItem2); 
														 | 
														
														 | 
														
															 				//mapItems2.add(mapItem2); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -950,28 +947,10 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			} 
														 | 
														
														 | 
														
															 			} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			mapt.put("itemSort",mapSort); 
														 | 
														
														 | 
														
															 			mapt.put("itemSort",mapSort); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		} 
														 | 
														
														 | 
														
															 		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		try{ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			String txtWorld=((Map)mapList.get(0)).get("CACCID")+"\t"+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS").format(System.currentTimeMillis())+"\n\n"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			txtWorld+=mapList.toString()+"\n\n"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			txtWorld+=mapList3.toString()+"\n\n"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			txtWorld+=mapList4.toString()+"\n\n"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			txtWorld+=mapList5.toString()+"\n\n"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			txtWorld+=mapList6.toString()+"\n\n"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			FileWriter file =new FileWriter ("D:\\test1\\test.txt",true); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			file.write(txtWorld);	//以字节数组类型写入内容 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			file.close(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			System.out.println("已创建test.txt文件,已写入内容"); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		}catch (Exception e){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			e.printStackTrace(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		} 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		/*mapLists.addAll(mapList); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		//mapLists.addAll(mapList2); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		mapLists.addAll(mapList3); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		mapLists.addAll(mapList4); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		mapLists.addAll(mapList5); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		mapLists.addAll(mapList6);*/ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		text(mapList,"采购入库单"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		text(mapList3,"销售发货单"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		text(mapList5,"采购发票单"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		JSONArray resturn1 = InterfaceConnUtils.doPost(mapList,"purchasein_import");//采购入库单		主表添加了一个字段,子表可能要添加一个字段 
														 | 
														
														 | 
														
															 		JSONArray resturn1 = InterfaceConnUtils.doPost(mapList,"purchasein_import");//采购入库单		主表添加了一个字段,子表可能要添加一个字段 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		//JSONArray resturn2 = InterfaceConnUtils.doPost(mapList,"materialout_import");//材料出库单 
														 | 
														
														 | 
														
															 		//JSONArray resturn2 = InterfaceConnUtils.doPost(mapList,"materialout_import");//材料出库单 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		JSONArray resturn3 = InterfaceConnUtils.doPost(mapList3,"consignment_import");//销售发货单 
														 | 
														
														 | 
														
															 		JSONArray resturn3 = InterfaceConnUtils.doPost(mapList3,"consignment_import");//销售发货单 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -988,8 +967,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		result(resturn5,"采购发票单",((Map) mapList.get(0)).get("CACCID").toString(),mains.get(0).getId());//采购发票单 
														 | 
														
														 | 
														
															 		result(resturn5,"采购发票单",((Map) mapList.get(0)).get("CACCID").toString(),mains.get(0).getId());//采购发票单 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn5.getJSONObject(0).get("U8ReceiptNo").toString()),"109"); 
														 | 
														
														 | 
														
															 		this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn5.getJSONObject(0).get("U8ReceiptNo").toString()),"109"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		JSONObject jsonObject3=resturn3.getJSONObject(0);//销售发货单*/ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		JSONObject jsonObject3=resturn3.getJSONObject(0);//销售发货单 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		String consignmentName=jsonObject3.get("U8ReceiptNo").toString();//获取销售发货单 
														 | 
														
														 | 
														
															 		String consignmentName=jsonObject3.get("U8ReceiptNo").toString();//获取销售发货单 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		//String consignmentName= "20220401T00245841";// jsonObject3.get("U8ReceiptNo").toString();//获取销售发货单 
														 | 
														
														 | 
														
															 		//String consignmentName= "20220401T00245841";// jsonObject3.get("U8ReceiptNo").toString();//获取销售发货单 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		List<Map<String,Object>> consignmentMaps= syPackingListTailoringMapper.getDispatchLists(consignmentName); 
														 | 
														
														 | 
														
															 		List<Map<String,Object>> consignmentMaps= syPackingListTailoringMapper.getDispatchLists(consignmentName); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -998,15 +976,18 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				JSONObject jsonObject=mapList4.getJSONObject(0);//循环迭代 
														 | 
														
														 | 
														
															 				JSONObject jsonObject=mapList4.getJSONObject(0);//循环迭代 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				List<Map<String,Object>> mapItems4= (List<Map<String,Object>>) jsonObject.get("DETAILList"); 
														 | 
														
														 | 
														
															 				List<Map<String,Object>> mapItems4= (List<Map<String,Object>>) jsonObject.get("DETAILList"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				for (Map itemMap4 :  mapItems4){ 
														 | 
														
														 | 
														
															 				for (Map itemMap4 :  mapItems4){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					if(itemMap4.get("CINVCODE").equals(map.get("cinvcode"))&&itemMap4.get("IQUANTITY").equals(map.get("iQuantity"))&&!itemMap4.containsKey("AUTOID_SO")){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					if(itemMap4.get("size").equals(map.get("cFree2"))&&(Double.parseDouble( itemMap4.get("IQUANTITY").toString()) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					==Double.parseDouble( map.get("iQuantity").toString()))&&!itemMap4.containsKey("AUTOID_SO")){//根据尺码判断 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						getcFree((JSONObject) itemMap4,map); 
														 | 
														
														 | 
														
															 						getcFree((JSONObject) itemMap4,map); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						itemMap4.put("AUTOID_SO",map.get("iDLsID")); 
														 | 
														
														 | 
														
															 						itemMap4.put("AUTOID_SO",map.get("iDLsID")); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					} 
														 | 
														
														 | 
														
															 					} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				} 
														 | 
														
														 | 
														
															 				} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				System.out.println("mapItems4\t"+mapItems4); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			} 
														 | 
														
														 | 
														
															 			} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		} 
														 | 
														
														 | 
														
															 		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		JSONArray resturn4 = InterfaceConnUtils.doPost(mapList4,"saleout_import");//销售出库单 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		text(mapList4,"销售出库单"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		JSONArray resturn4 = InterfaceConnUtils.doPost(mapList4,"saleout_import");// 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		result(resturn4,"销售出库单",((Map) mapList.get(0)).get("CACCID").toString(),mains.get(0).getId());//销售出库单 
														 | 
														
														 | 
														
															 		result(resturn4,"销售出库单",((Map) mapList.get(0)).get("CACCID").toString(),mains.get(0).getId());//销售出库单 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1016,7 +997,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(saleoutName),"131"); 
														 | 
														
														 | 
														
															 		this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(saleoutName),"131"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		//String saleoutName= "0000005974";// jsonObject4.get("U8ReceiptNo").toString();//获取销售发货单 
														 | 
														
														 | 
														
															 		//String saleoutName= "0000005974";// jsonObject4.get("U8ReceiptNo").toString();//获取销售发货单 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		List<Map<String,Object>> saleoutMaps= syPackingListTailoringMapper.getSaleBillVouchs(saleoutName); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		List<Map<String,Object>> saleoutMaps= syPackingListTailoringMapper.getRdrecord32(saleoutName); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		//System.out.println("saleoutMaps\t"+saleoutMaps); 
														 | 
														
														 | 
														
															 		//System.out.println("saleoutMaps\t"+saleoutMaps); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		if(saleoutMaps!=null){ 
														 | 
														
														 | 
														
															 		if(saleoutMaps!=null){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			for (Map map : saleoutMaps){ 
														 | 
														
														 | 
														
															 			for (Map map : saleoutMaps){ 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1024,22 +1005,35 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				List<Map<String,Object>> mapItems6= (List<Map<String,Object>>) jsonObject.get("DETAILList"); 
														 | 
														
														 | 
														
															 				List<Map<String,Object>> mapItems6= (List<Map<String,Object>>) jsonObject.get("DETAILList"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				for (Map itemMap6 :  mapItems6){ 
														 | 
														
														 | 
														
															 				for (Map itemMap6 :  mapItems6){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					itemMap6.put("DISAUTOIDCOL","AUTOID"); 
														 | 
														
														 | 
														
															 					itemMap6.put("DISAUTOIDCOL","AUTOID"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					if(itemMap6.get("CINVCODE").equals(map.get("cinvcode"))&&itemMap6.get("IQUANTITY").equals(map.get("iQuantity"))&&!itemMap6.containsKey("AUTOID_DIS")){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					if(itemMap6.get("size").equals(map.get("cFree2"))&&(Double.parseDouble( itemMap6.get("IQUANTITY").toString()) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+									==Double.parseDouble( map.get("iQuantity").toString()))&&!itemMap6.containsKey("AUTOID_DIS")){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						itemMap6.put("AUTOID_DIS",map.get("autoid")); 
														 | 
														
														 | 
														
															 						itemMap6.put("AUTOID_DIS",map.get("autoid")); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					} 
														 | 
														
														 | 
														
															 					} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				} 
														 | 
														
														 | 
														
															 				} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			} 
														 | 
														
														 | 
														
															 			} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		} 
														 | 
														
														 | 
														
															 		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		text(mapList6,"销售发票单"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		JSONArray resturn6 = InterfaceConnUtils.doPost(mapList6,"saleinvoice_import");//销售发票单 
														 | 
														
														 | 
														
															 		JSONArray resturn6 = InterfaceConnUtils.doPost(mapList6,"saleinvoice_import");//销售发票单 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		result(resturn6,"销售发票单",((Map) mapList.get(0)).get("CACCID").toString(),mains.get(0).getId());//销售发票单 
														 | 
														
														 | 
														
															 		result(resturn6,"销售发票单",((Map) mapList.get(0)).get("CACCID").toString(),mains.get(0).getId());//销售发票单 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn6.getJSONObject(0).get("U8ReceiptNo").toString()),"120"); 
														 | 
														
														 | 
														
															 		this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn6.getJSONObject(0).get("U8ReceiptNo").toString()),"120"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		return mapt; 
														 | 
														
														 | 
														
															 		return mapt; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	} 
														 | 
														
														 | 
														
															 	} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	public void text(JSONArray mapList,String tableName){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		try{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			String txtWorld=((Map)mapList.get(0)).get("CACCID")+"\t"+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS").format(System.currentTimeMillis())+"\n\n"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			txtWorld+=mapList.toString(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			FileWriter file =new FileWriter ("D:\\test1\\"+tableName+".txt",true); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			file.write(txtWorld);	//以字节数组类型写入内容 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			file.close(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			System.out.println("已创建test.txt文件,已写入内容"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		}catch (Exception e){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			e.printStackTrace(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	public void result(JSONArray jsonArray,String tableName ,String account,String id){ 
														 | 
														
														 | 
														
															 	public void result(JSONArray jsonArray,String tableName ,String account,String id){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		JSONObject jsonObject=jsonArray.getJSONObject(0); 
														 | 
														
														 | 
														
															 		JSONObject jsonObject=jsonArray.getJSONObject(0); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		if(jsonObject.get("Result").equals("F")){//获取发货单是否成功添加 
														 | 
														
														 | 
														
															 		if(jsonObject.get("Result").equals("F")){//获取发货单是否成功添加 
														 |