Browse Source

推送调整

huxy 1 year ago
parent
commit
2c3247b819

+ 21 - 8
jeecg-boot-module-system/src/main/java/org/jeecg/modules/splfi/service/impl/SyPackingListFabricServiceImpl.java

@@ -1386,6 +1386,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
 						mapItem.put("CBATCHPROPERTY3",item.getRolls());
 						mapItem.put("CBATCHPROPERTY3",item.getRolls());
 						mapItem.put("POAUTOIDCOL","ID");//订单明细ID对应字段名(关联单据类型为采购订单传ID,为采购到货单为Autoid,为委外订单传MODetailsID,为委外到货单为Autoid)
 						mapItem.put("POAUTOIDCOL","ID");//订单明细ID对应字段名(关联单据类型为采购订单传ID,为采购到货单为Autoid,为委外订单传MODetailsID,为委外到货单为Autoid)
 						mapItem.put("AUTOID_PO",orderDataItem.get("id"));//明细ID(采购订单行ID/委外订单行ID)
 						mapItem.put("AUTOID_PO",orderDataItem.get("id"));//明细ID(采购订单行ID/委外订单行ID)
+						mapItem.put("IPROCESSCOST",orderDataItem.get("iUnitPrice"));//明细ID(采购订单行ID/委外订单行ID)
 						//map5.put("CGLTYPE","采购订单");
 						//map5.put("CGLTYPE","采购订单");
 						mapItem5.put("POAUTOIDCOL","Autoid");//明细ID对应字段名(关联单据类型为采购订单传ID,委外订单传MODetailsID,入库单为Autoid)
 						mapItem5.put("POAUTOIDCOL","Autoid");//明细ID对应字段名(关联单据类型为采购订单传ID,委外订单传MODetailsID,入库单为Autoid)
 						//mapItem5.put("AUTOID_PO",orderDataItem.get("id"));//明细ID(采购订单行ID/委外订单行ID)
 						//mapItem5.put("AUTOID_PO",orderDataItem.get("id"));//明细ID(采购订单行ID/委外订单行ID)
@@ -1405,6 +1406,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
 					mapItem.put("POAUTOIDCOL","MODetailsID");//订单明细ID对应字段名(关联单据类型为采购订单传ID,为采购到货单为Autoid,为委外订单传MODetailsID,为委外到货单为Autoid)
 					mapItem.put("POAUTOIDCOL","MODetailsID");//订单明细ID对应字段名(关联单据类型为采购订单传ID,为采购到货单为Autoid,为委外订单传MODetailsID,为委外到货单为Autoid)
 					mapItem.put("AUTOID_PO",orderDataItem.get("id"));//明细ID(采购订单行ID/委外订单行ID)
 					mapItem.put("AUTOID_PO",orderDataItem.get("id"));//明细ID(采购订单行ID/委外订单行ID)
 					mapItem.put("CBATCHPROPERTY3",item.getRolls());
 					mapItem.put("CBATCHPROPERTY3",item.getRolls());
+					mapItem.put("IPROCESSCOST",orderDataItem.get("iUnitPrice"));//明细ID(采购订单行ID/委外订单行ID)
 					//map5.put("CGLTYPE","委外订单");
 					//map5.put("CGLTYPE","委外订单");
 					if(item.getInventoryCcode()!=null&&item.getInventoryCcode().indexOf("040")>-1&&mapt.get("account").equals("103")&&!moDetailsIds.contains(item.getOmpoIdItem())){//103账套中物料分类为040的印花面料
 					if(item.getInventoryCcode()!=null&&item.getInventoryCcode().indexOf("040")>-1&&mapt.get("account").equals("103")&&!moDetailsIds.contains(item.getOmpoIdItem())){//103账套中物料分类为040的印花面料
 						List<Map<String,Object>> orderDataItem3 =syPackingListFabricMapper.getOM_MOMaterials(item.getOmpoIdItem(),item.getInventoryCode());//委外订单子表
 						List<Map<String,Object>> orderDataItem3 =syPackingListFabricMapper.getOM_MOMaterials(item.getOmpoIdItem(),item.getInventoryCode());//委外订单子表
@@ -1473,10 +1475,17 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
 					mapItem6.put("CWHCODE",mapt.get("vencode"));//仓库编码
 					mapItem6.put("CWHCODE",mapt.get("vencode"));//仓库编码
 				}
 				}
 				mapt.put("poid","one");//重置销售订单id
 				mapt.put("poid","one");//重置销售订单id
