|
@@ -770,11 +770,12 @@ public class BmstruckDetailsOrderServiceImpl implements IBmstruckDetailsOrderSer
|
|
if(orderType.intValue() == 11){
|
|
if(orderType.intValue() == 11){
|
|
List<BigDecimal> detailsIds = bmstruckDetailsOrderMapper.getDetailsIdByOrderId(orderId);
|
|
List<BigDecimal> detailsIds = bmstruckDetailsOrderMapper.getDetailsIdByOrderId(orderId);
|
|
if(detailsIds.size() == 0){
|
|
if(detailsIds.size() == 0){
|
|
- omsFeign.closeInwardOrder(orderId,1);
|
|
|
|
|
|
+ omsFeign.closeInwardOrder(orderId);
|
|
count++;
|
|
count++;
|
|
}else{
|
|
}else{
|
|
- for(int i=0;i<detailsIds.size()-1;i++){
|
|
|
|
|
|
+ for(int i=0;i<detailsIds.size();i++){
|
|
bmstruckDetailsOrderMapper.deleteByPrimaryKey(detailsIds.get(i));
|
|
bmstruckDetailsOrderMapper.deleteByPrimaryKey(detailsIds.get(i));
|
|
|
|
+ omsFeign.closeInwardOrder(orderId);
|
|
count++;
|
|
count++;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -790,7 +791,7 @@ public class BmstruckDetailsOrderServiceImpl implements IBmstruckDetailsOrderSer
|
|
}
|
|
}
|
|
inserInwardOrder(orderIdMap);
|
|
inserInwardOrder(orderIdMap);
|
|
}
|
|
}
|
|
- if(orderType.intValue() == 23){
|
|
|
|
|
|
+ if(orderType.intValue() == 23 || orderType.intValue() == 24){
|
|
List<BigDecimal> detailsIds = bmstruckDetailsOrderMapper.getDetailsIdByOrderId(orderId);
|
|
List<BigDecimal> detailsIds = bmstruckDetailsOrderMapper.getDetailsIdByOrderId(orderId);
|
|
for(BigDecimal detailsId:detailsIds){
|
|
for(BigDecimal detailsId:detailsIds){
|
|
//根据详单ID物理删除详单
|
|
//根据详单ID物理删除详单
|