|
@@ -385,10 +385,10 @@ public class PayOrderLogic {
|
|
WorkerNormStockBean stock = workerStockMap.get(stockBean.getWorkerGoodsId());
|
|
WorkerNormStockBean stock = workerStockMap.get(stockBean.getWorkerGoodsId());
|
|
stock.setRealQty(stock.getRealQty().add(useTotalQty));
|
|
stock.setRealQty(stock.getRealQty().add(useTotalQty));
|
|
|
|
|
|
- if (!stockBean.getIsSmall() && stock.getRealQty().compareTo(stockBean.getStockQty()) > 0) {
|
|
|
|
- throw new RemoteServiceException("收费标准关联的 " + stockBean.getGoodsName() + "库存数量"
|
|
|
|
- + stock.getStockQty() + ", 需扣" + stock.getRealQty() + ", 库存数量不够扣减");
|
|
|
|
- }
|
|
|
|
|
|
+// if (!stockBean.getIsSmall() && stock.getRealQty().compareTo(stockBean.getStockQty()) > 0) {
|
|
|
|
+// throw new RemoteServiceException("收费标准关联的 " + stockBean.getGoodsName() + "库存数量"
|
|
|
|
+// + stock.getStockQty() + ", 需扣" + stock.getRealQty() + ", 库存数量不够扣减");
|
|
|
|
+// }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -632,7 +632,7 @@ public class PayOrderLogic {
|
|
WebsitNormCharge websitNormCharge = websitNormChargeService.getById(item.getGoodsId());
|
|
WebsitNormCharge websitNormCharge = websitNormChargeService.getById(item.getGoodsId());
|
|
if (websitNormCharge.getNormType().equals(NormTypeEnum.M.getKey())) {
|
|
if (websitNormCharge.getNormType().equals(NormTypeEnum.M.getKey())) {
|
|
// 获取当前关联师傅库存记录
|
|
// 获取当前关联师傅库存记录
|
|
- List<WorkerNormStockBean> stockBeanList = materialMapper.queryWorkerStockQty(item.getGoodsId(), workerOrder.getWorkerId());
|
|
|
|
|
|
+ List<WorkerNormStockBean> stockBeanList = materialMapper.queryWorkerStockQty(item.getGoodsId(), workerOrder.getIdentity());
|
|
if (CollectionUtil.isNotEmpty(stockBeanList)) {
|
|
if (CollectionUtil.isNotEmpty(stockBeanList)) {
|
|
BigDecimal totalNum = item.getNum();
|
|
BigDecimal totalNum = item.getNum();
|
|
for (WorkerNormStockBean stockBean : stockBeanList) {
|
|
for (WorkerNormStockBean stockBean : stockBeanList) {
|