瀏覽代碼

MagicHand 去掉只导入一票限制

wfg 4 月之前
父節點
當前提交
f82e931fbf

+ 10 - 8
blade-service/blade-los/src/main/java/org/springblade/los/business/sea/service/impl/MscZipImportImpl.java

@@ -1198,16 +1198,16 @@ public class MscZipImportImpl extends ServiceImpl<BillsMapper, Bills> implements
 			}
 
 			// 测试用,只保存一票
-			Random rand = new Random();
-			int billIdx = rand.nextInt(mhBills.size()) + 1;
-			int currIdx = 0;
+			// Random rand = new Random();
+			// int billIdx = rand.nextInt(mhBills.size()) + 1;
+			// int currIdx = 0;
 
 			for (Bills mhBill : mhBills) {
-				// 测试用,只保存一票
-				currIdx++;
-				if(currIdx!=billIdx){
-					continue;
-				}
+				// // 测试用,只保存一票
+				// currIdx++;
+				// if(currIdx!=billIdx){
+				// 	continue;
+				// }
 
 				Object object = StringTools.handle(mhBill, "Bills");
 				Bills bills = JSONObject.parseObject(JSONObject.toJSONString(object), Bills.class);
@@ -1248,6 +1248,8 @@ public class MscZipImportImpl extends ServiceImpl<BillsMapper, Bills> implements
 
 					// 查一下是否有生成账单的费用,有的话不允许更改
 
+
+
 					this.updateById(bills);
 
 					bPreContainersService.remove(new LambdaQueryWrapper<PreContainers>()