-				mapItem5.put("CDEFINE23",syPackingListTailoringMapper.getUnit(item.getInventoryCode()) );//报关单位
-				mapItem6.put("CDEFINE23",syPackingListTailoringMapper.getUnit(item.getInventoryCode()) );//报关单位
+				String unit= syPackingListTailoringMapper.getUnit(item.getInventoryCode());
+				mapItem.put("CDEFINE23",unit);//报关单位
+				mapItem4.put("CDEFINE23",unit);//报关单位
+				mapItem5.put("CDEFINE23",unit);//报关单位
+				mapItem6.put("CDEFINE23",unit);//报关单位
+
 				mapItem5.put("CDEFINE33",item.getDeclarationName());//报关品名
 				mapItem5.put("CDEFINE33",item.getDeclarationName());//报关品名
 				mapItem6.put("CDEFINE31",item.getDeclarationName());//货物名称
 				mapItem6.put("CDEFINE31",item.getDeclarationName());//货物名称
+				mapItem4.put("CDEFINE31",item.getDeclarationName());//货物名称
+				mapItem.put("CDEFINE33",item.getDeclarationName());//报关品名
+				mapItem4.put("CDEFINE33",item.getDeclarationName());//报关品名
 
 
 				Order orderIrowno=new Order();
 				Order orderIrowno=new Order();
 
 
@@ -1542,15 +1551,13 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
 					String params2="UFDATA_101_2021";//目标数据库
 					String params2="UFDATA_101_2021";//目标数据库
 					String params4="1000000001";//目标账套
 					String params4="1000000001";//目标账套
 					if(mapt.get("account").equals("102")){//103
 					if(mapt.get("account").equals("102")){//103
-						params1="UFDATA_102_2021";//当前数据库
+						//params1="UFDATA_102_2021";//当前数据库
+						params4="1000000002";
+					}else if(mapt.get("account").equals("101")){
+						params4="1000000003";
 					}
 					}
 					if(mapt.get("customerCode").equals("T020001")){//101
 					if(mapt.get("customerCode").equals("T020001")){//101
 						params2="UFDATA_101_2021";
 						params2="UFDATA_101_2021";
-						params4="1000000001";
-					}
-					if(mapt.get("customerCode").equals("0001")){//102
-						params2="UFDATA_101_2021";
-						params4="1000000002";
 					}
 					}
 					//String params1="UFDATA_103_2021";//当前数据库
 					//String params1="UFDATA_103_2021";//当前数据库
 					String params3=orderIrowno.getOrderNumber();//销售订单号
 					String params3=orderIrowno.getOrderNumber();//销售订单号
@@ -1733,6 +1740,9 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
 						maps.get(account).put("code",resturn4.getJSONObject(0).get("U8ReceiptNo").toString());
 						maps.get(account).put("code",resturn4.getJSONObject(0).get("U8ReceiptNo").toString());
 						recording(main,recording);
 						recording(main,recording);
 					case "4":
 					case "4":
+						if(account.equals("103")){
+							return account+"账套推送成功!";
+						}
 						String saleoutName=maps.get(account).get("code");//销售发票单
 						String saleoutName=maps.get(account).get("code");//销售发票单
 						this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(saleoutName),"131");
 						this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(saleoutName),"131");
 						List<Map<String,Object>> saleoutMaps= syPackingListTailoringMapper.getRdrecord32(saleoutName);
 						List<Map<String,Object>> saleoutMaps= syPackingListTailoringMapper.getRdrecord32(saleoutName);
@@ -1829,6 +1839,9 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
 
 
 	//	this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(saleoutName),"131");
 	//	this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(saleoutName),"131");
 
 
