|
@@ -270,10 +270,12 @@ public class OrderServiceImpl extends SuperServiceImpl<OrderMapper, Order> imple
|
|
|
for(OrderProductUpdateDTO dto:detailList){
|
|
|
int modifyNum = 0;
|
|
|
OrderProduct oriOrderProduct = orderProductMap.get(dto.getId());
|
|
|
- if(oriOrderProduct.getBomNum().intValue() == dto.getBomNum()){
|
|
|
- continue;
|
|
|
- }else{//零件数量修改了
|
|
|
- modifyNum = dto.getBomNum().intValue() - oriOrderProduct.getBomNum().intValue();
|
|
|
+ if(null != oriOrderProduct){
|
|
|
+ if(oriOrderProduct.getBomNum().intValue() == dto.getBomNum()){
|
|
|
+ continue;
|
|
|
+ }else{//零件数量修改了
|
|
|
+ modifyNum = dto.getBomNum().intValue() - oriOrderProduct.getBomNum().intValue();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|