|
@@ -2064,10 +2064,10 @@ public class DepotHeadServiceImpl extends ServiceImpl<DepotHeadMapper, DepotHead
|
|
depotItemService.updateCurrentUnitPrice(depotItem);
|
|
depotItemService.updateCurrentUnitPrice(depotItem);
|
|
//修改商品生产日期
|
|
//修改商品生产日期
|
|
//materialExtendService.update(new UpdateWrapper<MaterialExtend>().set("production_date",materialMap.get(batchNumber).getProductionDate()).eq("id", materialExtend.getId()));
|
|
//materialExtendService.update(new UpdateWrapper<MaterialExtend>().set("production_date",materialMap.get(batchNumber).getProductionDate()).eq("id", materialExtend.getId()));
|
|
- //修改订单总额
|
|
|
|
- updateTotalPriceById(depotHead);
|
|
|
|
}
|
|
}
|
|
- //修改采购订单状态、操作人、操作时间
|
|
|
|
|
|
+ //修改订单总额
|
|
|
|
+ updateTotalPriceById(depotHead);
|
|
|
|
+ //修改采购订单状态、操作人、操作时间,数额
|
|
this.update(new UpdateWrapper<DepotHead>().set("status", "2").set("oper_id",userInfo.getId()).set("submit_time",new Date()).eq("id", pdaDepotHeadDTO.getId()));
|
|
this.update(new UpdateWrapper<DepotHead>().set("status", "2").set("oper_id",userInfo.getId()).set("submit_time",new Date()).eq("id", pdaDepotHeadDTO.getId()));
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
@@ -2087,7 +2087,7 @@ public class DepotHeadServiceImpl extends ServiceImpl<DepotHeadMapper, DepotHead
|
|
if (depotHead.getTotalPrice().compareTo(BigDecimal.ZERO) < 0){
|
|
if (depotHead.getTotalPrice().compareTo(BigDecimal.ZERO) < 0){
|
|
totalPrice = totalPrice.negate();
|
|
totalPrice = totalPrice.negate();
|
|
}
|
|
}
|
|
- update(new UpdateWrapper<DepotHead>().set("total_price",totalPrice).set("change_amount",totalPrice).set("discount_last_money",sum).eq("id",list.get(0).getId()));
|
|
|
|
|
|
+ this.update(new UpdateWrapper<DepotHead>().set("total_price",totalPrice).set("change_amount",totalPrice).set("discount_last_money",sum).eq("id",depotHead.getId()));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|