+		if(((Map) mapList.get(0)).get("CACCID").toString().equals("103")){
+			return mapList.getJSONObject(0).get("CACCID").toString()+"账套推送成功!";
+		}
 		List<Map<String,Object>> saleoutMaps= syPackingListTailoringMapper.getRdrecord32(saleoutName);
 		List<Map<String,Object>> saleoutMaps= syPackingListTailoringMapper.getRdrecord32(saleoutName);
 		if(saleoutMaps!=null){
 		if(saleoutMaps!=null){
 			for (Map map : saleoutMaps){
 			for (Map map : saleoutMaps){

+ 1 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/splt/entity/SyPackingListTailoringItem.java

@@ -259,7 +259,7 @@ public class SyPackingListTailoringItem implements Serializable {
 
 
 
 
 	@TableField(exist = false)
 	@TableField(exist = false)
-	@ApiModelProperty(value = "报关品名")
+	@ApiModelProperty(value = "报关单位")
 	private String declarationUnit;
 	private String declarationUnit;
 
 
 	/**采购/委外订单号*/
 	/**采购/委外订单号*/

+ 2 - 2
jeecg-boot-module-system/src/main/java/org/jeecg/modules/splt/mapper/xml/syPackingListTailoringMapper.xml

@@ -243,7 +243,7 @@
     </select>
     </select>
 
 
     <select id="getOmOrPoItem" parameterType="java.lang.String" resultType="java.util.HashMap">
     <select id="getOmOrPoItem" parameterType="java.lang.String" resultType="java.util.HashMap">
-        select  iMoney,iTaxPrice ,iNatMoney,iSOsID,${id} as id,inum   from ${tableName} where  ${orderName}
+        select  iMoney,iTaxPrice ,iNatMoney,iSOsID,${id} as id,inum,iUnitPrice    from ${tableName} where  ${orderName}
     </select>
     </select>
 
 
     <select id="getSoMain" parameterType="java.lang.String" resultType="java.util.HashMap">
     <select id="getSoMain" parameterType="java.lang.String" resultType="java.util.HashMap">
@@ -281,7 +281,7 @@
 
 
     <select id="getIvouchrowno"   resultType="java.lang.String">
     <select id="getIvouchrowno"   resultType="java.lang.String">
         SELECT popos.ivouchrowno FROM
         SELECT popos.ivouchrowno FROM
-        ${params1}.dbo.so_sodetails soso
+        so_sodetails soso
         LEFT JOIN UFDATA_103_2021.dbo.HY_DZ_K7_SYNERGISMLOGDID hy
         LEFT JOIN UFDATA_103_2021.dbo.HY_DZ_K7_SYNERGISMLOGDID hy
         ON voucherno = soso.cSOCode
         ON voucherno = soso.cSOCode
         AND did = soso.isosid
         AND did = soso.isosid

+ 55 - 39
jeecg-boot-module-system/src/main/java/org/jeecg/modules/splt/service/impl/SyPackingListTailoringServiceImpl.java

@@ -1265,6 +1265,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
 						getcFree(mapItem6,orderDataItem2);
 						getcFree(mapItem6,orderDataItem2);
 						mapItem.put("POAUTOIDCOL","ID");//订单明细ID对应字段名(关联单据类型为采购订单传ID,为采购到货单为Autoid,为委外订单传MODetailsID,为委外到货单为Autoid)
 						mapItem.put("POAUTOIDCOL","ID");//订单明细ID对应字段名(关联单据类型为采购订单传ID,为采购到货单为Autoid,为委外订单传MODetailsID,为委外到货单为Autoid)
 						mapItem.put("AUTOID_PO",orderDataItem.get("id"));//明细ID(采购订单行ID/委外订单行ID)
 						mapItem.put("AUTOID_PO",orderDataItem.get("id"));//明细ID(采购订单行ID/委外订单行ID)
+						mapItem.put("IPROCESSCOST",orderDataItem.get("iUnitPrice"));//明细ID(采购订单行ID/委外订单行ID)
 						map5.put("CGLTYPE","入库单");
 						map5.put("CGLTYPE","入库单");
 						mapItem5.put("POAUTOIDCOL","Autoid");//明细ID对应字段名(关联单据类型为采购订单传ID,委外订单传MODetailsID,入库单为Autoid)
 						mapItem5.put("POAUTOIDCOL","Autoid");//明细ID对应字段名(关联单据类型为采购订单传ID,委外订单传MODetailsID,入库单为Autoid)
 						//mapItem5.put("AUTOID_PO",orderDataItem.get("id"));//明细ID(采购订单行ID/委外订单行ID)
 						//mapItem5.put("AUTOID_PO",orderDataItem.get("id"));//明细ID(采购订单行ID/委外订单行ID)
@@ -1278,12 +1279,13 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
 					Map<String,Object> orderDataItem2=purchaseWarehousingMapper.getOMMoDetails(item.getOmpoIdItem());//获取自由项
 					Map<String,Object> orderDataItem2=purchaseWarehousingMapper.getOMMoDetails(item.getOmpoIdItem());//获取自由项
 					getcFree(mapItem,orderDataItem2);
 					getcFree(mapItem,orderDataItem2);
 					getcFree(mapItem3,orderDataItem2);
 					getcFree(mapItem3,orderDataItem2);
-					getcFree(mapItem5,orderDataItem2);
+					getcFree(mapItem5,orderDataItem2);/*
 					mapItem5.put("CDEFINE23","");//单位
 					mapItem5.put("CDEFINE23","");//单位
-					mapItem5.put("CDEFINE33","");//品名
+					mapItem5.put("CDEFINE33","");//品名*/
 					getcFree(mapItem6,orderDataItem2);
 					getcFree(mapItem6,orderDataItem2);
 					mapItem.put("POAUTOIDCOL","MODetailsID");//订单明细ID对应字段名(关联单据类型为采购订单传ID,为采购到货单为Autoid,为委外订单传MODetailsID,为委外到货单为Autoid)
 					mapItem.put("POAUTOIDCOL","MODetailsID");//订单明细ID对应字段名(关联单据类型为采购订单传ID,为采购到货单为Autoid,为委外订单传MODetailsID,为委外到货单为Autoid)
 					mapItem.put("AUTOID_PO",orderDataItem.get("id"));//明细ID(采购订单行ID/委外订单行ID)
 					mapItem.put("AUTOID_PO",orderDataItem.get("id"));//明细ID(采购订单行ID/委外订单行ID)
+					mapItem.put("IPROCESSCOST",orderDataItem.get("iUnitPrice"));//明细ID(采购订单行ID/委外订单行ID)
 					map5.put("CGLTYPE","入库单");
 					map5.put("CGLTYPE","入库单");
 					mapItem5.put("POAUTOIDCOL","Autoid");//明细ID对应字段名(关联单据类型为采购订单传ID,委外订单传MODetailsID,入库单为Autoid)
 					mapItem5.put("POAUTOIDCOL","Autoid");//明细ID对应字段名(关联单据类型为采购订单传ID,委外订单传MODetailsID,入库单为Autoid)
 					//mapItem5.put("AUTOID_PO",orderDataItem.get("id"));//明细ID(采购订单行ID/委外订单行ID)
 					//mapItem5.put("AUTOID_PO",orderDataItem.get("id"));//明细ID(采购订单行ID/委外订单行ID)
@@ -1322,12 +1324,24 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
 
 
 				item.getInventoryCode();
 				item.getInventoryCode();
 
 
-				mapItem5.put("CDEFINE23",syPackingListTailoringMapper.getUnit(item.getInventoryCode()) );//报关单位
+				mapItem.put("CDEFINE23", item.getDeclarationUnit());//报关单位
+				mapItem.put("CDEFINE33",item.getDeclarationName());//报关品名
+				//mapItem3.put("CDEFINE23", item.getDeclarationUnit());//报关单位
+				//mapItem3.put("CDEFINE33",item.getDeclarationName());//报关品名
+				mapItem4.put("CDEFINE23", item.getDeclarationUnit());//报关单位
+				mapItem4.put("CDEFINE31",item.getDeclarationName());//报关品名
+				mapItem4.put("CDEFINE33",item.getDeclarationName());//报关品名
+				mapItem5.put("CDEFINE23", item.getDeclarationUnit());//报关单位
 				mapItem5.put("CDEFINE33",item.getDeclarationName());//报关品名
 				mapItem5.put("CDEFINE33",item.getDeclarationName());//报关品名
+				//mapItem6.put("CDEFINE23", item.getDeclarationUnit());//报关单位
+				//mapItem6.put("CDEFINE33",item.getDeclarationName());//报关品名
+
+
 				if(!mapt.get("poid").equals("one")){//销售订单
 				if(!mapt.get("poid").equals("one")){//销售订单
 					Map<String,Object> order=syPackingListTailoringMapper.getSoMain(mapt.get("poid").toString());//
 					Map<String,Object> order=syPackingListTailoringMapper.getSoMain(mapt.get("poid").toString());//
 					mapt.put("orderNumber",order.get("cSOCode"));//销售订单号
 					mapt.put("orderNumber",order.get("cSOCode"));//销售订单号
 					mapt.put("customerCode",order.get("cCusCode"));//客户编码
 					mapt.put("customerCode",order.get("cCusCode"));//客户编码
+					System.out.println("mapt.customerCode\t"+order.get("cCusCode"));
 					if(order!=null){//销售订单主表
 					if(order!=null){//销售订单主表
 						map.put("cOrderCode",order.get("cSOCode"));//销售订单号
 						map.put("cOrderCode",order.get("cSOCode"));//销售订单号
 						map3.put("CBUSTYPE",order.get("cBusType"));//业务类型(普通销售、分期付款)(如果传空,取来源单据)
 						map3.put("CBUSTYPE",order.get("cBusType"));//业务类型(普通销售、分期付款)(如果传空,取来源单据)
@@ -1364,18 +1378,18 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
 				if(!mapt.get("account").equals("101")){
 				if(!mapt.get("account").equals("101")){
 					//Order order=mapSort.get(item.getId());
 					//Order order=mapSort.get(item.getId());
 					String params1="UFDATA_103_2021";//当前数据库
 					String params1="UFDATA_103_2021";//当前数据库
-					String params2="UFDATA_101_2021";//目标数据库
-					String params4="1000000001";//目标账套
+					String params2="UFDATA_102_2021";//目标数据库
+					String params4="1000000001";//当前账套
 					if(mapt.get("account").equals("102")){//103
 					if(mapt.get("account").equals("102")){//103
-						params1="UFDATA_102_2021";//当前数据库
+						//params1="UFDATA_102_2021";//当前数据库
+						params4="1000000002";
+					}else if(mapt.get("account").equals("101")){
+						params4="1000000003";
 					}
 					}
 					if(mapt.get("customerCode").equals("T020001")){//101
 					if(mapt.get("customerCode").equals("T020001")){//101
 						params2="UFDATA_101_2021";
 						params2="UFDATA_101_2021";
-						params4="1000000001";
-					}
-					if(mapt.get("customerCode").equals("0001")){//102
-						params2="UFDATA_101_2021";
-						params4="1000000002";
+					}else{
+
 					}
 					}
 					//String params1="UFDATA_103_2021";//当前数据库
 					//String params1="UFDATA_103_2021";//当前数据库
 					String params3= (String) map.get("cOrderCode");//销售订单号
 					String params3= (String) map.get("cOrderCode");//销售订单号
@@ -1434,6 +1448,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
 				mapt.put("account","104");//账套号
 				mapt.put("account","104");//账套号
 			}
 			}
 			mapt.put("itemSort",mapSort);
 			mapt.put("itemSort",mapSort);
+			System.out.println("获取循环后当前是第几个账套\t"+mapt.get("account"));
 		}
 		}
 		text(mapList,"采购入库单");
 		text(mapList,"采购入库单");
 		text(mapList3,"销售发货单");
 		text(mapList3,"销售发货单");
@@ -1455,33 +1470,33 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
 			if (maps.containsKey(account)){
 			if (maps.containsKey(account)){
 				switch (maps.get(account).get("index")){
 				switch (maps.get(account).get("index")){
 					case "1":	//代表已完成第一道
 					case "1":	//代表已完成第一道
-						//JSONObject jsonObject1=resturn1.getJSONObject(0);//采购入库单
-						String purchaseinName=maps.get(account).get("code");//获取销售发货
-						//String purchaseinName=jsonObject1.get("U8ReceiptNo").toString();//获取销售发货单
-						List<Map<String,Object>> purchaseinMaps= syPackingListTailoringMapper.getRdRecord01(purchaseinName);
-						if(purchaseinMaps!=null){
-							for (Map map : purchaseinMaps){
-								System.out.println("mapt4\n"+map);
-								JSONObject jsonObject=mapList5.getJSONObject(0);//循环迭代
-								List<Map<String,Object>> mapItems5= (List<Map<String,Object>>) jsonObject.get("DETAILList");
-
-								System.out.println("mapItems5\t"+mapItems5);
-								for (Map itemMap5 :  mapItems5){
-									if(itemMap5.get("size").equals(map.get("cFree2"))&&(Double.parseDouble( itemMap5.get("IQUANTITY").toString())
-											==Double.parseDouble( map.get("iQuantity").toString()))&&!itemMap5.containsKey("AUTOID_PO")){//根据尺码判断
-										//getcFree((JSONObject) itemMap5,map);
-										itemMap5.put("AUTOID_PO",map.get("AutoID"));
+						if(!account.equals("102")){
+							//JSONObject jsonObject1=resturn1.getJSONObject(0);//采购入库
+							String purchaseinName=maps.get(account).get("code");//获取销售发货单
+							//String purchaseinName=jsonObject1.get("U8ReceiptNo").toString();//获取销售发货单
+							List<Map<String,Object>> purchaseinMaps= syPackingListTailoringMapper.getRdRecord01(purchaseinName);
+							if(purchaseinMaps!=null){
+								for (Map map : purchaseinMaps){
+									System.out.println("mapt4\n"+map);
+									JSONObject jsonObject=mapList5.getJSONObject(0);//循环迭代
+									List<Map<String,Object>> mapItems5= (List<Map<String,Object>>) jsonObject.get("DETAILList");
+									for (Map itemMap5 :  mapItems5){
+										if(itemMap5.get("size").equals(map.get("cFree2"))&&(Double.parseDouble( itemMap5.get("IQUANTITY").toString())
+												==Double.parseDouble( map.get("iQuantity").toString()))&&!itemMap5.containsKey("AUTOID_PO")){//根据尺码判断
+											//getcFree((JSONObject) itemMap5,map);
+											itemMap5.put("AUTOID_PO",map.get("AutoID"));
+										}
 									}
 									}
+									System.out.println("mapItems4\t"+mapItems5);
 								}
 								}
-								System.out.println("mapItems4\t"+mapItems5);
 							}
 							}
+							text(mapList3,"销售发货单");
+							text(mapList5,"采购发票单");
+							JSONArray resturn5 = InterfaceConnUtils.doPost(mapList5,"purinvoice_import");//采购发票单
+							recording=result(main,resturn5,"采购发票单",((Map) mapList.get(0)).get("CACCID").toString(),"2");//采购发票单
+							recording(main,recording);
+							this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn5.getJSONObject(0).get("U8ReceiptNo").toString()),"109");
 						}
 						}
-						text(mapList3,"销售发货单");
-						text(mapList5,"采购发票单");
-						JSONArray resturn5 = InterfaceConnUtils.doPost(mapList5,"purinvoice_import");//采购发票单
-						recording=result(main,resturn5,"采购发票单",((Map) mapList.get(0)).get("CACCID").toString(),"2");//采购发票单
-						recording(main,recording);
-						this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn5.getJSONObject(0).get("U8ReceiptNo").toString()),"109");
 					case "2":
 					case "2":
 						JSONArray resturn3 = InterfaceConnUtils.doPost(mapList3,"consignment_import");//销售发货单
 						JSONArray resturn3 = InterfaceConnUtils.doPost(mapList3,"consignment_import");//销售发货单
 						recording=result(main,resturn3,"销售发货单",((Map) mapList.get(0)).get("CACCID").toString(),"3");//销售发货单
 						recording=result(main,resturn3,"销售发货单",((Map) mapList.get(0)).get("CACCID").toString(),"3");//销售发货单
@@ -1562,11 +1577,12 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
 			}
 			}
 		}
 		}
 
 
-		JSONArray resturn5 = InterfaceConnUtils.doPost(mapList5,"purinvoice_import");//采购发票单
-		recording=result(main,resturn5,"采购发票单",((Map) mapList.get(0)).get("CACCID").toString(),"2");//采购发票单
-		recording(main,recording);
-		this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn5.getJSONObject(0).get("U8ReceiptNo").toString()),"109");
-
+		if(!((Map) mapList.get(0)).get("CACCID").toString().equals("102")){
+			JSONArray resturn5 = InterfaceConnUtils.doPost(mapList5,"purinvoice_import");//采购发票单
+			recording=result(main,resturn5,"采购发票单",((Map) mapList.get(0)).get("CACCID").toString(),"2");//采购发票单
+			recording(main,recording);
+			this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn5.getJSONObject(0).get("U8ReceiptNo").toString()),"109");
+		}
 
 
 		JSONArray resturn3 = InterfaceConnUtils.doPost(mapList3,"consignment_import");//销售发货单
 		JSONArray resturn3 = InterfaceConnUtils.doPost(mapList3,"consignment_import");//销售发货单
 		recording=result(main,resturn3,"销售发货单",((Map) mapList.get(0)).get("CACCID").toString(),"3");//销售发货单
 		recording=result(main,resturn3,"销售发货单",((Map) mapList.get(0)).get("CACCID").toString(),"3");//销售发货单