保养费用BUG解决

master
BrickHome 1 year ago
parent 85ce59cd8a
commit f4d8b7460e

@ -353,7 +353,11 @@ public class EquOrderServiceImpl implements IEquOrderService {
BigDecimal sparePartsCost = equSpareApplyMapper.getSparePartsCost(equOrder.getOrderCode()); BigDecimal sparePartsCost = equSpareApplyMapper.getSparePartsCost(equOrder.getOrderCode());
BigDecimal orderCost = equOrder.getOrderCost(); BigDecimal orderCost = equOrder.getOrderCost();
if (orderCost!=null) { if (orderCost!=null) {
equOrder.setOrderCost(sparePartsCost.add(orderCost)); if (sparePartsCost==null) {
equOrder.setOrderCost(orderCost);
}else {
equOrder.setOrderCost(sparePartsCost.add(orderCost));
}
} }
// 保养图片 // 保养图片

Loading…
Cancel
Save