|
@@ -517,8 +517,12 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- prodProcedureService.saveBatch(prodProcedureList);
|
|
|
|
- planService.updateBatchById(needUpdatePlanList);
|
|
|
|
|
|
+ if(prodProcedureList.size()>0){
|
|
|
|
+ prodProcedureService.saveBatch(prodProcedureList);
|
|
|
|
+ }
|
|
|
|
+ if(needUpdatePlanList.size()>0) {
|
|
|
|
+ planService.updateBatchById(needUpdatePlanList);
|
|
|
|
+ }
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
} catch (NullPointerException e) {
|
|
} catch (NullPointerException e) {
|