|
|
@@ -85,6 +85,12 @@ public class LotController extends AdminBaseController {
|
|
|
if (System.currentTimeMillis()> dbAuction.getEndTime().getTime())
|
|
|
return AjaxResult.error("拍卖会已经结束");
|
|
|
//拍品结束时间不能小于拍卖会结束时间
|
|
|
+ //拍品开始时间不能大于拍卖会开始时间
|
|
|
+ if (lot.getStartTime().before(dbAuction.getStartTime())){
|
|
|
+ return AjaxResult.error("拍品开始时间不能小于拍卖会开始时间");
|
|
|
+ }
|
|
|
+ if (dbAuction.getEndTime().after(lot.getEndTime()))
|
|
|
+ return AjaxResult.error("拍品结束时间不能大于拍卖会结束时间");
|
|
|
lot.setMerchantId(userInfo.getMerchantId());
|
|
|
lot.setMerchantName(userInfo.getMerchantName());
|
|
|
lot.setMerchantAvatar(userInfo.getMerchantAvatar());
|