Commit c3ab50ed by 章家宝

feat:自动加价触发时机改成小于重置时间内才可以触发

1 parent 1b5b760f
...@@ -355,9 +355,9 @@ public class VehicleService { ...@@ -355,9 +355,9 @@ public class VehicleService {
} }
String extraJson = auction.getExtraJson(); String extraJson = auction.getExtraJson();
LightPollingBidConfigDTO lightPollingBidConfigDTO = LightPollingBidConfigDTO.fromJson(extraJson); LightPollingBidConfigDTO lightPollingBidConfigDTO = LightPollingBidConfigDTO.fromJson(extraJson);
Integer resetDelay = lightPollingBidConfigDTO.getResetDelay(); Integer resetDelay = lightPollingBidConfigDTO.getResetDelayDuration();
if (resetDelay < vehicleAutoBidVO.getAutoBidTrigger()) { if (resetDelay <= vehicleAutoBidVO.getAutoBidTrigger()) {
return BaseResp.fail("自动出价触发秒数必须小于拍卖重置秒数."); return BaseResp.fail("自动出价触发秒数必须小于" + resetDelay + "秒");
} }
vehicle.setAutoBidSwitch(vehicleAutoBidVO.getAutoBidSwitch()); vehicle.setAutoBidSwitch(vehicleAutoBidVO.getAutoBidSwitch());
vehicle.setAutoBidRange(vehicleAutoBidVO.getAutoBidRange()); vehicle.setAutoBidRange(vehicleAutoBidVO.getAutoBidRange());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!