Jelajahi Sumber

推送bug修复

huxy 1 tahun lalu
induk
melakukan
4f2cf883b2

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

@@ -198,7 +198,7 @@ public class SyPreAssembledPackingListServiceImpl extends ServiceImpl<SyPreAssem
 					 }else{
 						 item1.setOmpoIdItem(null);
 						 SyPreAssembledPackingListItem item3=new SyPreAssembledPackingListItem();
-						 BeanUtils.copyProperties(item1,item3);
+						 BeanUtils.copyProperties(item1,item3);//后面是被传的
 						 items3.add(item3);
 						 System.out.println("修改");
 						 //syPreAssembledPackingListItemMapper.updateById(item1);//如果没修改成功就是新增数据

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

@@ -1988,7 +1988,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
 	}
 
 	/**
-	 * 采购委外发票
+	 * 采购委外发票 推送发票接口
 	 * @param listTailorings
 	 * @param maps
 	 * @return
@@ -2648,7 +2648,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
 			if(syPackingListFabric.getRecordingCode()!=null){
 				String [] strs=syPackingListFabric.getRecordingCode().split(";");
 				for (String str : strs){
-					if(str.indexOf(account)>-1&&str.indexOf("入库单")>-1&&(syPackingListFabric.getSaleInvoiceCode()==null||
+					if(str.indexOf(account)==0&&str.indexOf("入库单")>-1&&(syPackingListFabric.getSaleInvoiceCode()==null||
 							(syPackingListFabric.getSaleInvoiceCode().indexOf(account+"采购发票")==-1)&&(syPackingListFabric.getSaleInvoiceCode().indexOf(account+"委外发票")==-1))){
 						ids.add(str.split(":")[1]);
 						syPackingListFabric.setRdrecord32Code(str.split(":")[1]);
@@ -2665,7 +2665,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
 			if(syPackingListFabric.getRecordingCode()!=null){
 				String [] strs=syPackingListFabric.getRecordingCode().split(";");
 				for (String str : strs){
-					if(str.indexOf(account+"账套销售出库单")>-1&&(syPackingListFabric.getSaleInvoiceCode()==null||syPackingListFabric.getSaleInvoiceCode().indexOf(account+"销售发票")==-1)){
+					if(str.indexOf(account+"账套销售出库单")==0&&(syPackingListFabric.getSaleInvoiceCode()==null||syPackingListFabric.getSaleInvoiceCode().indexOf(account+"销售发票")==-1)){
 						ids.add(str.split(":")[1]);
 						syPackingListFabric.setRdrecord32Code(str.split(":")[1]);
 					}