Commit c97701e8f282794f6bb423374a083d5411b9fa8c
1 parent
985b8bc0
fix
Showing
1 changed file
with
5 additions
and
5 deletions
src/main/java/com/sucl/sbmp/sys/biz/ChanganAutoEpcPartsBiz.java
... | ... | @@ -308,7 +308,7 @@ public class ChanganAutoEpcPartsBiz { |
308 | 308 | List<TempScCode> olds = tempScCodeService.list(Wrappers.<TempScCode>lambdaQuery() |
309 | 309 | .eq(TempScCode::getSeriesId, series.getSeriesId())); |
310 | 310 | List<String> oldIds = U.collIds(olds, TempScCode::getScCode); |
311 | - List<TempScCode> news = U.filter(olds, it -> !oldIds.contains(it.getScCode())); | |
311 | + List<TempScCode> news = U.filter(tempScCodes, it -> !oldIds.contains(it.getScCode())); | |
312 | 312 | // 保存单个车系的车型代码列表 |
313 | 313 | U.groupUpdateData(news, tempScCodeService::saveBatch); |
314 | 314 | series.setYn(Boolean.TRUE); |
... | ... | @@ -352,7 +352,7 @@ public class ChanganAutoEpcPartsBiz { |
352 | 352 | List<TempScName> olds = tempScNameService.list(Wrappers.<TempScName>lambdaQuery() |
353 | 353 | .eq(TempScName::getPreCode, scCode.getScCode())); |
354 | 354 | List<String> oldIds = U.collIds(olds, TempScName::getCode); |
355 | - List<TempScName> news = U.filter(olds, it -> !oldIds.contains(it.getCode())); | |
355 | + List<TempScName> news = U.filter(tempScNames, it -> !oldIds.contains(it.getCode())); | |
356 | 356 | U.groupUpdateData(news, tempScNameService::saveBatch); |
357 | 357 | scCode.setYn(Boolean.TRUE); |
358 | 358 | tempScCodeService.updateById(scCode); |
... | ... | @@ -400,7 +400,7 @@ public class ChanganAutoEpcPartsBiz { |
400 | 400 | List<TempScSystem> olds = tempScSystemService.list(Wrappers.<TempScSystem>lambdaQuery() |
401 | 401 | .eq(TempScSystem::getScId, scName.getScId())); |
402 | 402 | List<String> oldIds = U.collIds(olds, TempScSystem::getSystemId); |
403 | - List<TempScSystem> news = U.filter(olds, it -> !oldIds.contains(it.getSystemId())); | |
403 | + List<TempScSystem> news = U.filter(scSystems, it -> !oldIds.contains(it.getSystemId())); | |
404 | 404 | U.groupUpdateData(news, tempScSystemService::saveBatch); |
405 | 405 | } catch (Exception e) { |
406 | 406 | e.printStackTrace(); |
... | ... | @@ -448,7 +448,7 @@ public class ChanganAutoEpcPartsBiz { |
448 | 448 | List<TempScModule> olds = tempScModuleService.list(Wrappers.<TempScModule>lambdaQuery() |
449 | 449 | .eq(TempScModule::getScId, scSystem.getScId())); |
450 | 450 | List<String> oldIds = U.collIds(olds, TempScModule::getModuleCode); |
451 | - List<TempScModule> news = U.filter(olds, it -> !oldIds.contains(it.getModuleCode())); | |
451 | + List<TempScModule> news = U.filter(scModules, it -> !oldIds.contains(it.getModuleCode())); | |
452 | 452 | U.groupUpdateData(news, tempScModuleService::saveBatch); |
453 | 453 | java.lang.Thread.sleep(50); |
454 | 454 | } catch (Exception e) { |
... | ... | @@ -492,7 +492,7 @@ public class ChanganAutoEpcPartsBiz { |
492 | 492 | List<TempScParts> olds = tempScPartsService.list(Wrappers.<TempScParts>lambdaQuery() |
493 | 493 | .eq(TempScParts::getScId, module.getScId())); |
494 | 494 | List<String> oldIds = U.collIds(olds, TempScParts::getPartNumber); |
495 | - List<TempScParts> news = U.filter(olds, it -> !oldIds.contains(it.getPartNumber())); | |
495 | + List<TempScParts> news = U.filter(tempScParts, it -> !oldIds.contains(it.getPartNumber())); | |
496 | 496 | U.groupUpdateData(news, tempScPartsService::saveBatch); |
497 | 497 | } |
498 | 498 | } catch (Exception e) { | ... | ... |