Przeglądaj źródła

推送字段调整

huxy 2 lat temu
rodzic
commit
1835866a48

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

@@ -1801,7 +1801,6 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
 			}
 		}
 
-		text(mapList3,"销售发货单");
 		text(mapList5,"采购发票单");
 		if(!((Map) mapList.get(0)).get("CACCID").toString().equals("103")){
 			JSONArray resturn5 = InterfaceConnUtils.doPost(mapList5,"purinvoice_import");//采购发票单
@@ -1814,6 +1813,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
 			return mapList.getJSONObject(0).get("CACCID").toString()+"账套推送成功!";
 		}
 
+		text(mapList3,"销售发货单");
 		JSONArray resturn3 = InterfaceConnUtils.doPost(mapList3,"consignment_import");//销售发货单
 		recording=result(main,resturn3,"销售发货单",((Map) mapList.get(0)).get("CACCID").toString(),"3");//销售发货单
 		recording(main,recording);

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

@@ -1452,8 +1452,6 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
 			System.out.println("获取循环后当前是第几个账套\t"+mapt.get("account"));
 		}
 		text(mapList,"采购入库单");
-		text(mapList3,"销售发货单");
-		text(mapList5,"采购发票单");
 		/*if(true){
 			return null;
 		}*/
@@ -1492,13 +1490,13 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
 								}
 							}
 							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":
+						text(mapList5,"采购发票单");
 						JSONArray resturn3 = InterfaceConnUtils.doPost(mapList3,"consignment_import");//销售发货单
 						recording=result(main,resturn3,"销售发货单",((Map) mapList.get(0)).get("CACCID").toString(),"3");//销售发货单
 						maps.get(account).put("code",resturn3.getJSONObject(0).get("U8ReceiptNo").toString());
@@ -1579,12 +1577,14 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
 		}
 
 		if(!((Map) mapList.get(0)).get("CACCID").toString().equals("102")||mapt.get("customerCode").equals("T020001")){
+			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,"销售发货单");
 		JSONArray resturn3 = InterfaceConnUtils.doPost(mapList3,"consignment_import");//销售发货单
 		recording=result(main,resturn3,"销售发货单",((Map) mapList.get(0)).get("CACCID").toString(),"3");//销售发货单
 		recording(main,recording);