Commit b9d3ed8c by 章家宝

feat: 固定金额没有设置的时候,置为null

1 parent f9653d43
......@@ -89,7 +89,7 @@ public class AppraiseService extends AbstractAuctionService {
throw new FieldException("vehicleState", vehicle.getVehicleState(), "该车辆已在拍卖中,不能评估定价。");
}
int fixedCommissionSwitch = appraisePrice.getFixedCommissionSwitch() == null ? 0 : appraisePrice.getFixedCommissionSwitch();
double fixedCommission = fixedCommissionSwitch == 1 ? appraisePrice.getFixedCommission() : 0;
Double fixedCommission = fixedCommissionSwitch == 1 ? appraisePrice.getFixedCommission() : null;
vehicle.setStartingBidPrice(appraisePrice.getStartingBidPrice());
vehicle.setReferencePrice(appraisePrice.getReferencePrice());
vehicle.setReservePrice(appraisePrice.getReservePrice());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!