|
@@ -521,4 +521,22 @@ public class AmsDispatchSaleOrderServiceImpl extends BaseServiceImpl<AmsDispatch
|
|
}
|
|
}
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 批量拒绝定向派单
|
|
|
|
+ * @param mapList
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public int refuseDispatchSaleOrderList(List<Map<String, Object>> mapList) {
|
|
|
|
+ int result = 0;
|
|
|
|
+ for (Map<String, Object> map : mapList) {
|
|
|
|
+ AmsDispatchSaleOrder amsDispatchSaleOrder = new AmsDispatchSaleOrder();
|
|
|
|
+ BigDecimal dispatchId = DataChange.dataToBigDecimal(map.get("dispatchId"));
|
|
|
|
+ amsDispatchSaleOrder.setDispatchId(dispatchId);
|
|
|
|
+ amsDispatchSaleOrder.setDispatchStatus(new BigDecimal(3));
|
|
|
|
+ result += amsDispatchSaleOrderMapper.updateByPrimaryKeySelective(amsDispatchSaleOrder);
|
|
|
|
+ }
|
|
|
|
+ return result;
|
|
|
|
+ }
|
|
}
|
|
}
|