保养费用BUG解决

master
BrickHome 1 year ago
parent 85ce59cd8a
commit f4d8b7460e

@ -353,8 +353,12 @@ 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) {
if (sparePartsCost==null) {
equOrder.setOrderCost(orderCost);
}else {
equOrder.setOrderCost(sparePartsCost.add(orderCost)); equOrder.setOrderCost(sparePartsCost.add(orderCost));
} }
}
// 保养图片 // 保养图片
if (StringUtils.isNotEmpty(equOrder.getPicturePath())) { if (StringUtils.isNotEmpty(equOrder.getPicturePath())) {

Loading…
Cancel
Save