Commit 3c3f8e69 authored by shiyu's avatar shiyu

藏品转拍卖默认有效状态,避免定时作业刷新状态为流拍

parent 7a3134eb
......@@ -510,7 +510,7 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
auctionConfig.setState(AuctionEnum.StateEnum.WAIT_ON_SALE.getCode());
auctionConfig.setItemId(newItemId);
auctionConfig.setCreatorId(oldItem.getCreatorId());
auctionConfig.setIsValid(false);
auctionConfig.setIsValid(true);
auctionConfig.setIsDeal(false);
Instant startInstant = now.toInstant().plus(Duration.ofHours(2));
Date startTime = Date.from(startInstant);
......
......@@ -106,7 +106,7 @@ public class AuctionConfigDaoImpl implements AuctionConfigDao {
AuctionConfigExample example = new AuctionConfigExample();
AuctionConfigExample.Criteria criteria = example.createCriteria();
Date now = new Date();
//查询截时间一小时内的拍卖
//查询截时间一小时内的拍卖
Instant instant = now.toInstant().minus(Duration.ofHours(1));
Date time = Date.from(instant);
criteria.andRealEndTimeGreaterThanOrEqualTo(time);
......
......@@ -102,6 +102,7 @@ public class AutoCreateAuctionOrderJob {
}
} else {
//没有出价记录,流拍的商品也要更新拍卖配置信息为已处理, 拍品状态更新为"无出价流拍"
logger.info("商品id:{}, 没有出价记录,状态更新为'无出价流拍'");
auctionConfigDao.setDeal(itemId, AuctionEnum.StateEnum.NO_OFFER_TO_PASS.getCode());
}
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment