|
|
@@ -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>()
|